activate(for:)
Establishes communication between the data provider extension and the system.
Declaration
func activate(for session: LiveActivityForwarding.Session)Parameters
- session:
A session object that enables communication between your accessory’s data provider extension and the system.
Mentioned in
Overview
Store a reference to the session and use it to receive life-cycle events and updates to ongoing Live Activities. The session becomes invalid after the system calls sessionInvalidated() to indicate that the system won’t deliver Live Activities to your accessory. Don’t use the session after invalidation.