token
TypeScriptstatic get token(): PushTypeSwift declarationstatic var token: PushType { get }A constant you use to configure a Live Activity that updates its dynamic content by receiving ActivityKit push notifications.
struct · iOS 16.1+ · SDK 27.1
struct PushTypeThe structure that offers constants you use to configure a Live Activity to receive updates through ActivityKit push notifications. Pass the ``ActivityKit/PushType/token`` constant to the ``ActivityKit/Activity/request(attributes:contentState:pushType:)`` function to start a Live Activity that receives content updates with ActivityKit push notifications. Pass ``ActivityKit/PushType/channel(_:)`` to ``ActivityKit/Activity/request(attributes:contentState:pushType:)`` function to specify that you want to use a broadcast channel instead of a token. You can only specify one ``PushType``. To learn more about using ActivityKit push notifications to update your Live Activity, see <doc:starting-and-updating-live-activities-with-activitykit-push-notifications>.
static get token(): PushTypeSwift declarationstatic var token: PushType { get }A constant you use to configure a Live Activity that updates its dynamic content by receiving ActivityKit push notifications.
static channel(name: string): PushTypeSwift declarationstatic func channel(_ name: String) -> PushTypeA constant to configure a Live Activity that updates its dynamic content for broadcast channels. The channel ID is a base64-encoded string. For information on creating a channel, refer to <doc://com.apple.documentation/documentation/usernotifications/sending-channel-management-requests-to-apns>. The code snippet below is an example of how to specify that you want to use a broadcast push channel. ```swift Activity.request(attributes: attributes, content: content, pushType: .channel("c29tZUNoYW5uZWw=")) ```
No declarations were skipped in this snapshot.