Skip to content

Commit 186f870

Browse files
update to internal commit 777ab408
1 parent b03acf6 commit 186f870

File tree

5 files changed

+134
-0
lines changed

5 files changed

+134
-0
lines changed

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ repository: dynamsoft-docs/camera-enhancer-docs-mobile
33
docFullPath: https://www.dynamsoft.com/camera-enhancer/docs/mobile/
44
firstLevelUrl: /camera-enhancer/docs/mobile
55
docHomePage: /camera-enhancer/docs/core/introduction/
6+
needSearchIndex: true
7+
searchNeedFilter: true
68

79
productUrl: https://www.dynamsoft.com/camera-enhancer/overview/
810
productName: Dynamsoft Camera Enhancer
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
layout: default-layout
3+
title: ZoomFactorChangeListener - Dynamsoft Camera Enhancer Android Edition API Reference
4+
description: The interface ZoomFactorChangeListener of DynamsoftCameraEnhancer defines the methods for monitoring the change of the zoom-factor.
5+
keywords: photo listener, Java, Kotlin
6+
needGenerateH3Content: true
7+
needAutoGenerateSidebar: true
8+
noTitleIndex: true
9+
---
10+
11+
# ZoomFactorChangeListener
12+
13+
The `ZoomFactorChangeListener` interface defines the methods for monitoring the change of the zoom-factor.
14+
15+
## Definition
16+
17+
*Assembly:* package com.dynamsoft.dce
18+
19+
```java
20+
interface ZoomFactorChangeListener
21+
```
22+
23+
## Methods
24+
25+
| Method | Description |
26+
|------- |-------------|
27+
| [`onZoomFactorChanged`](#onphotooutput) | The method for monitoring the change of the zoom-factor. |
28+
29+
### onZoomFactorChanged
30+
31+
The method for monitoring the change of the zoom-factor.
32+
33+
```java
34+
void onZoomFactorChanged(float currentZoomFactor);
35+
```
36+
37+
**Parameters**
38+
39+
`currentZoomFactor`: The current zoom-factor.

programming/android/primary-api/camera-enhancer.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class CameraEnhancer extends ImageSourceAdapter
7171
| [`getAllCameras`](#getallcameras) | Get the IDs of all available cameras. |
7272
| [`selectCamera`](#selectcamera) | Select a camera with a camera ID. |
7373
| [`getSelectedCamera`](#getselectedcamera) | Get the currently actived camera. |
74+
| [`setZoomFactorChangeListener`](#setzoomfactorchangelistener) | Set a `ZoomFactorChangeListener` to receive callback when the zoom-factor changed. |
7475

7576
## Inherited Methods
7677

@@ -696,3 +697,15 @@ String getSelectedCamera(){}
696697
**Return Value**
697698

698699
The ID of the currently actived camera.
700+
701+
### setZoomFactorChangeListener
702+
703+
Set a [`ZoomFactorChangeListener`](../auxiliary-api/interface-zoomfactorchangelistener.md) to receive callback when the zoom-factor changed.
704+
705+
```java
706+
void setZoomFactorChangeListener(ZoomFactorChangeListener listener);
707+
```
708+
709+
**Parameters**
710+
711+
`listener`: A [`ZoomFactorChangeListener`](../auxiliary-api/interface-zoomfactorchangelistener.md) to receive callback when the zoom-factor changed.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
layout: default-layout
3+
title: DSZoomFactorChangeListener - DynamsoftCameraEnhancer iOS Edition API Reference
4+
description: The protocol DSZoomFactorChangeListener of DynamsoftCameraEnhancer defines the methods for monitoring the change of the zoom-factor.
5+
keywords: photo listener, objective-c, swift
6+
needGenerateH3Content: true
7+
needAutoGenerateSidebar: true
8+
noTitleIndex: true
9+
---
10+
11+
# DSZoomFactorChangeListener
12+
13+
The `DSZoomFactorChangeListener` protocol defines the methods for monitoring the change of the zoom-factor.
14+
15+
## Definition
16+
17+
*Assembly:* DynamsoftCameraEnhancer
18+
.xcframework
19+
20+
<div class="sample-code-prefix"></div>
21+
>- Objective-C
22+
>- Swift
23+
>
24+
>1.
25+
```objc
26+
@protocol DSZoomFactorChangeListener <NSObject>
27+
```
28+
2.
29+
```swift
30+
protocol ZoomFactorChangeListener : NSObjectProtocol
31+
```
32+
33+
## Methods
34+
35+
| Method | Description |
36+
|------- |-------------|
37+
| [`onZoomFactorChanged`](#onzoomfactorchanged) | The method for monitoring the change of the zoom-factor. |
38+
39+
### onZoomFactorChanged
40+
41+
The method for monitoring the change of the zoom-factor.
42+
43+
<div class="sample-code-prefix"></div>
44+
>- Objective-C
45+
>- Swift
46+
>
47+
>1.
48+
```objc
49+
- (void)onZoomFactorChanged:(CGFloat)currentZoomFactor;
50+
```
51+
2.
52+
```swift
53+
func onZoomFactorChanged(currentZoomFactor: CGFloat)
54+
```
55+
56+
**Parameters**
57+
58+
`currentZoomFactor`: The current zoom-factor.

programming/ios/primary-api/camera-enhancer.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class CameraEnhancer : ImageSourceAdapter
7272
| [`getAllCameras`](#getallcameras) | Get the IDs of all available cameras. |
7373
| [`selectCamera`](#selectcamera) | Select a camera with a camera ID. |
7474
| [`getSelectedCamera`](#getselectedcamera) | Get the currently actived camera. |
75+
| [`setZoomFactorChangeListener`](#setzoomfactorchangelistener) | Set a `DSZoomFactorChangeListener` to receive callback when the zoom-factor changed. |
7576

7677
## Attributes
7778

@@ -1060,3 +1061,24 @@ func getSelectedCamera() -> String
10601061
**Return Value**
10611062

10621063
The ID of the currently actived camera.
1064+
1065+
### setZoomFactorChangeListener
1066+
1067+
Set a [`DSZoomFactorChangeListener`](../auxiliary-api/protocol-zoomfactorchangelistener.md) to receive callback when the zoom-factor changed.
1068+
1069+
<div class="sample-code-prefix"></div>
1070+
>- Objective-C
1071+
>- Swift
1072+
>
1073+
>1.
1074+
```objc
1075+
- (void)setZoomFactorChangeListener:(nullable id<DSZoomFactorChangeListener>)listener;
1076+
```
1077+
2.
1078+
```swift
1079+
func setZoomFactorChangeListener(_ listener: DSZoomFactorChangeListener?)
1080+
```
1081+
1082+
**Parameters**
1083+
1084+
`listener`: A delegate object of [`DSZoomFactorChangeListener`](../auxiliary-api/protocol-zoomfactorchangelistener.md) to receive zoom-factor changed notification.

0 commit comments

Comments
 (0)