Skip to content

Commit 83952a0

Browse files
Merge pull request #65 from dynamsoft-docs/preview
update to internal commit ebb67eb2
2 parents a5267b6 + 72c4cc5 commit 83952a0

File tree

4 files changed

+131
-1
lines changed

4 files changed

+131
-1
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.
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
---
2+
layout: default-layout
3+
title: CameraToggleButton Class - Dynamsoft Capture Vision MAUI Edition
4+
description: CameraToggleButton class of DCV MAUI edition defines a camera toggle button with its location, size and image.
5+
keywords: camera toggle button, camera toggle image
6+
needGenerateH3Content: true
7+
needAutoGenerateSidebar: true
8+
noTitleIndex: true
9+
---
10+
11+
# CameraToggleButton
12+
13+
The CameraToggleButton class defines a camera toggle button with its location, size and image.
14+
15+
## Definition
16+
17+
*Namespace:* Dynamsoft.CameraEnhancer.Maui
18+
19+
*Assembly:* Dynamsoft.CameraEnhancer.Maui
20+
21+
```java
22+
class CameraToggleButton
23+
```
24+
25+
## Properties & Methods
26+
27+
| Property | Type | Description |
28+
|--------- |------|-------------|
29+
| [`X`](#x) | *double* | The x-coordinate of the camera toggle button. |
30+
| [`Y`](#y) | *double* | The y-coordinate of the camera toggle button. |
31+
| [`Width`](#width) | *double* | The width of the camera toggle button. |
32+
| [`Height`](#height) | *double* | The height of the camera toggle button. |
33+
| [`CameraToggleImageSource`](#cameratoggleimagesource) | *ImageSource* | The image source of the camera toggle button. |
34+
35+
| Method | Description |
36+
|------- |-------------|
37+
| [`CameraToggleButton`](#cameratogglebutton-1) | The constructors. |
38+
39+
### X
40+
41+
The x-coordinate of the camera toggle button.
42+
43+
```csharp
44+
double X { get; set; }
45+
```
46+
47+
### Y
48+
49+
The y-coordinate of the camera toggle button.
50+
51+
```csharp
52+
double Y { get; set; }
53+
```
54+
55+
### Width
56+
57+
The width of the camera toggle button.
58+
59+
```csharp
60+
double Width { get; set; }
61+
```
62+
63+
### Height
64+
65+
The height of the camera toggle button.
66+
67+
```csharp
68+
double Height { get; set; }
69+
```
70+
71+
### CameraToggleImageSource
72+
73+
The image source of the camera toggle button.
74+
75+
```csharp
76+
ImageSource? CameraToggleImageSource { get; set; }
77+
```
78+
79+
### CameraToggleButton
80+
81+
The constructors.
82+
83+
```csharp
84+
CameraToggleButton();
85+
CameraToggleButton(double x, double y, double width, double height, ImageSource? cameraToggleImageSource);
86+
```

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ class CameraView : View
3131

3232
| Property | Type | Description |
3333
|--------- | ---- |-------------|
34+
| [`CameraToggleButton`](#cameratogglebutton) | *CameraToggleButton* | The property that defines a camera toggle button. User can click the button to switch between the front and back forward cameras. |
35+
| [`CameraToggleButtonVisible`](#cameratogglebuttonvisible) | *bool* | The property that defines whether the camera toggle button is visible. |
3436
| [`TorchButton`](#torchbutton) | *TorchButton* | The property that defines a torch button. User can click the button to turn on/off the torch. |
3537
| [`TorchButtonVisible`](#torchbuttonvisible) | *bool* | The property that defines whether the torch button is visible. |
3638
| [`ScanRegionMaskVisible`](#scanregionmaskvisible) | *bool* | The property that defines whether the scan region mask is visible. |
@@ -60,6 +62,22 @@ DrawingLayer GetDrawingLayer(EnumDrawingLayerId id);
6062

6163
The `DrawingLayer` instance.
6264

65+
### CameraToggleButton
66+
67+
The property that defines a torch button. User can click the button to switch between the front and back forward cameras. View [`CameraToggleButton`]({{ site.dce_maui_api }}camera-toggle-button.html) class for how more information about how to configure the camera toggle button.
68+
69+
```csharp
70+
CameraToggleButton CameraToggleButton { get; set; }
71+
```
72+
73+
### CameraToggleButtonVisible
74+
75+
The property that defines whether the camera toggle button is visible.
76+
77+
```csharp
78+
bool CameraToggleButtonVisible { get; set; }
79+
```
80+
6381
### TorchButton
6482

6583
The property that defines a torch button. User can click the button to turn on/off the torch. View [`TorchButton`]({{ site.dce_maui_api }}torch-button.html) class for how more information about how to configure the torch button.

programming/maui/api-reference/torch-button.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The TorchButton class defines a torch button with its location, size and image.
2222
class TorchButton
2323
```
2424

25-
## Properties
25+
## Properties & Methods
2626

2727
| Property | Type | Description |
2828
|--------- |------|-------------|
@@ -33,6 +33,10 @@ class TorchButton
3333
| [`TorchOnImageSource`](#torchonimagesource) | *ImageSource* | The image source of the torch button when the torch is on. |
3434
| [`TorchOffImageSource`](#torchoffimagesource) | *ImageSource* | The image source of the torch button when the torch is off. |
3535

36+
| Method | Description |
37+
|------- |-------------|
38+
| [`TorchButton`](#torchbutton-1) | The constructors. |
39+
3640
### X
3741

3842
The x-coordinate of the torch button.
@@ -80,3 +84,12 @@ The image source of the torch button when the torch is off.
8084
```csharp
8185
ImageSource? TorchOffImageSource { get; set; }
8286
```
87+
88+
### TorchButton
89+
90+
The constructors.
91+
92+
```csharp
93+
TorchButton();
94+
TorchButton(double x, double y, double width, double height, ImageSource? onImageSource, ImageSource? offImageSource);
95+
```

0 commit comments

Comments
 (0)