From cf75992b1bf60d0fbb9e8133a801acc9e82015da Mon Sep 17 00:00:00 2001 From: David Britch Date: Tue, 3 Oct 2023 13:40:29 +0100 Subject: [PATCH 1/2] Add IsSupportedAsync method. --- docs/platform-integration/device/flashlight.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/platform-integration/device/flashlight.md b/docs/platform-integration/device/flashlight.md index e13c7eb71e..210040b3cd 100644 --- a/docs/platform-integration/device/flashlight.md +++ b/docs/platform-integration/device/flashlight.md @@ -1,7 +1,7 @@ --- title: "Flashlight" description: "Learn how to use the .NET MAUI IFlashlight interface in the Microsoft.Maui.Devices namespace. This interface provides the ability to turn on or off the device's camera flash, to emulate a flashlight." -ms.date: 02/02/2023 +ms.date: 10/03/2023 no-loc: ["Microsoft.Maui", "Microsoft.Maui.Devices"] --- @@ -74,6 +74,13 @@ The flashlight can be turned on and off through the method. + +::: moniker-end + ## Platform differences This section describes the platform-specific differences with the flashlight. From 0f42ee904504f8ad80158998c818a7eae418c9bd Mon Sep 17 00:00:00 2001 From: David Britch Date: Tue, 3 Oct 2023 13:43:41 +0100 Subject: [PATCH 2/2] Edits. --- docs/platform-integration/device/flashlight.md | 1 - docs/whats-new/dotnet-8.md | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platform-integration/device/flashlight.md b/docs/platform-integration/device/flashlight.md index 210040b3cd..2500dad1ab 100644 --- a/docs/platform-integration/device/flashlight.md +++ b/docs/platform-integration/device/flashlight.md @@ -74,7 +74,6 @@ The flashlight can be turned on and off through the method. diff --git a/docs/whats-new/dotnet-8.md b/docs/whats-new/dotnet-8.md index a820884d29..9a9afd0f24 100644 --- a/docs/whats-new/dotnet-8.md +++ b/docs/whats-new/dotnet-8.md @@ -18,6 +18,7 @@ For information about what's new in .NET 8, see [What's new in .NET 8](/dotnet/c - gains a `StartPath` property, a `TryDispatchAsync` method, and enhanced logging capabilities. For more information, see [Host a Blazor web app in a .NET MAUI app using BlazorWebView](~/user-interface/controls/blazorwebview.md). - gains `PointerPressedCommand`, `PointerPressedCommandParameter`, `PointerReleasedCommand`, `PointerReleasedCommandParameter` properties, and `PointerPressed` and `PointerReleased` events. For more information, see [Recognize a pointer gesture](~/fundamentals/gestures/pointer.md). +- gains a `IsSupportedAsync` method that determines whether a flashlight is available on the device. For more information, see [Flashlight](~/platform-integration/device/flashlight.md).