From 56c77653dbca70c98d75d726ff58e31cf1781c0c Mon Sep 17 00:00:00 2001 From: Vladislav Antonyuk Date: Wed, 5 Feb 2025 22:42:16 +0200 Subject: [PATCH 1/4] Fix Expander docs for 1567 --- docs/maui/views/Expander.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/maui/views/Expander.md b/docs/maui/views/Expander.md index 77432061a..2b50391e8 100644 --- a/docs/maui/views/Expander.md +++ b/docs/maui/views/Expander.md @@ -21,7 +21,7 @@ This `Header` property can be provided with any view to allow for full customiza This is the main content that will show when the `Header` property is interacted with it (clicked or tapped) or the `IsExpanded` property is modified. > [!NOTE] -> `Expander` is not supported inside `ListView` on iOS/MacCatalyst and throws NotSupportedException. However, it can be replaced with the custom implementation by setting `public Action? HandleHeaderTapped { get; set; }`. This action is executed each time the header tapped. Please pay attention, by changing this action you may receive different behavior in `CollectionView` and `ListView` on all platforms. +> `Expander` may work unexpectedly if it is placed inside `ListView` or `CollectionView`. However, it can be controlled with the custom implementation by setting `public Action? HandleHeaderTapped { get; set; }`. This action is executed each time the header tapped. Please pay attention, by changing this action you may receive different behavior in `CollectionView` and `ListView` on all platforms. ![Screenshot of an Expander in collapsed and expanded states](../images/views/Expander.gif "Expander showing in MacCatalyst") From ad21e48e24dc924df8d681b3939085a4257eaedd Mon Sep 17 00:00:00 2001 From: Vladislav Antonyuk Date: Sun, 27 Jul 2025 17:48:01 +0300 Subject: [PATCH 2/4] Camera Video Recording --- docs/maui/views/camera-view.md | 89 ++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/docs/maui/views/camera-view.md b/docs/maui/views/camera-view.md index e1a529475..69e9b4bdb 100644 --- a/docs/maui/views/camera-view.md +++ b/docs/maui/views/camera-view.md @@ -80,6 +80,9 @@ This should be added inside the `` element. Below shows a more complete ex NSCameraUsageDescription PROVIDE YOUR REASON HERE + + NSMicrophoneUsageDescription + PROVIDE YOUR REASON HERE ``` @@ -127,10 +130,15 @@ This should be added inside the `` element. Below shows a more complete ex NSCameraUsageDescription PROVIDE YOUR REASON HERE + + NSMicrophoneUsageDescription + PROVIDE YOUR REASON HERE ``` +More details can be found here: https://developer.apple.com/documentation/avfoundation/requesting-authorization-to-capture-and-save-media + ### [Windows](#tab/windows) No setup is required. @@ -422,6 +430,87 @@ async void HandleCaptureButtonTapped(object? sender, EventArgs e) } ``` + +## Video Recording + +The `CameraView` provides the ability to record videos. This is possible through both the `StartVideoRecording` method or the `StartVideoRecordingCommand`. + +The following example shows how to add a `Button` into the application and setup the following bindings: + +- Bind the `Command` property of the `Button` to the `StartVideoRecordingCommand` property on the `CameraView`. + +```xaml + + + + + + + + + + + +