RevueSDK · Swift reference Guides

Instance Method

stopPresence()

Stop presence, for example when the user signs out. Calls and friend connections are not affected.

@MainActor func stopPresence() async

Discussion

The delegate gets .notInitialized once through RevueDelegate.revue(_:didUpdatePresenceConnectionState:). Call startPresence(_:) to connect again. Returns right away when the SDK is not initialized or is being destroyed.

Known issue: while a friend connection is still up, friends can see this user go .offline and then return to .online, and stay there. Until this is fixed, call destroy() if friends must see the user as offline.