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.

Keep going from @capgo/capacitor-screen-orientation

Section titled “Keep going from @capgo/capacitor-screen-orientation”

If you are using @capgo/capacitor-screen-orientation to plan native media and interface behavior, connect it with Using @capgo/capacitor-screen-orientation for the native capability in Using @capgo/capacitor-screen-orientation, Using @capgo/capacitor-live-activities for the native capability in Using @capgo/capacitor-live-activities, @capgo/capacitor-live-activities for the implementation detail in @capgo/capacitor-live-activities, Using @capgo/capacitor-video-player for the native capability in Using @capgo/capacitor-video-player, and @capgo/capacitor-video-player for the implementation detail in @capgo/capacitor-video-player.