提供: Bright Pattern Documentation
• 日本語

Revision as of 02:46, 23 September 2026 by BpTranslationReview (talk | contribs) (Reviewed via BpTranslationReview)

< 前へ | 次へ >
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
移動先: 案内、 検索
• English

onScreenRecordingStateChange

このコールバックは、スクリーン録画の状態が変化した際(例:スクリーン録画の開始または終了、あるいは録画用のマイクのミュート設定のオン/オフなど)にトリガーされます。

リクエスト

構文

on('ON_SCREEN_RECORDING_STATE_CHANGE', handler: OnScreenRecordingStateChange): void


type OnScreenRecordingStateChange = (screenRecordingState: ScreenRecordingState) => void


type ScreenRecordingState = {

 allowed: boolean
 active: boolean
 muted: boolean

}


パラメータ

パラメータ パラメータ値 データ型 オプション/必須 説明
screenRecordingState
allowed ブール値 必須 true に設定すると、現在のユーザーでスクリーン録画を使用できます。false に設定すると、現在のユーザーではスクリーン録画を使用できません。
active ブール値 必須 true に設定すると、スクリーン録画は現在有効です。false に設定すると、スクリーン録画は現在無効です。
muted ブール値 必須 true に設定すると、スクリーン録画はミュートされています。false に設定すると、スクリーン録画はミュートされていません。

リクエスト例

function screenRecordingChangeCallback(newState: ScreenRecordingState) {

console.log("Screen recording is active?", newState.active ? "yes" : "no");

}

adApi.on("ON_SCREEN_RECORDING_STATE_CHANGE", screenRecordingChangeCallback);

戻り値

(なし)

< 前へ | 次へ >