public interface ActivityHolder extends LifecycleOwner


A holder for the Activity created for SDK.

This is passed to SDKs through SdkSandboxActivityHandlerCompat.onActivityCreated to notify SDKs about the created Activity.

SDK can add LifecycleObservers into it to observe the Activity lifecycle state.

Summary

Public methods

abstract @NonNull Activity

The Activity created for SDK.

abstract @NonNull OnBackPressedDispatcher

The OnBackPressedDispatcher for the created Activity.

Public methods

getActivity

Added in 1.0.0-alpha15
abstract @NonNull Activity getActivity()

The Activity created for SDK.

getOnBackPressedDispatcher

Added in 1.0.0-alpha15
abstract @NonNull OnBackPressedDispatcher getOnBackPressedDispatcher()

The OnBackPressedDispatcher for the created Activity.