Partager via


PerceptionInfraredFrameSource.ActiveChanged Événement

Définition

S’abonne à l’événement ActiveChanged.

// Register
event_token ActiveChanged(TypedEventHandler<PerceptionInfraredFrameSource, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
PerceptionInfraredFrameSource::ActiveChanged_revoker ActiveChanged(auto_revoke_t, TypedEventHandler<PerceptionInfraredFrameSource, IInspectable const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("PerceptionInfraredFrameSource 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("PerceptionInfraredFrameSource 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<PerceptionInfraredFrameSource, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
PerceptionInfraredFrameSource::ActiveChanged_revoker ActiveChanged(auto_revoke_t, TypedEventHandler<PerceptionInfraredFrameSource, IInspectable const&> const& handler) const;
public event TypedEventHandler<PerceptionInfraredFrameSource,object> ActiveChanged;
[add: Windows.Foundation.Metadata.Deprecated("PerceptionInfraredFrameSource 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("PerceptionInfraredFrameSource 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<PerceptionInfraredFrameSource,object> ActiveChanged;
function onActiveChanged(eventArgs) { /* Your code */ }
perceptionInfraredFrameSource.addEventListener("activechanged", onActiveChanged);
perceptionInfraredFrameSource.removeEventListener("activechanged", onActiveChanged);
- or -
perceptionInfraredFrameSource.onactivechanged = onActiveChanged;
Public Custom Event ActiveChanged As TypedEventHandler(Of PerceptionInfraredFrameSource, Object) 

Type d'événement

Attributs

S’applique à