AppCaptureRecordOperation.StateChanged 事件

定义

当应用捕获记录操作的状态更改时发生。

// Register
event_token StateChanged(TypedEventHandler<AppCaptureRecordOperation, AppCaptureRecordingStateChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AppCaptureRecordOperation::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<AppCaptureRecordOperation, AppCaptureRecordingStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<AppCaptureRecordOperation,AppCaptureRecordingStateChangedEventArgs> StateChanged;
function onStateChanged(eventArgs) { /* Your code */ }
appCaptureRecordOperation.addEventListener("statechanged", onStateChanged);
appCaptureRecordOperation.removeEventListener("statechanged", onStateChanged);
- or -
appCaptureRecordOperation.onstatechanged = onStateChanged;
Public Custom Event StateChanged As TypedEventHandler(Of AppCaptureRecordOperation, AppCaptureRecordingStateChangedEventArgs) 

事件类型

Windows 要求

应用功能
appCaptureSettings

适用于