LockScreenCallUI.EndRequested イベント
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
非推奨になりました。 ロック画面が呼び出しを終了する場合に発生します。
// Register
event_token EndRequested(TypedEventHandler<LockScreenCallUI, LockScreenCallEndRequestedEventArgs const&> const& handler) const;
// Revoke with event_token
void EndRequested(event_token const* cookie) const;
// Revoke with event_revoker
LockScreenCallUI::EndRequested_revoker EndRequested(auto_revoke_t, TypedEventHandler<LockScreenCallUI, LockScreenCallEndRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<LockScreenCallUI,LockScreenCallEndRequestedEventArgs> EndRequested;
function onEndRequested(eventArgs) { /* Your code */ }
lockScreenCallUI.addEventListener("endrequested", onEndRequested);
lockScreenCallUI.removeEventListener("endrequested", onEndRequested);
- or -
lockScreenCallUI.onendrequested = onEndRequested;
Public Custom Event EndRequested As TypedEventHandler(Of LockScreenCallUI, LockScreenCallEndRequestedEventArgs)
イベントの種類
Windows の要件
| アプリの機能 |
phoneCallHistory
phoneCallHistorySystem
|
注釈
EndRequested イベントは、通常、ユーザーがロック画面で [通話の終了] ボタンをタップしたときに発生しますが、イベントは他の条件下でも発生する可能性があります。 たとえば、ロック画面で呼び出しが既にアクティブになっている間に呼び出しが行われるとします。 ロック画面で新しい呼び出しを受け入れることで、前の呼び出しは終了します。
EndRequested イベント ハンドラーが戻ると、アプリはロック画面から削除されます。 アプリは、 LockScreenCallEndRequestedEventArgs.GetDeferral を呼び出して遅延を要求することで、ロック画面で時間を延長できます。 アプリが遅延を要求した場合、遅延が完了するか期限が過ぎると、アプリはロック画面から削除されます。