MethodChannelLiveActivities class
An implementation of LiveActivitiesPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- LiveActivitiesPlatform
- MethodChannelLiveActivities
Constructors
Properties
- activityStatusChannel → EventChannel
-
final
-
activityUpdateStream
→ Stream<
ActivityUpdate> -
no setteroverride
- 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
- urlSchemeChannel → EventChannel
-
final
Methods
-
areActivitiesEnabled(
) → Future< bool> -
override
-
createActivity(
Map< String, dynamic> data, {bool removeWhenAppIsKilled = false, Duration? staleIn}) → Future<String?> -
override
-
endActivity(
String activityId) → Future -
override
-
endAllActivities(
) → Future -
override
-
getActivityState(
String activityId) → Future< LiveActivityState?> -
override
-
getAllActivities(
) → Future< Map< String, LiveActivityState> > -
override
-
getAllActivitiesIds(
) → Future< List< String> > -
override
-
getPushToken(
String activityId) → Future< String?> -
override
-
init(
String appGroupId, {String? urlScheme}) → Future -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateActivity(
String activityId, Map< String, dynamic> data, [AlertConfig? alertConfig]) → Future -
override
-
urlSchemeStream(
) → Stream< UrlSchemeData> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited