EmbeddedActivityWindowInfo
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 properties |
|
|---|---|
Rect |
The relative bounds of the embedded |
Boolean |
Whether this activity is embedded and its presentation may be customized by the host process of the task it is associated with. |
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. |
Public functions
Public properties
boundsInParentHost
val boundsInParentHost: Rect
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.
isEmbedded
val isEmbedded: Boolean
Whether this activity is embedded and its presentation may be customized by the host process of the task it is associated with.
parentHostBounds
val parentHostBounds: 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.