AppCapability.AccessChanged Event

Definition

Raised when there is a change to access status.

// Register
event_token AccessChanged(TypedEventHandler<AppCapability, AppCapabilityAccessChangedEventArgs const&> const& handler) const;

// Revoke with event_token
void AccessChanged(event_token const* cookie) const;

// Revoke with event_revoker
AppCapability::AccessChanged_revoker AccessChanged(auto_revoke_t, TypedEventHandler<AppCapability, AppCapabilityAccessChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<AppCapability,AppCapabilityAccessChangedEventArgs> AccessChanged;
function onAccessChanged(eventArgs) { /* Your code */ }
appCapability.addEventListener("accesschanged", onAccessChanged);
appCapability.removeEventListener("accesschanged", onAccessChanged);
- or -
appCapability.onaccesschanged = onAccessChanged;
Public Custom Event AccessChanged As TypedEventHandler(Of AppCapability, AppCapabilityAccessChangedEventArgs) 

Event Type

Remarks

This event is guaranteed to be invoked when access status changes for the indicated capability on the system, but only if the app is not suspended. This event has no payload, as the application cannot rely on this potentially delayed information and must return to their held AppCapability object to determine the current access status.

Applies to