PerceptionDepthFrameSource.ActiveChanged 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.
Abonniert das ActiveChanged-Ereignis.
// Register
event_token ActiveChanged(TypedEventHandler<PerceptionDepthFrameSource, IInspectable const&> const& handler) const;
// Revoke with event_token
void ActiveChanged(event_token const* cookie) const;
// Revoke with event_revoker
PerceptionDepthFrameSource::ActiveChanged_revoker ActiveChanged(auto_revoke_t, TypedEventHandler<PerceptionDepthFrameSource, IInspectable const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("PerceptionDepthFrameSource may be unavailable after Windows Creator Update. Use Windows.Media.Capture.Frames.MediaFrameSource instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("PerceptionDepthFrameSource may be unavailable after Windows Creator Update. Use Windows.Media.Capture.Frames.MediaFrameSource instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
// Register
event_token ActiveChanged(TypedEventHandler<PerceptionDepthFrameSource, IInspectable const&> const& handler) const;
// Revoke with event_token
void ActiveChanged(event_token const* cookie) const;
// Revoke with event_revoker
PerceptionDepthFrameSource::ActiveChanged_revoker ActiveChanged(auto_revoke_t, TypedEventHandler<PerceptionDepthFrameSource, IInspectable const&> const& handler) const;
public event TypedEventHandler<PerceptionDepthFrameSource,object> ActiveChanged;
[add: Windows.Foundation.Metadata.Deprecated("PerceptionDepthFrameSource may be unavailable after Windows Creator Update. Use Windows.Media.Capture.Frames.MediaFrameSource instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("PerceptionDepthFrameSource may be unavailable after Windows Creator Update. Use Windows.Media.Capture.Frames.MediaFrameSource instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<PerceptionDepthFrameSource,object> ActiveChanged;
function onActiveChanged(eventArgs) { /* Your code */ }
perceptionDepthFrameSource.addEventListener("activechanged", onActiveChanged);
perceptionDepthFrameSource.removeEventListener("activechanged", onActiveChanged);
- or -
perceptionDepthFrameSource.onactivechanged = onActiveChanged;
Public Custom Event ActiveChanged As TypedEventHandler(Of PerceptionDepthFrameSource, Object)
Ereignistyp
TypedEventHandler<PerceptionDepthFrameSource,IInspectable>
- Attribute