WindowArea


public final class WindowArea


The current state of a window area. The WindowArea can represent a part of or an entire display in the system. These values can be used to modify the UI to show/hide controls and determine when features can be enabled.

Summary

Nested types

public final class WindowArea.Type

Represents a type of WindowArea

Public methods

boolean
equals(Object other)
final @NonNull WindowAreaCapability

Returns the WindowAreaCapability corresponding to the operation provided.

final @NonNull WindowAreaToken

WindowAreaToken token to identify the specific WindowArea

final @NonNull WindowArea.Type

The Type of this window area

final @NonNull WindowMetrics

The WindowMetrics that represent the size of the area.

int
@NonNull String

Public methods

equals

public boolean equals(Object other)

getCapability

Added in 1.6.0-alpha03
public final @NonNull WindowAreaCapability getCapability(@NonNull WindowAreaCapability.Operation operation)

Returns the WindowAreaCapability corresponding to the operation provided. If this WindowAreaCapability does not exist for this WindowArea, a WindowAreaCapability with a WINDOW_AREA_STATUS_UNSUPPORTED value is returned.

getToken

Added in 1.6.0-alpha03
public final @NonNull WindowAreaToken getToken()

WindowAreaToken token to identify the specific WindowArea

getType

Added in 1.6.0-alpha03
public final @NonNull WindowArea.Type getType()

The Type of this window area

getWindowMetrics

Added in 1.6.0-alpha03
public final @NonNull WindowMetrics getWindowMetrics()

The WindowMetrics that represent the size of the area. Used to determine if the behavior desired fits the size of the window area available.

hashCode

public int hashCode()

toString

public @NonNull String toString()