MethodChannelFlutterAlarmBackgroundTrigger class
An implementation of FlutterAlarmBackgroundTriggerPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- FlutterAlarmBackgroundTriggerPlatform
- MethodChannelFlutterAlarmBackgroundTrigger
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addAlarm(
DateTime time, {String? uid, Map< String, dynamic> ? payload, Duration? screenWakeDuration}) → Future<AlarmItem> -
override
-
deleteAlarm(
int id) → Future< void> -
override
-
deleteAlarmsByPayload(
Map< String, dynamic> payload) → Future<void> -
override
-
deleteAlarmsByTime(
DateTime dateTime) → Future< void> -
override
-
deleteAlarmsByUid(
String uid) → Future< void> -
override
-
deleteAllAlarms(
) → Future< void> -
override
-
getAlarm(
int id) → Future< AlarmItem> -
override
-
getAlarmByPayload(
Map< String, dynamic> payload) → Future<List< AlarmItem> > -
override
-
getAlarmByTime(
DateTime time) → Future< List< AlarmItem> > -
override
-
getAlarmByUid(
String uid) → Future< List< AlarmItem> > -
override
-
getAllAlarms(
) → Future< List< AlarmItem> > -
override
-
invokeNativeMethod<
T> (ChannelMethods method, [AlarmItem? alarm]) → Future< T?> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onForegroundAlarmEventHandler(
OnForegroundAlarmEvent alarmEvent) → void -
override
-
requestPermission(
) → Future< bool> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
initialize(
) → void