共用方式為


AppBroadcastState.CameraCaptureStateChanged 事件

定義

發生于相機擷取狀態變更時。

// Register
event_token CameraCaptureStateChanged(TypedEventHandler<AppBroadcastState, AppBroadcastCameraCaptureStateChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AppBroadcastState::CameraCaptureStateChanged_revoker CameraCaptureStateChanged(auto_revoke_t, TypedEventHandler<AppBroadcastState, AppBroadcastCameraCaptureStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<AppBroadcastState,AppBroadcastCameraCaptureStateChangedEventArgs> CameraCaptureStateChanged;
function onCameraCaptureStateChanged(eventArgs) { /* Your code */ }
appBroadcastState.addEventListener("cameracapturestatechanged", onCameraCaptureStateChanged);
appBroadcastState.removeEventListener("cameracapturestatechanged", onCameraCaptureStateChanged);
- or -
appBroadcastState.oncameracapturestatechanged = onCameraCaptureStateChanged;
Public Custom Event CameraCaptureStateChanged As TypedEventHandler(Of AppBroadcastState, AppBroadcastCameraCaptureStateChangedEventArgs) 

事件類型

Windows 需求

應用程式功能
appBroadcast appBroadcastSettings

適用於