PerceptionColorFrameSource.ActiveChanged Evento
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Sottoscrive l'evento ActiveChanged.
// Register
event_token ActiveChanged(TypedEventHandler<PerceptionColorFrameSource, IInspectable const&> const& handler) const;
// Revoke with event_token
void ActiveChanged(event_token const* cookie) const;
// Revoke with event_revoker
PerceptionColorFrameSource::ActiveChanged_revoker ActiveChanged(auto_revoke_t, TypedEventHandler<PerceptionColorFrameSource, IInspectable const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameSource 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("PerceptionColorFrameSource 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<PerceptionColorFrameSource, IInspectable const&> const& handler) const;
// Revoke with event_token
void ActiveChanged(event_token const* cookie) const;
// Revoke with event_revoker
PerceptionColorFrameSource::ActiveChanged_revoker ActiveChanged(auto_revoke_t, TypedEventHandler<PerceptionColorFrameSource, IInspectable const&> const& handler) const;
public event TypedEventHandler<PerceptionColorFrameSource,object> ActiveChanged;
[add: Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameSource 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("PerceptionColorFrameSource 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<PerceptionColorFrameSource,object> ActiveChanged;
function onActiveChanged(eventArgs) { /* Your code */ }
perceptionColorFrameSource.addEventListener("activechanged", onActiveChanged);
perceptionColorFrameSource.removeEventListener("activechanged", onActiveChanged);
- or -
perceptionColorFrameSource.onactivechanged = onActiveChanged;
Public Custom Event ActiveChanged As TypedEventHandler(Of PerceptionColorFrameSource, Object)
Tipo evento
TypedEventHandler<PerceptionColorFrameSource,IInspectable>
- Attributi