ProjectedDisplayController.PresentationModeFlags


@ExperimentalProjectedApi
class ProjectedDisplayController.PresentationModeFlags


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

Summary

Public functions

open operator Boolean
equals(other: Any?)
Boolean

Checks if the provided PresentationMode is present in the PresentationModeFlags.

Boolean

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

open Int

Public functions

equals

open operator fun equals(other: Any?): Boolean

hasPresentationMode

Added in 1.0.0-alpha03
fun hasPresentationMode(
    presentationMode: ProjectedDisplayController.PresentationMode
): Boolean

Checks if the provided PresentationMode is present in the PresentationModeFlags.

Parameters
presentationMode: ProjectedDisplayController.PresentationMode

The PresentationMode value to check.

Returns
Boolean

true if the specified PresentationMode is present, false otherwise.

hasPresentationMode

Added in 1.0.0-alpha03
fun hasPresentationMode(
    presentationModes: Set<ProjectedDisplayController.PresentationMode>
): Boolean

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

Parameters
presentationModes: Set<ProjectedDisplayController.PresentationMode>

The Set of PresentationMode values to check.

Returns
Boolean

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

hashCode

open fun hashCode(): Int