Skip to main content
API Reference NSDK NSDKSession

destroy

Destroys a specific session, stopping it and releasing its native resources....

Declaration

@MainActor func destroy(_ session: AnyObject)

Summary

Destroys a specific session, stopping it and releasing its native resources.
After this call the session is removed from disposables and must not be used again.
- Parameter session: The session to destroy. Must have been created by this NSDKSession.
- Important: Must be called from the main thread.