Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ repository: dynamsoft-docs/camera-enhancer-docs-mobile
docFullPath: https://www.dynamsoft.com/camera-enhancer/docs/mobile/
firstLevelUrl: /camera-enhancer/docs/mobile
docHomePage: /camera-enhancer/docs/core/introduction/
needSearchIndex: true
searchNeedFilter: true

productUrl: https://www.dynamsoft.com/camera-enhancer/overview/
productName: Dynamsoft Camera Enhancer
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
layout: default-layout
title: ZoomFactorChangeListener - Dynamsoft Camera Enhancer Android Edition API Reference
description: The interface ZoomFactorChangeListener of DynamsoftCameraEnhancer defines the methods for monitoring the change of the zoom-factor.
keywords: photo listener, Java, Kotlin
needGenerateH3Content: true
needAutoGenerateSidebar: true
noTitleIndex: true
---

# ZoomFactorChangeListener

The `ZoomFactorChangeListener` interface defines the methods for monitoring the change of the zoom-factor.

## Definition

*Assembly:* package com.dynamsoft.dce

```java
interface ZoomFactorChangeListener
```

## Methods

| Method | Description |
|------- |-------------|
| [`onZoomFactorChanged`](#onphotooutput) | The method for monitoring the change of the zoom-factor. |

### onZoomFactorChanged

The method for monitoring the change of the zoom-factor.

```java
void onZoomFactorChanged(float currentZoomFactor);
```

**Parameters**

`currentZoomFactor`: The current zoom-factor.
13 changes: 13 additions & 0 deletions programming/android/primary-api/camera-enhancer.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class CameraEnhancer extends ImageSourceAdapter
| [`getAllCameras`](#getallcameras) | Get the IDs of all available cameras. |
| [`selectCamera`](#selectcamera) | Select a camera with a camera ID. |
| [`getSelectedCamera`](#getselectedcamera) | Get the currently actived camera. |
| [`setZoomFactorChangeListener`](#setzoomfactorchangelistener) | Set a `ZoomFactorChangeListener` to receive callback when the zoom-factor changed. |

## Inherited Methods

Expand Down Expand Up @@ -696,3 +697,15 @@ String getSelectedCamera(){}
**Return Value**

The ID of the currently actived camera.

### setZoomFactorChangeListener

Set a [`ZoomFactorChangeListener`](../auxiliary-api/interface-zoomfactorchangelistener.md) to receive callback when the zoom-factor changed.

```java
void setZoomFactorChangeListener(ZoomFactorChangeListener listener);
```

**Parameters**

`listener`: A [`ZoomFactorChangeListener`](../auxiliary-api/interface-zoomfactorchangelistener.md) to receive callback when the zoom-factor changed.
2 changes: 1 addition & 1 deletion programming/ios/auxiliary-api/camera-enhancer-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSCameraEnhancerModule` class defines general functions of the camera enhan

## Definition

*Assembly:* DynamsoftCore.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down
2 changes: 1 addition & 1 deletion programming/ios/auxiliary-api/capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSCapabilities` class represents the capability properties of the hardware,

## Definition

*Assembly:* DynamsoftCore.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down
2 changes: 1 addition & 1 deletion programming/ios/auxiliary-api/dcedrawinglayer.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSDrawingLayer` class represents a drawing layer, which is used for managin

## Definition

*Assembly:* DynamsoftCameraEnhancer.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down
2 changes: 1 addition & 1 deletion programming/ios/auxiliary-api/dcefeedback.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSFeedback` class provides methods to trigger feedbacks from the hardware,

## Definition

*Assembly:* DynamsoftCore.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down
2 changes: 1 addition & 1 deletion programming/ios/auxiliary-api/dceimageeditorview.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSImageEditorView` class represents an image editor view, which allows user

## Definition

*Assembly:* DynamsoftCore.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down
2 changes: 1 addition & 1 deletion programming/ios/auxiliary-api/drawingitem-arc.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `ArcDrawingItem` class is a subclass of `DrawingItem`. It represents a drawi

## Definition

*Assembly:* DynamsoftCameraEnhancer.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down
2 changes: 1 addition & 1 deletion programming/ios/auxiliary-api/drawingitem-line.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSLineDrawingItem` class is a subclass of `DSDrawingItem` and represents a

## Definition

*Assembly:* DynamsoftCameraEnhancer.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down
2 changes: 1 addition & 1 deletion programming/ios/auxiliary-api/drawingitem-quad.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSQuadDrawingItem` class is a subclass of `DSDrawingItem`. It represents a

## Definition

*Assembly:* DynamsoftCameraEnhancer.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down
2 changes: 1 addition & 1 deletion programming/ios/auxiliary-api/drawingitem-rect.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSRectDrawingItem` class is a subclass of `DSDrawingItem` that represents a

## Definition

*Assembly:* DynamsoftCameraEnhancer.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down
2 changes: 1 addition & 1 deletion programming/ios/auxiliary-api/drawingitem-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSTextDrawingItem` class is a subclass of `DSDrawingItem` and represents a

## Definition

*Assembly:* DynamsoftCameraEnhancer.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down
2 changes: 1 addition & 1 deletion programming/ios/auxiliary-api/drawingitem.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSDrawingItem` class represents a base class for drawing items, which can b

## Definition

*Assembly:* DynamsoftCore.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down
2 changes: 1 addition & 1 deletion programming/ios/auxiliary-api/drawingstyle.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSDrawingStyle` class represents the style attributes of the drawing items,

## Definition

*Assembly:* DynamsoftCore.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down
2 changes: 1 addition & 1 deletion programming/ios/auxiliary-api/drawingstylemanager.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSDrawingStyleManager` class is the manager of DrawingStyles in Dynamsoft C

## Definition

*Assembly:* DynamsoftCameraEnhancer.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down
2 changes: 1 addition & 1 deletion programming/ios/auxiliary-api/note.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSNote` class represents a note, which contains a key and content.

## Definition

*Assembly:* DynamsoftCore.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down
2 changes: 1 addition & 1 deletion programming/ios/auxiliary-api/protocol-click-listener.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSDrawingItemClickListener` protocol includes methods for monitoring the cl

## Definition

*Assembly:* DynamsoftCore.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSCameraStateListener` protocol includes methods for monitoring the camera

## Definition

*Assembly:* DynamsoftCore.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down
2 changes: 1 addition & 1 deletion programming/ios/auxiliary-api/protocol-dceframelistener.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSVideoFrameListener` protocol includes methods for monitoring the camera s

## Definition

*Assembly:* DynamsoftCore.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down
2 changes: 1 addition & 1 deletion programming/ios/auxiliary-api/protocol-dcephotolistener.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSPhotoListener` protocol defines the methods for monitoring the photo outp

## Definition

*Assembly:* DynamsoftCore.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down
58 changes: 58 additions & 0 deletions programming/ios/auxiliary-api/protocol-zoomfactorchangelistener.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
layout: default-layout
title: DSZoomFactorChangeListener - DynamsoftCameraEnhancer iOS Edition API Reference
description: The protocol DSZoomFactorChangeListener of DynamsoftCameraEnhancer defines the methods for monitoring the change of the zoom-factor.
keywords: photo listener, objective-c, swift
needGenerateH3Content: true
needAutoGenerateSidebar: true
noTitleIndex: true
---

# DSZoomFactorChangeListener

The `DSZoomFactorChangeListener` protocol defines the methods for monitoring the change of the zoom-factor.

## Definition

*Assembly:* DynamsoftCameraEnhancer
.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
>- Swift
>
>1.
```objc
@protocol DSZoomFactorChangeListener <NSObject>
```
2.
```swift
protocol ZoomFactorChangeListener : NSObjectProtocol
```

## Methods

| Method | Description |
|------- |-------------|
| [`onZoomFactorChanged`](#onzoomfactorchanged) | The method for monitoring the change of the zoom-factor. |

### onZoomFactorChanged

The method for monitoring the change of the zoom-factor.

<div class="sample-code-prefix"></div>
>- Objective-C
>- Swift
>
>1.
```objc
- (void)onZoomFactorChanged:(CGFloat)currentZoomFactor;
```
2.
```swift
func onZoomFactorChanged(currentZoomFactor: CGFloat)
```

**Parameters**

`currentZoomFactor`: The current zoom-factor.
2 changes: 1 addition & 1 deletion programming/ios/auxiliary-api/tip-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSTipConfig` class defines the configurations of tip, including the top lef

## Definition

*Assembly:* DynamsoftCore.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

```objc
@interface DSTipConfig : NSObject
Expand Down
24 changes: 23 additions & 1 deletion programming/ios/primary-api/camera-enhancer.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `DSCameraEnhancer` class is the primary class of Dynamsoft Camera Enhancer t

## Definition

*Assembly:* DynamsoftCameraEnhancer.xcframework
*Assembly:* DynamsoftCaptureVisionBundle.xcframework

<div class="sample-code-prefix"></div>
>- Objective-C
Expand Down Expand Up @@ -72,6 +72,7 @@ class CameraEnhancer : ImageSourceAdapter
| [`getAllCameras`](#getallcameras) | Get the IDs of all available cameras. |
| [`selectCamera`](#selectcamera) | Select a camera with a camera ID. |
| [`getSelectedCamera`](#getselectedcamera) | Get the currently actived camera. |
| [`setZoomFactorChangeListener`](#setzoomfactorchangelistener) | Set a `DSZoomFactorChangeListener` to receive callback when the zoom-factor changed. |

## Attributes

Expand Down Expand Up @@ -1060,3 +1061,24 @@ func getSelectedCamera() -> String
**Return Value**

The ID of the currently actived camera.

### setZoomFactorChangeListener

Set a [`DSZoomFactorChangeListener`](../auxiliary-api/protocol-zoomfactorchangelistener.md) to receive callback when the zoom-factor changed.

<div class="sample-code-prefix"></div>
>- Objective-C
>- Swift
>
>1.
```objc
- (void)setZoomFactorChangeListener:(nullable id<DSZoomFactorChangeListener>)listener;
```
2.
```swift
func setZoomFactorChangeListener(_ listener: DSZoomFactorChangeListener?)
```

**Parameters**

`listener`: A delegate object of [`DSZoomFactorChangeListener`](../auxiliary-api/protocol-zoomfactorchangelistener.md) to receive zoom-factor changed notification.