This AIR Native Extension allows using RMDateSelectionViewController in AIR applications.
- iOS 7.0 or greater.
- Android 4.0 (API level 14) or greater.
var picker:DatePicker = new DatePicker();
picker.addEventListener(DatePickerEvent.SELECT, selectHandler);
picker.addEventListener(DatePickerEvent.CANCEL, cancelHandler);
private function selectHandler(event:DatePickerEvent):void
{
trace(event.date); // <- selected date;
}
private function cancelHandler(event:DatePickerEvent):void
{
trace("Canceled");
}
- DateAndTime mode is not supported on Android
- Black theme is not supported on iOS