ManuallyDisposable

Wrapper for a native object that stores handle to the native implementation and implements AutoCloseable to allow manual disposing of the native part of the object. Unlike SelfDisposable this class does not have auto-dispose mechanism, so the native part of the object will be disposed only when close method is called or when the object is finalized by GC. The class should be used when losing state of the native part of the object may lead to unexpected user experience, for example when the native part of the object is used in some long-running process.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun close()