CameraOptionsUI Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a method for displaying a UI, by which the UI contains options for the capture of photos, audio recordings and videos.
public ref class CameraOptionsUI abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Media.Capture.CameraCaptureUIContract, 65536)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class CameraOptionsUI final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Media.Capture.CameraCaptureUIContract), 65536)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public static class CameraOptionsUI
Public Class CameraOptionsUI
- Inheritance
- Attributes
Device family |
Windows Desktop Extension SDK (introduced in 10.0.10240.0)
|
API contract |
Windows.Media.Capture.CameraCaptureUIContract (introduced in v1.0)
|
App capabilities |
microphone
webcam
|
The following example shows how to use this class to display the camera options.
private void ShowWebcamSettings()
{
var mediaCaptureMgr = new Windows.Media.Capture.MediaCapture();
Windows.Media.Capture.CameraOptionsUI.Show(mediaCaptureMgr);
}
This object is not instantiated directly. Simply use the static Show method to display the options.
Note
This API is in the Desktop device family which means it can only be used on devices that support that family. To use this API, you must add a reference to the Windows Desktop Extensions for the UWP to your app. For more information on device families, see Intro to the Universal Windows Platform.
Show(Media |
Displays a UI that contains options for the capture of photos, audio recordings and videos. |
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |