CustomLiveActivityPayload class
Payload for your own activity type.
Unlike the built-in templates there is no schema: the SDK owns the iOS attributes
type (CIOCustomAttributes) and carries these values through untouched, so you
render them yourself. Requires LiveActivitiesConfig.customType to be set.
- Inheritance
-
- Object
- LiveActivityPayload
- CustomLiveActivityPayload
Constructors
-
CustomLiveActivityPayload({required Map<
String, String> data}) -
const
Properties
-
data
→ Map<
String, String> -
The full content-state, re-sent in its entirety on every update — neither
platform keeps a static/dynamic split for custom types.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → LiveActivityTemplate
-
The built-in template this payload targets.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
Serializes the payload into a flat map understood by the native handlers.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited