LiveActivityAlert class

An alert shown when an update arrives while the device is locked.

Alerts are rate-limited by iOS; use them for genuinely notable changes ("your order is out for delivery"), not for every tick.

Constructors

LiveActivityAlert({required String title, required String body, String? sound})
const

Properties

body String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sound String?
Name of a sound file in the app bundle. null uses the default.
final
title String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

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