提供: Bright Pattern Documentation
• English
onActiveInteractionSwitch
このハンドラーは、エージェントデスクトップ アプリケーションにおいて、アクティブなインタラクションが別のアクティブなインタラクションに切り替わった際に呼び出されます。
リクエスト
構文
| on('ON_ACTIVE_INTERACTION_SWITCHED', handler: OnActiveInteractionSwitchHandler): void
type OnActiveInteractionSwitchHandler = (activatedInteractionId: string | null) => void |
パラメータ
| パラメータ | パラメータ値 | データ型 | オプション/必須 | 説明 |
| activatedInteractionId | 文字列
null |
必須 | 現在アクティブになっているインタラクションの id です。
完了したインタラクションがあり、システムがアクティブなインタラクションがもはや存在しないと認識している場合、このタイプは null になることにご注意ください。 |
リクエスト例
const activeInteractionId: string | null = null;
function interactionSwitchedCallback(newId: string | null) {
activeInteractionId = newId;
}
adApi.on("ON_ACTIVE_INTERACTION_SWITCHED", interactionSwitchedCallback);
戻り値
(なし)