Windows Dev Center

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-onlyGets the audio source used for screen capture.

IsAudioSuspended

Read-onlyGets whether the screen capture of audio is currently suspended.

IsVideoSuspended

Read-onlyGets whether the screen capture of video is currently suspended.

VideoSource

Read-onlyGets the video source used for screen capture.

 

Requirements (Windows 10 device family)

Device family

Mobile

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 [Windows Store apps only]

Minimum supported server

None supported [Windows Store apps only]

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:
© 2015 Microsoft