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

This method is deprecated. This library is no longer supported.

abstract @NonNull OnBackPressedDispatcher

This method is deprecated. This library is no longer supported.

Inherited methods

From androidx.lifecycle.LifecycleOwner
abstract @NonNull Lifecycle

This method is deprecated. This library is no longer supported.

Public methods

getActivity

Added in 1.0.0-alpha19
Deprecated in 1.0.0-alpha19
abstract @NonNull Activity getActivity()

The Activity created for SDK.

getOnBackPressedDispatcher

Added in 1.0.0-alpha19
Deprecated in 1.0.0-alpha19
abstract @NonNull OnBackPressedDispatcher getOnBackPressedDispatcher()

The OnBackPressedDispatcher for the created Activity.