FlutterLiveActivities class

Constructors

FlutterLiveActivities()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

activityStateStream Stream<LiveActivityStateUpdate>
Stream of state changes for all activities started in this session.
no setter

Static Methods

areActivitiesEnabled() Future<bool>
Returns true if the user has Live Activities enabled in Settings.
endActivity(String activityId) Future<void>
End a specific activity immediately.
endAllActivities() Future<void>
End all running activities — useful on logout or app reset.
getAllActivities() Future<List<String>>
Returns the IDs of all currently running activities.
isActivityRunning(String activityId) Future<bool>
Returns true if the given activity is still running.
startActivity({required String title, required Map<String, dynamic> data, String? appGroup}) Future<LiveActivityHandle>
Start a new Live Activity. Returns a LiveActivityHandle with the activityId.
updateActivity({required String activityId, required Map<String, dynamic> data}) Future<void>
Update a running activity with new data.