LiveUpdateCapabilities class
Runtime support reported by the host platform.
Constructors
- LiveUpdateCapabilities({required String platform, required LiveUpdateSurface surface, required bool isSupported, required bool notificationsEnabled, String? osVersion, int? sdkInt, bool supportsLiveActivity = false, bool supportsProgressStyle = false, bool supportsPromotedLiveUpdates = false, bool supportsPushToStart = false})
-
Creates a capabilities snapshot.
const
-
LiveUpdateCapabilities.fromMap(Map<
Object?, Object?> map) -
Creates an instance from the platform channel response.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSupported → bool
-
Whether any live update surface or fallback can be used.
final
- notificationsEnabled → bool
-
Whether system notifications/live activities are enabled for the app.
final
- osVersion → String?
-
Human-readable OS version, when provided by the platform.
final
- platform → String
-
The current platform name, for example
iosorandroid.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdkInt → int?
-
Android SDK level, when running on Android.
final
- supportsLiveActivity → bool
-
Whether iOS ActivityKit Live Activities are available.
final
- supportsProgressStyle → bool
-
Whether Android Notification.ProgressStyle is available.
final
- supportsPromotedLiveUpdates → bool
-
Whether Android can request promoted Live Update treatment.
final
- supportsPushToStart → bool
-
Whether server push-to-start is available.
final
- surface → LiveUpdateSurface
-
The best available native surface.
final
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