CameraCaptureUI Class
Definition
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 full window UI for capturing audio, video, and photos from the device's camera as well as controls for cropping photos, trimming video, time-delayed capture, and camera settings.
public ref class CameraCaptureUI sealed
/// [Windows.Foundation.Metadata.Activatable(Microsoft.Windows.Media.Capture.ICameraCaptureUIFactory, 65536, "Microsoft.Windows.Media.Capture.CameraCaptureUIContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.Media.Capture.CameraCaptureUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CameraCaptureUI final
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.Windows.Media.Capture.ICameraCaptureUIFactory), 65536, "Microsoft.Windows.Media.Capture.CameraCaptureUIContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.Media.Capture.CameraCaptureUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CameraCaptureUI
function CameraCaptureUI(windowId)
Public NotInheritable Class CameraCaptureUI
- Inheritance
- Attributes
Remarks
This API is available for Windows apps that use the Windows App SDK. UWP apps must use the legacy CameraCaptureUI class from the Windows.Media.Capture namespace.
CameraCaptureUI provides an easy way to add basic photo and video capture functionality to a Windows app without having to create any custom camera UI and without having to use any low-level camera APIs. For more advanced scenarios that require custom camera UI or more refined control over the capture pipeline, use the MediaCapture class. For more information, see Camera.
Constructors
CameraCaptureUI(WindowId) |
Initializes a new instance of the CameraCaptureUI class. |
Properties
PhotoSettings |
Gets a CameraCaptureUIPhotoCaptureSettings that specifies the settings for capturing photos with CameraCaptureUI. |
VideoSettings |
Gets a CameraCaptureUIVideoCaptureSettings that specifies the settings for capturing videos with CameraCaptureUI. |
Methods
CaptureFileAsync(CameraCaptureUIMode) |
Launches the camera capture UI, allowing the user to capture photos, videos, or both. |