PerceptionColorFrameReader.FrameArrived 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
订阅 FrameArrived 事件。 每当新帧从颜色帧源到达时,将触发此事件。
// Register
event_token FrameArrived(TypedEventHandler<PerceptionColorFrameReader, PerceptionColorFrameArrivedEventArgs const&> const& handler) const;
// Revoke with event_token
void FrameArrived(event_token const* cookie) const;
// Revoke with event_revoker
PerceptionColorFrameReader::FrameArrived_revoker FrameArrived(auto_revoke_t, TypedEventHandler<PerceptionColorFrameReader, PerceptionColorFrameArrivedEventArgs const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameReader may be unavailable after Windows Creator Update. Use Windows.Media.Capture.Frames.MediaFrameReader instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameReader may be unavailable after Windows Creator Update. Use Windows.Media.Capture.Frames.MediaFrameReader instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
// Register
event_token FrameArrived(TypedEventHandler<PerceptionColorFrameReader, PerceptionColorFrameArrivedEventArgs const&> const& handler) const;
// Revoke with event_token
void FrameArrived(event_token const* cookie) const;
// Revoke with event_revoker
PerceptionColorFrameReader::FrameArrived_revoker FrameArrived(auto_revoke_t, TypedEventHandler<PerceptionColorFrameReader, PerceptionColorFrameArrivedEventArgs const&> const& handler) const;
public event TypedEventHandler<PerceptionColorFrameReader,PerceptionColorFrameArrivedEventArgs> FrameArrived;
[add: Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameReader may be unavailable after Windows Creator Update. Use Windows.Media.Capture.Frames.MediaFrameReader instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameReader may be unavailable after Windows Creator Update. Use Windows.Media.Capture.Frames.MediaFrameReader instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<PerceptionColorFrameReader,PerceptionColorFrameArrivedEventArgs> FrameArrived;
function onFrameArrived(eventArgs) { /* Your code */ }
perceptionColorFrameReader.addEventListener("framearrived", onFrameArrived);
perceptionColorFrameReader.removeEventListener("framearrived", onFrameArrived);
- or -
perceptionColorFrameReader.onframearrived = onFrameArrived;
Public Custom Event FrameArrived As TypedEventHandler(Of PerceptionColorFrameReader, PerceptionColorFrameArrivedEventArgs)
事件类型
- 属性