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
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ noTitleIndex: true

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class CameraEnhancerException extends Exception
Expand Down
4 changes: 3 additions & 1 deletion programming/android/auxiliary-api/camera-enhancer-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `CameraEnhancerModule` class defines general functions of the camera enhance

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class CameraEnhancerModule
Expand Down
4 changes: 3 additions & 1 deletion programming/android/auxiliary-api/capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `Capabilities` class represents the capability properties of the hardware, i

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class Capabilities
Expand Down
4 changes: 3 additions & 1 deletion programming/android/auxiliary-api/dcecameraview.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `CameraView` class is used to display the camera preview and provides UI con

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class CameraView
Expand Down
4 changes: 3 additions & 1 deletion programming/android/auxiliary-api/dcedrawinglayer.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `DrawingLayer` class represents a drawing layer, which is used for managing

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class DrawingLayer
Expand Down
4 changes: 3 additions & 1 deletion programming/android/auxiliary-api/dcefeedback.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `Feedback` class provides methods to trigger feedbacks from the hardware, su

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class Feedback
Expand Down
4 changes: 3 additions & 1 deletion programming/android/auxiliary-api/dceimageeditorview.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `ImageEditorView` class represents an image editor view, which allows users

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class ImageEditorView : UIView
Expand Down
4 changes: 3 additions & 1 deletion programming/android/auxiliary-api/drawingitem-arc.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `ArcDrawingItem` class is a subclass of `DrawingItem`. It represents a drawi

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class ArcDrawingItem extends DrawingItem
Expand Down
4 changes: 3 additions & 1 deletion programming/android/auxiliary-api/drawingitem-line.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `LineDrawingItem` class is a subclass of `DrawingItem` and represents a line

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class LineDrawingItem extends DrawingItem
Expand Down
4 changes: 3 additions & 1 deletion programming/android/auxiliary-api/drawingitem-quad.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `QuadDrawingItem` class is a subclass of `DrawingItem`. It represents a draw

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class QuadDrawingItem extends DrawingItem
Expand Down
4 changes: 3 additions & 1 deletion programming/android/auxiliary-api/drawingitem-rect.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `RectDrawingItem` class is a subclass of `DrawingItem` that represents a rec

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class RectDrawingItem extends DrawingItem
Expand Down
4 changes: 3 additions & 1 deletion programming/android/auxiliary-api/drawingitem-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `TextDrawingItem` class is a subclass of `DrawingItem` and represents a text

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class TextDrawingItem extends DrawingItem
Expand Down
4 changes: 3 additions & 1 deletion programming/android/auxiliary-api/drawingitem.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `DrawingItem` class represents a base class for drawing items, which can be

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class DrawingItem
Expand Down
4 changes: 3 additions & 1 deletion programming/android/auxiliary-api/drawingstyle.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `DrawingStyle` class represents the style attributes of the drawing items, i

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class DrawingStyle
Expand Down
4 changes: 3 additions & 1 deletion programming/android/auxiliary-api/drawingstylemanager.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `DrawingStyleManager` class is the manager of DrawingStyles in Dynamsoft Cam

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class DrawingStyleManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `DrawingItemClickListener` interface includes methods for monitoring the cli

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
interface DrawingItemClickListener
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `CameraStateListener` interface includes methods for monitoring the camera s

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
interface CameraStateListener
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `VideoFrameListener` interface includes methods for monitoring the camera st

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
interface VideoFrameListener
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `PhotoListener` interface defines the methods for monitoring the photo outpu

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
interface PhotoListener
Expand Down
45 changes: 45 additions & 0 deletions programming/android/auxiliary-api/interface-focus-listener.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
layout: default-layout
title: FocusListener - Dynamsoft Camera Enhancer Android Edition API Reference
description: The interface that includes methods for monitoring the focus status.
keywords: Focus listener, Java, Kotlin
needGenerateH3Content: true
needAutoGenerateSidebar: true
noTitleIndex: true
---

# FocusListener

The `FocusListener` interface includes methods for monitoring the focus status and receiving focus completion events.

## Definition

