SdkSandboxActivityHandlerCompat


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 functions

Unit

Notifies SDK when an Activity gets created.

Public functions

onActivityCreated

Added in 1.0.0-alpha15
fun onActivityCreated(activityHolder: ActivityHolder): Unit

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
activityHolder: ActivityHolder

the ActivityHolder which holds the Activity which gets created