SdkSandboxActivityHandlerCompat


public interface SdkSandboxActivityHandlerCompat


This is used to notify the SDK when an Activity is created for it.

When an SDK wants to start an Activity, it should register an implementation of this class by calling SdkSandboxControllerCompat.registerSdkSandboxActivityHandler that will return an android.os.Binder identifier for the registered SdkSandboxControllerCompat.

The SDK should be notified about the Activity creation through calling SdkSandboxActivityHandlerCompat.onActivityCreated which happens when the caller app calls SdkSandboxManagerCompat#startSdkSandboxActivity(Activity, IBinder) using the same android.os.IBinder identifier for the registered SdkSandboxActivityHandlerCompat.

Summary

Public methods

abstract void

Notifies SDK when an Activity gets created.

Public methods

onActivityCreated

Added in 1.0.0-alpha14
abstract void onActivityCreated(@NonNull ActivityHolder activityHolder)

Notifies SDK when an Activity gets created.

This function is called synchronously from the main thread of the Activity that is getting created.

SDK is expected to call Activity.setContentView to the passed Activity object to populate the view.

Parameters
@NonNull ActivityHolder activityHolder

the ActivityHolder which holds the Activity which gets created