OrientationSource

type OrientationSource = "interface" | "device"

Represents the source of an Orientation.

  • 'interface': Uses the UI's orientation for setting output Orientation. If screen lock lock is on, the output orientation will also be locked to the screen's orientation.
  • 'device': Uses the physical device's orientation for setting output Orientation. Even if orientation lock is on, orientation will change when the device physically rotates.