FocusSessionManager.IsFocusActiveChanged Kejadian
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Dimunculkan saat status sesi fokus perangkat berubah.
// Register
event_token IsFocusActiveChanged(TypedEventHandler<FocusSessionManager, IInspectable const&> const& handler) const;
// Revoke with event_token
void IsFocusActiveChanged(event_token const* cookie) const;
// Revoke with event_revoker
FocusSessionManager::IsFocusActiveChanged_revoker IsFocusActiveChanged(auto_revoke_t, TypedEventHandler<FocusSessionManager, IInspectable const&> const& handler) const;
public event TypedEventHandler<FocusSessionManager,object> IsFocusActiveChanged;
function onIsFocusActiveChanged(eventArgs) { /* Your code */ }
focusSessionManager.addEventListener("isfocusactivechanged", onIsFocusActiveChanged);
focusSessionManager.removeEventListener("isfocusactivechanged", onIsFocusActiveChanged);
- or -
focusSessionManager.onisfocusactivechanged = onIsFocusActiveChanged;
Public Custom Event IsFocusActiveChanged As TypedEventHandler(Of FocusSessionManager, Object)