Manages and tracks orientation changes in the application context.

Hierarchy

  • Context
    • OrientationContext

Constructors

Methods

Properties

constructorProps: {}

The constructor properties.

contextManager: ContextManager

The current ContextManager

disposed: boolean = false
isLandscape: Observable<boolean, never>

Observable indicating whether the current orientation is landscape.

isLandscapeSecondary: Observable<boolean, never>

Observable indicating whether the current orientation is secondary landscape.

isPortrait: Observable<boolean, never>

Observable indicating whether the current orientation is portrait.

isPortraitSecondary: Observable<boolean, never>

Observable indicating whether the current orientation is secondary portrait.

onLandscape: Event<[void]> = ...

Event triggered when the orientation changes to landscape.

onLandscapeSecondary: Event<[void]> = ...

Event triggered when the orientation changes to secondary landscape.

onOrientationChange: Event<[Orientation]> = ...

Event triggered when there is any orientation change.

onPortrait: Event<[void]> = ...

Event triggered when the orientation changes to portrait.

onPortraitSecondary: Event<[void]> = ...

Event triggered when the orientation changes to secondary portrait.

orientation: Observable<Orientation, never>

Observable representing the current orientation.