LocalUnmanagedSdkActivityLauncher


class LocalUnmanagedSdkActivityLauncher<T : Activity> : LocalSdkActivityLauncher


Local implementation of an SDK Activity launcher. This launcher is not lifecycle-aware, meaning its resources need to be released manually by the caller to avoid memory leaks.

Summary

Public functions

open Unit

Clears references used to launch activities.

open suspend Boolean
launchSdkActivity(sdkActivityHandlerToken: IBinder)

Public functions

dispose

open fun dispose(): Unit

Clears references used to launch activities. This method must be called once the launcher is not needed anymore to avoid memory leaks.

After this method is called all further attempts to launch activities wil be rejected, and LocalUnmanagedSdkActivityLauncher.launchSdkActivity will return 'false'.

Doesn't do anything if the launcher was already disposed of.

launchSdkActivity

open suspend fun launchSdkActivity(sdkActivityHandlerToken: IBinder): Boolean