DeviceCalendarPlusAndroid class
The Android implementation of DeviceCalendarPlusPlatform.
- Inheritance
-
- Object
- PlatformInterface
- DeviceCalendarPlusPlatform
- DeviceCalendarPlusAndroid
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createCalendar(
String name, String? colorHex, CreateCalendarPlatformOptions? platformOptions) → Future< String> -
Creates a new calendar on the device.
override
-
createEvent(
String? calendarId, String title, DateTime startDate, DateTime endDate, bool isAllDay, String? description, String? location, String? url, String? timeZone, String availability, String? recurrenceRule, List< int> ? reminders) → Future<String> -
Creates a new event in the specified calendar.
override
-
deleteCalendar(
String calendarId) → Future< void> -
Deletes a calendar from the device.
override
-
deleteEvent(
String eventId, {int? timestamp}) → Future< void> -
Deletes an event from the device.
override
-
deleteRecurring(
String eventId, int? timestamp, String span) → Future< void> -
Deletes a recurring event's series, choosing which occurrences are
removed.
override
-
getEvent(
String eventId, int? timestamp) → Future< Map< String, dynamic> ?> -
Retrieves a single event by event ID and optional timestamp.
override
-
hasPermissions(
) → Future< String?> -
Checks the current calendar permission status WITHOUT requesting permissions.
override
-
listCalendars(
) → Future< List< Map< >String, dynamic> > -
Lists all calendars available on the device.
override
-
listEvents(
DateTime startDate, DateTime endDate, List< String> ? calendarIds) → Future<List< Map< >String, dynamic> > -
Lists events within the specified date range.
override
-
listSources(
) → Future< List< Map< >String, dynamic> > -
Lists available calendar sources/accounts on the device.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openAppSettings(
) → Future< void> -
Opens the app's settings page in the system settings.
override
-
requestPermissions(
bool writeOnly) → Future< String?> -
Requests calendar permissions from the user.
override
-
showCreateEventModal(
{String? title, int? startDate, int? endDate, String? description, String? location, bool? isAllDay, String? recurrenceRule, String? availability}) → Future< void> -
Opens the native calendar editor in create mode with optional pre-fill.
override
-
showEventModal(
String eventId, int? timestamp, {bool edit = false}) → Future< void> -
Shows a calendar event in a modal dialog.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateCalendar(
String calendarId, String? name, String? colorHex) → Future< void> -
Updates an existing calendar on the device.
override
-
updateEvent(
String eventId, {int? timestamp, String? title, DateTime? startDate, DateTime? endDate, Patch< String> ? description, Patch<String> ? location, Patch<String> ? url, bool? isAllDay, String? timeZone, String? availability, Patch<List< ? reminders}) → Future<int> >void> -
Updates an existing event on the device.
override
-
updateRecurring(
String eventId, int? timestamp, String span, {String? title, DateTime? start, int? durationMinutes, Patch< String> ? description, Patch<String> ? location, Patch<String> ? url, bool? isAllDay, String? timeZone, String? availability, Patch<String> ? recurrenceRule}) → Future<String> -
Updates a recurring event's series, choosing which occurrences the edit
affects.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
) → void -
Registers this class as the default instance of
DeviceCalendarPlusPlatform.