次の方法で共有


HumanPresenceSettings.SettingsChanged イベント

定義

ユーザーが人間のプレゼンス設定を変更したときに発生します。

// 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) 

イベントの種類

適用対象