FocusSessionManager.IsFocusActiveChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raised when the focus session status of the device changes.
// 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)