Skip to content

Commit 72c4cc5

Browse files
update to internal commit 66232b05
1 parent 5c6f9f0 commit 72c4cc5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

programming/maui/api-reference/camera-enhancer.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class CameraEnhancer : ImageSourceAdapter
4444
| [`GetFocusMode`](#getfocusmode) | Set the focus point of interest and trigger an one-off auto-focus. After the focus, you can either lock the focalngth or keep the continuous auto focus enabled by configuring the subsequent focus mode. |
4545
| [`TurnOnTorch`](#turnontorch) | Turn on the torch. |
4646
| [`TurnOffTorch`](#turnofftorch) | Turn off the torch. |
47+
| [`TakePhoto`](#takephoto) | Take a photo. |
4748

4849
The following methods are inherited from superclass [`ImageSourceAdapter`]({{ site.dcv_maui_api }}core/image-source-adapter.html)
4950

@@ -251,3 +252,15 @@ Turn off the torch.
251252
```csharp
252253
void TurnOffTorch();
253254
```
255+
256+
### TakePhoto
257+
258+
Take a photo.
259+
260+
```csharp
261+
public partial void TakePhoto(Action<byte[]?> listener);
262+
```
263+
264+
**Parameters**
265+
266+
`listener`: A callback to receive the photo data.

0 commit comments

Comments
 (0)