Stay organized with collections Save and categorize content based on your preferences.

ActivityEmbeddingController

public final class ActivityEmbeddingController


The controller that allows checking the current Activity embedding status.

Summary

Nested types

Public methods

static final @NonNull ActivityEmbeddingController

Obtains an instance of ActivityEmbeddingController.

final boolean

Checks if the activity is embedded and its presentation may be customized by the host process of the task this activity is associated with.

Public methods

getInstance

public static final @NonNull ActivityEmbeddingController getInstance(@NonNull Context context)

Obtains an instance of ActivityEmbeddingController.

Parameters
@NonNull Context context

the Context to initialize the controller with

isActivityEmbedded

public final boolean isActivityEmbedded(@NonNull Activity activity)

Checks if the activity is embedded and its presentation may be customized by the host process of the task this activity is associated with.

Parameters
@NonNull Activity activity

the Activity to check.