ScreenCapture class

ScreenCapture class

Enables an app to capture audio and video of the contents being displayed on the device.

Syntax


var screenCapture = Windows.Media.Capture.ScreenCapture;

Members

The ScreenCapture class has these types of members:

Events

The ScreenCapture class has these events.

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

 

Methods

The ScreenCapture class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
GetForCurrentView Gets the ScreenCapture object associated with the app's current view.

 

Properties

The ScreenCapture class has these properties.

PropertyAccess typeDescription

AudioSource

Read-only

Gets the audio source used for screen capture.

IsAudioSuspended

Read-only

Gets whether the screen capture of audio is currently suspended.

IsVideoSuspended

Read-only

Gets whether the screen capture of video is currently suspended.

VideoSource

Read-only

Gets the video source used for screen capture.

 

Remarks

Important  

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

 

Requirements (Windows 10 device family)

Device family

Mobile, introduced version 10.0.10240.0

API contract

Windows.Phone.PhoneContract, introduced version 1.0

Namespace

Windows.Media.Capture
Windows::Media::Capture [C++]

Metadata

Windows.Phone.PhoneContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Media.Capture
Windows::Media::Capture [C++]

Metadata

Windows.WinMD

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06030000)]

See also

Object

 

 

Show:
© 2016 Microsoft