LiveUpdatePermissionStatus class
User permission status for live update surfaces.
Constructors
- LiveUpdatePermissionStatus({required String platform, required bool notificationsEnabled, bool? liveActivitiesEnabled, bool canRequestNotifications = false, String? authorizationStatus})
-
Creates a permission status snapshot.
const
-
LiveUpdatePermissionStatus.fromMap(Map<
Object?, Object?> map) -
Creates an instance from the platform channel response.
factory
Properties
-
Platform authorization status string, when available.
final
- canRequestNotifications → bool
-
Whether the app may still show a system notification permission prompt.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- liveActivitiesEnabled → bool?
-
Whether iOS Live Activities are enabled for this app.
final
- notificationsEnabled → bool
-
Whether the app can post notifications.
final
- platform → String
-
The current platform name, for example
iosorandroid.final - 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