SdkManaged

interface SdkManaged

Interface that the lifecycle of some resource is managed by the SDK at runtime.

Functions

Link copied to clipboard
abstract fun share()

Invoked by a caller to declare usership of the resource.

Link copied to clipboard
abstract fun unshare(): Boolean

Invoked when a caller releases the resource. Returns a boolean indicating whether the resource has been fully unshared with this call (i.e. the caller was the only remaining user). Future calls on a fully unshared object would return false.