*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
interface FocusListener
```

## Methods

### onFocusFinished

The method for receiving notifications when a focus operation is completed.

```java
void onFocusFinished(PointF focusPoint);
```

**Parameters**

`focusPoint`: A `PointF` object that represents the coordinates of the focus point.

**Remarks**

This callback is triggered under the following conditions:

- Always triggered when calling `setFocus(Point, FocusModeLocked)`
- Might be triggered when performing tap-to-focus
- Never triggered when calling `setFocus(Point, FocusModeContinuousAuto)`
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `ZoomFactorChangeListener` interface defines the methods for monitoring the

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
interface ZoomFactorChangeListener
Expand Down
4 changes: 3 additions & 1 deletion programming/android/auxiliary-api/note.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `Note` class represents a note, which contains a key and content.

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class Note
Expand Down
6 changes: 6 additions & 0 deletions programming/android/auxiliary-api/permission-util.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ permalink: /programming/android/auxiliary-api/permission-util.html

The `PermissionUtil` class defines the methods for requesting the camera permission.

## Definition

*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
final class PermissionUtil
```
Expand Down
4 changes: 3 additions & 1 deletion programming/android/auxiliary-api/tip-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `TipConfig` class defines the configurations of tip, including the top left

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class TipConfig
Expand Down
2 changes: 2 additions & 0 deletions programming/android/enum/resolution.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@ public @interface EnumResolution {
int RESOLUTION_2K = 4;
// 4K
int RESOLUTION_4K = 5;
// Set the resolution to max so that you can capture 3024*4032 size photo.
int RESOLUTION_MAX = 6;
}
```
19 changes: 17 additions & 2 deletions programming/android/primary-api/camera-enhancer.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ The `CameraEnhancer` class is the primary class of Dynamsoft Camera Enhancer tha

## Definition

*Assembly:* package com.dynamsoft.dce
*Assembly:* DynamsoftCaptureVisionBundle.aar

*Namespace:* com.dynamsoft.dce

```java
class CameraEnhancer extends ImageSourceAdapter
Expand Down Expand Up @@ -61,6 +63,7 @@ class CameraEnhancer extends ImageSourceAdapter
| [`turnOffTorch`](#turnofftorch) | Turn off the torch. |
| [`setFocus`](#setfocus) | Set the focus point of interest and trigger an one-off auto-focus. |
| [`setFocus(subsequentFocusMode)`](#setfocussubsequentfocusmode) | 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. |
| [`setFocusListener`](#setfocuslistener) | Set a [`FocusListener`](../auxiliary-api/interface-focus-listener.md) to receive callback when the focus operation is completed. |
| [`convertRectToViewCoordinates`](#convertrecttoviewcoordinates) | Convert the coordinates of a [`DSRect`]({{ site.dcv_android_api }}core/basic-structures/rect.html) under video coordinate system to a CGRect under camera view coordinate system. |
| [`convertPointToViewCoordinates`](#convertpointtoviewcoordinates) | Convert the coordinates of a CGPoint under video coordinate system to another CGPoint under camera view coordinate system. |
| [`setImageCaptureDistanceMode`](#setimagecapturedistancemode) | Set/get the capture distance property of the video frame. The capture distance property will be recorded by VideoFrameTag. |
Expand All @@ -71,7 +74,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. |
| [`setZoomFactorChangeListener`](#setzoomfactorchangelistener) | Set a [`ZoomFactorChangeListener`](../auxiliary-api/interface-zoomfactorchangelistener.md) to receive callback when the zoom-factor changed. |

## Inherited Methods

Expand Down Expand Up @@ -663,6 +666,18 @@ void setZoomFactorChangeListener(ZoomFactorChangeListener listener);

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

### setFocusListener

Set a [`FocusListener`](../auxiliary-api/interface-focus-listener.md) to receive callback when the focus operation is completed.

```java
void setFocusListener(FocusListener listener);
```

**Parameters**

`listener`: A [`FocusListener`](../auxiliary-api/interface-focus-listener.md) to receive focus completion notifications.

### getAllCameras

> This method is deprecated.
Expand Down
Loading