diff --git a/specs/CameraCaptureUI/CameraCaptureUI.md b/specs/CameraCaptureUI/CameraCaptureUI.md index 7c5d5cb6b7..46d19453c1 100644 --- a/specs/CameraCaptureUI/CameraCaptureUI.md +++ b/specs/CameraCaptureUI/CameraCaptureUI.md @@ -190,6 +190,12 @@ Provides settings for capturing photos with CameraCaptureUI. The settings include aspect ratio, image size, format, resolution, and whether or not cropping is allowed by the user interface (UI). +**Important Note**: +- By default, `AllowCropping` is true. +- Don't specify both size and aspect ratio in the `PhotoSettings`, doing so will cause an invalid argument exception. +- `PhotoSettings` can't have a ratio or size specified with cropping disabled. Attempting to do so will result in an invalid argument exception. + + ## CameraCaptureUIPhotoCaptureSettings Properties | Name | Description | Value | @@ -207,6 +213,12 @@ and whether or not cropping is allowed by the user interface (UI). Provides settings for capturing videos. The settings include format, maximum resolution, maximum duration, and whether or not to allow trimming. +**Important Note**: +- By default, `AllowTrimming` is true. +- `MaxDurationInSeconds` must be a valid value (i.e., the duration should be in the range of 0 to `UINT32_MAX`). Specifying an invalid value will result in an invalid argument exception. +- `MaxDurationInSeconds` cannot be set if `AllowTrimming` is false. Attempting to do so will result in an invalid argument exception. + + ## CameraCaptureUIVideoCaptureSettings Properties | Name | Description | Value | |-|-|-| @@ -355,8 +367,6 @@ namespace Microsoft.Windows.Media.Capture } [contract(CameraCaptureUIContract, 1)] - [threading(sta), - marshaling_behavior(none)] runtimeclass CameraCaptureUI { CameraCaptureUI(Microsoft.UI.WindowId window); diff --git a/specs/WinRT/WinRTAPIContracts.md b/specs/WinRT/WinRTAPIContracts.md index c2fb1e7a78..2b50856dc3 100644 --- a/specs/WinRT/WinRTAPIContracts.md +++ b/specs/WinRT/WinRTAPIContracts.md @@ -106,6 +106,7 @@ The list of all contracts defined across Windows App SDK | AppLifecycle | windowsappsdk | AppLifecycleContract | Microsoft.Windows.AppLifecycle | | | AppNotifications | windowsappsdk | AppNotificationsContract | Microsoft.Windows.AppNotifications | | | BackgroundTask | windowsappsdk | BackgroundTaskContract | Microsoft.Windows.ApplicationModel.Background | | +| CameraCaptureUI | windowsappsdk | CameraCaptureUIContract | Microsoft.Windows.Media.Capture | | | Deployment | windowsappsdk | DeploymentManagerContract | Microsoft.Windows.ApplicationModel.WindowsAppRuntime | | | DynamicDependency | windowsappsdk | DynamicDependencyContract | Microsoft.Windows.ApplicationModel.DynamicDependency | | | EnvironmentManager | windowsappsdk | EnvironmentManagerContract | Microsoft.Windows.System | |