LocalUnmanagedSdkActivityLauncher


public final class LocalUnmanagedSdkActivityLauncher<T extends Activity> implements 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 methods

void

Clears references used to launch activities.

boolean
launchSdkActivity(@NonNull IBinder sdkActivityHandlerToken)

Public methods

dispose

public void dispose()

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

public boolean launchSdkActivity(@NonNull IBinder sdkActivityHandlerToken)