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.

Summary

Public methods

boolean
equals(Object other)
final @NonNull Rect

The relative bounds of the embedded ActivityStack in the host container coordinate space.

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
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

Public methods

equals

public boolean equals(Object other)

getBoundsInParentHost

Added in 1.4.0-alpha01
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

Added in 1.4.0-alpha01
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.

hashCode

public int hashCode()

isEmbedded

Added in 1.4.0-alpha01
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.

toString

public @NonNull String toString()