EmbeddedActivityWindowInfo
public final class EmbeddedActivityWindowInfo
Describes the embedded window related info of an activity.
When the activity is embedded, the ActivityEmbeddingController.embeddedActivityWindowInfo will be invoked when any fields of EmbeddedActivityWindowInfo is changed. When the activity is not embedded, the ActivityEmbeddingController.embeddedActivityWindowInfo will not be triggered unless the activity is becoming non-embedded from embedded, in which case isEmbedded will be false.
| See also | |
|---|---|
embeddedActivityWindowInfo |
Summary
Public methods |
|
|---|---|
boolean |
|
final @NonNull Rect |
The relative bounds of the embedded |
final @NonNull Rect |
The bounds of the host container in display coordinate space, which should be the Task bounds for regular embedding use case, or if the activity is not embedded. |
int |
hashCode() |
final boolean |
Whether this activity is embedded and its presentation may be customized by the host process of the task it is associated with. |
@NonNull String |
toString() |
Public methods
getBoundsInParentHost
public final @NonNull Rect getBoundsInParentHost()
The relative bounds of the embedded ActivityStack in the host container coordinate space. It has the same size as parentHostBounds if the activity is not embedded.
getParentHostBounds
public final @NonNull Rect getParentHostBounds()
The bounds of the host container in display coordinate space, which should be the Task bounds for regular embedding use case, or if the activity is not embedded.
isEmbedded
public final boolean isEmbedded()
Whether this activity is embedded and its presentation may be customized by the host process of the task it is associated with.