ProjectedDisplayController.PresentationModeFlags


@ExperimentalProjectedApi
public final class ProjectedDisplayController.PresentationModeFlags


The PresentationModeFlags represents a collection of PresentationMode values that are currently active.

Summary

Public methods

boolean
equals(Object other)
final boolean

Checks if the provided PresentationMode is present in the PresentationModeFlags.

final boolean

Checks if all the provided PresentationModes are present in the PresentationModeFlags.

int

Public methods

equals

public boolean equals(Object other)

hasPresentationMode

Added in 1.0.0-alpha03
public final boolean hasPresentationMode(
    @NonNull ProjectedDisplayController.PresentationMode presentationMode
)

Checks if the provided PresentationMode is present in the PresentationModeFlags.

Parameters
@NonNull ProjectedDisplayController.PresentationMode presentationMode

The PresentationMode value to check.

Returns
boolean

true if the specified PresentationMode is present, false otherwise.

hasPresentationMode

Added in 1.0.0-alpha03
public final boolean hasPresentationMode(
    @NonNull Set<@NonNull ProjectedDisplayController.PresentationMode> presentationModes
)

Checks if all the provided PresentationModes are present in the PresentationModeFlags.

Parameters
@NonNull Set<@NonNull ProjectedDisplayController.PresentationMode> presentationModes

The Set of PresentationMode values to check.

Returns
boolean

true if all the specified PresentationModes are present, false otherwise.

hashCode

public int hashCode()