Skip to content

@capgo/capacitor-screen-orientation

Capacitor スクリーン オリエンテーション プラグイン インターフェイス

Capacitor スクリーン オリエンテーション プラグイン インターフェイス。

  • orientation - 現在のスクリーン オリエンテーションを取得します。
  • lock - スクリーン オリエンテーションを特定のタイプに固定します。
  • unlock - スクリーン オリエンテーションを解除します。
  • startOrientationTracking - デバイス オリエンテーションをモーション センサーを使用して追跡します。
メソッド説明
orientation現在のスクリーン オリエンテーションを取得します。
lock特定の方向に画面の向きを固定する。
unlock画面の向きを解除する。
startOrientationTrackingモーションセンサを使用して画面の向きを追跡する。
stopOrientationTrackingモーションセンサを使用して画面の向きの追跡を停止する。
isOrientationLocked現在、画面の向きのロックが有効になっているかどうかを確認する。
addListener画面の向きの変更をリスンする。
removeAllListenersこのプラグインのすべてのリスナーを削除する。
getPluginVersionネイティブプラグインのバージョンを取得する。

このリファレンスは src/definitions.ts in capacitor-画面向けのオリエンテーション.