TwoPanelHingedDevicePosturePreview.PostureChanged Ereignis
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Tritt auf, wenn sich die Geräteposition geändert hat.
// 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)
Ereignistyp
TypedEventHandler<TwoPanelHingedDevicePosturePreview,TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs>
- Attribute