HumanPresenceSettings.SettingsChanged 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.
Occurs when a user changes any human presence setting.
// Register
static event_token SettingsChanged(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void SettingsChanged(event_token const* cookie) const;
// Revoke with event_revoker
static HumanPresenceSettings::SettingsChanged_revoker SettingsChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> SettingsChanged;
function onSettingsChanged(eventArgs) { /* Your code */ }
Windows.Devices.Sensors.HumanPresenceSettings.addEventListener("settingschanged", onSettingsChanged);
Windows.Devices.Sensors.HumanPresenceSettings.removeEventListener("settingschanged", onSettingsChanged);
- or -
Windows.Devices.Sensors.HumanPresenceSettings.onsettingschanged = onSettingsChanged;
Public Shared Custom Event SettingsChanged As EventHandler(Of Object)