Dela via


ScreenCapture.SourceSuspensionChanged Event

Definition

Raised when the suspension of screen captured audio or video changes.

// Register
event_token SourceSuspensionChanged(TypedEventHandler<ScreenCapture, SourceSuspensionChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ScreenCapture::SourceSuspensionChanged_revoker SourceSuspensionChanged(auto_revoke_t, TypedEventHandler<ScreenCapture, SourceSuspensionChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<ScreenCapture,SourceSuspensionChangedEventArgs> SourceSuspensionChanged;
function onSourceSuspensionChanged(eventArgs) { /* Your code */ }
screenCapture.addEventListener("sourcesuspensionchanged", onSourceSuspensionChanged);
screenCapture.removeEventListener("sourcesuspensionchanged", onSourceSuspensionChanged);
- or -
screenCapture.onsourcesuspensionchanged = onSourceSuspensionChanged;
Public Custom Event SourceSuspensionChanged As TypedEventHandler(Of ScreenCapture, SourceSuspensionChangedEventArgs) 

Event Type

Remarks

Important

The ScreenCapture feature is only supported for mobile devices running Windows Phone 8.1. This API is not supported on Windows 10.

The capture of audio or video will be suspended when protected content is being played or displayed. You can use IsAudioSuspended or IsVideoSuspended to determine whether audio or video is currently suspended. Handle this event to be notified when the suspension of audio or video changes.

Applies to