CameraOptionsUI CameraOptionsUI CameraOptionsUI CameraOptionsUI Class

Provides a method for displaying a UI, by which the UI contains options for the capture of photos, audio recordings and videos.

Syntax

Declaration

public static class CameraOptionsUIpublic static class CameraOptionsUIPublic Static Class CameraOptionsUI

Remarks

This object is not instantiated directly. Simply use the static Show(Windows.Media.Capture.MediaCapture) 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.

Examples

The following example shows how to use this class to display the camera options.

function showWebcamSettings() {
    var mediaCaptureMgr = new Windows.Media.Capture.MediaCapture();
    Windows.Media.Capture.CameraOptionsUI.show(mediaCaptureMgr);
}

Methods summary

Displays a UI that contains options for the capture of photos, audio recordings and videos.

Methods

  • Show(Windows.Media.Capture.MediaCapture)
    Show(Windows.Media.Capture.MediaCapture)
    Show(Windows.Media.Capture.MediaCapture)
    Show(Windows.Media.Capture.MediaCapture)

    Displays a UI that contains options for the capture of photos, audio recordings and videos.

    public static void Show(Windows.Media.Capture.MediaCapture)public static void Show(Windows.Media.Capture.MediaCapture)Public Static Function Show(Windows.Media.Capture.MediaCapture) As void

    Parameters

Device family

Windows Desktop Extension SDK (introduced v10.0.10240.0)

API contract

Windows.Media.Capture.CameraCaptureUIContract (introduced v1)

Capabilities

webcam
microphone

Attributes

Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.ThreadingAttribute

Details

Assembly

Windows.Media.Capture.dll