Поделиться через


TwoPanelHingedDevicePosturePreview.PostureChanged Событие

Определение

Происходит при изменении состояния устройства .

// Register
event_token PostureChanged(TypedEventHandler<TwoPanelHingedDevicePosturePreview, TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
TwoPanelHingedDevicePosturePreview::PostureChanged_revoker PostureChanged(auto_revoke_t, TypedEventHandler<TwoPanelHingedDevicePosturePreview, TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("TwoPanelHingedDevicePosturePreview is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("TwoPanelHingedDevicePosturePreview is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
// Register
event_token PostureChanged(TypedEventHandler<TwoPanelHingedDevicePosturePreview, TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
TwoPanelHingedDevicePosturePreview::PostureChanged_revoker PostureChanged(auto_revoke_t, TypedEventHandler<TwoPanelHingedDevicePosturePreview, TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<TwoPanelHingedDevicePosturePreview,TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs> PostureChanged;
[add: Windows.Foundation.Metadata.Deprecated("TwoPanelHingedDevicePosturePreview is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("TwoPanelHingedDevicePosturePreview is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<TwoPanelHingedDevicePosturePreview,TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs> PostureChanged;
function onPostureChanged(eventArgs) { /* Your code */ }
twoPanelHingedDevicePosturePreview.addEventListener("posturechanged", onPostureChanged);
twoPanelHingedDevicePosturePreview.removeEventListener("posturechanged", onPostureChanged);
- or -
twoPanelHingedDevicePosturePreview.onposturechanged = onPostureChanged;
Public Custom Event PostureChanged As TypedEventHandler(Of TwoPanelHingedDevicePosturePreview, TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs) 

Тип события

Атрибуты

Применяется к