Contents

leave()

Leaves the current activity and stops receiving synchronized data.

Declaration

final func leave()

Mentioned in

Discussion

When you call this method, the session transitions to the GroupSession.State.invalidated(reason:) state and stops the delivery of session-related updates. Call this method when the user dismisses your app’s activity-related UI.

Don’t call this method on a session already in the GroupSession.State.invalidated(reason:) state.

See Also

Joining and leaving the session