Skip to content

@capgo/capacitor-screen-orientation

Capacitor Screen Orientation Plugin interface.

Capacitor Screen Orientation Plugin interface.

  • orientation - Get the current screen orientation.
  • lock - Lock the screen orientation to a specific type.
  • unlock - Unlock the screen orientation.
  • startOrientationTracking - Start tracking device orientation using motion sensors.
MethodDescription
orientationGet the current screen orientation.
lockLock the screen orientation to a specific type.
unlockUnlock the screen orientation.
startOrientationTrackingStart tracking device orientation using motion sensors.
stopOrientationTrackingStop tracking device orientation using motion sensors.
isOrientationLockedCheck if device orientation lock is currently enabled.
addListenerListen for screen orientation changes.
removeAllListenersRemove all listeners for this plugin.
getPluginVersionGet the native plugin version.

This reference is synced from src/definitions.ts in capacitor-screen-orientation.