MethodChannelLiveActivities class

An implementation of LiveActivitiesPlatform that uses method channels.

Inheritance

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
pushToStartTokenUpdatesChannel → EventChannel
final
pushToStartTokenUpdateStream → Stream<String>
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
urlSchemeChannel → EventChannel
final

Methods

allowsPushStart() → Future<bool>
override
areActivitiesEnabled() → Future<bool>
Check if live activities are enabled by the user in their device settings.
override
areActivitiesSupported() → Future<bool>
Check if live activities are supported on this platform/OS version.
override
createActivity(String activityId, String? activityTag, Map<String, dynamic> data, {bool removeWhenAppIsKilled = false, bool iOSEnableRemoteUpdates = true, Duration? staleIn, double? relevanceScore}) → Future<String?>
override
createOrUpdateActivity(String activityId, String? activityTag, Map<String, dynamic> data, {bool removeWhenAppIsKilled = false, bool iOSEnableRemoteUpdates = true, Duration? staleIn, double? relevanceScore}) → Future
override
endActivity(String activityId, String? activityTag) → 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
scheduleEnd(String activityId, DateTime at) → Future
System-side scheduled dismissal: end now with dismissalPolicy: .after.
override
toString() → String
A string representation of this object.
inherited
updateActivity(String activityId, String? activityTag, Map<String, dynamic> data, [AlertConfig? alertConfig, Duration? staleIn, double? relevanceScore]) → Future
override
urlSchemeStream() → Stream<UrlSchemeData>
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited