TwoPanelHingedDevicePosturePreview.PostureChanged 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 the device posture has changed.
// 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)
Event Type
TypedEventHandler<TwoPanelHingedDevicePosturePreview,TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs>
- Attributes