@capgo/capacitor-flash
Capacitorのフラッシュ プラグイン
概要
概要Capacitor のフラッシュ プラグインは、デバイスのフラッシュライト/トーチを制御することができます。
主な機能
主な機能isAvailable- __CAPGO_KEEP_0__が利用可能かどうか確認します。switchOn- __CAPGO_KEEP_0__をオンにします。switchOff- __CAPGO_KEEP_0__をオフにします。isSwitchedOn- __CAPGO_KEEP_0__が現在オンかオフかを確認します。
Public API
「Public API」のセクション| メソッド | 説明 |
|---|---|
isAvailable | __CAPGO_KEEP_0__が利用可能かどうか確認します。 |
switchOn | __CAPGO_KEEP_0__をオンにします。 |
switchOff | __CAPGO_KEEP_0__をオフにします。 |
isSwitchedOn | __CAPGO_KEEP_0__が現在オンかオフかを確認します。 |
toggle | フラッシュライトをオンまたはオフに切り替えます。 |
getPluginVersion | Capacitorのネイティブプラグインバージョンを取得します。 |
真実の源
「真実の源」というセクションこの参照は src/definitions.ts in capacitor-flash.
Keep going from @capgo/capacitor-flash
Section titled “Keep going from @capgo/capacitor-flash”Capgoを使用している場合 capgo/capacitor-flash CapgoのAPIオペレーションとダッシュボードの計画に使用している場合、 Using @capgo/capacitor-flash for the native capability in Using @capgo/capacitor-flash API Overview for the implementation detail in API Overview Introduction for the implementation detail in Introduction API Keys for the implementation detail in API Keys, and Devices for the implementation detail in Devices