Skip to main content
←API Reference ←NSDK ←NSDKSession

destroy


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.

Notice

Important: Must be called from the main thread.

Parameters​

NameTypeSummary
sessionAnyObject
The session to destroy. Must have been created by this NSDKSession.