Skip to content

Commit 88de88a

Browse files
Removed iOS take photo
1 parent 36ae5c3 commit 88de88a

File tree

5 files changed

+5
-44
lines changed

5 files changed

+5
-44
lines changed

programming/android/api-reference/camera-enhancer/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,5 @@ noTitleIndex: true
5151

5252
| Classes | Description |
5353
| ------- | ----------- |
54-
| [`dceFrameListener`](interface-dceframelistener.md) | The protocol to handle callback when previewed frame callback is returned. |
54+
| [`DCEFrameListener`](interface-dceframelistener.md) | The interface to handle callback when previewed frame callback is returned. |
55+
| [`DCECameraStateListener`](interface-dcecamerastatelistener.md) | The interface to handle callback when camera state changes. |

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

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ The main class of `DynamsoftCameraEnhancer`. It contains APIs that enable user t
6969
| [`getFrameFromBuffer`](#getframefrombuffer) | Get the latest frame from the buffer. The boolean value determines whether the fetched frame will be removed from the buffer. |
7070
| [`addListener`](#addlistener) | Add a listener to the camera enhancer instance. |
7171
| [`removeListener`](#removelistener) | Remove a previously added listener from the camera enhancer instance. |
72-
| [`takePhoto`](#takephoto) | Take a photo from the camera and save the image in the memory. |
7372
7473
## Enhanced Features Methods Summary
7574
@@ -916,46 +915,6 @@ dce.removeListener(self)
916915

917916
 
918917

919-
### takePhoto
920-
921-
Take a photo from the camera and save the image in the memory. The photo will be captured and users can receive the captured photo via [`photoOutputCallback`](../auxiliary-api/protocol-dcephotolistener.md#photooutputcallback).
922-
923-
```objc
924-
- (void)takePhoto:(nonnull id<DCEPhotoListener>)listener API_AVAILABLE(ios(11.0));
925-
```
926-
927-
**Parameters**
928-
929-
`listener`: An instance of [`DCEPhotoListener`](protocol-dcephotolistener.md).
930-
931-
**Code Snippet**
932-
933-
<div class="sample-code-prefix"></div>
934-
>- Objective-C
935-
>- Swift
936-
>
937-
>1.
938-
```objc
939-
@interface ViewController ()<DCEPhotoListener>
940-
- (void)configurationDCE(){
941-
[_dce takePhoto:self]
942-
}
943-
- (void)photoOutputCallback:(NSData *)jpegBytes{
944-
// Add your code to execute when photo is captured.
945-
}
946-
```
947-
2.
948-
```swift
949-
class ViewController: UIViewController, DCEPhotoListener {
950-
func configurationDCE(){
951-
dce.takePhoto()
952-
}
953-
func photoOutputCallback(_ jpegByte: Data){
954-
// Add your code to execute when photo is captured.
955-
}
956-
}
957-
```
958-
959918
## Enhanced Features Methods Details
960919

961920
### enableFeatures

programming/ios/api-reference/camera-enhancer/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,4 @@ noTitleIndex: true
5151
| Classes | Description |
5252
| ------- | ----------- |
5353
| [`dceFrameListener`](protocol-dceframelistener.md) | The protocol to handle callback when previewed frame callback is returned. |
54+
| [`dceCameraStateListener`](protocol-dcecamerastatelistener.md) | The protocol to handle callback when camera state changes. |

programming/ios/api-reference/camera-enhancer/protocol-dcecamerastatelistener.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ breadcrumbText: iOS Protocol DCECameraStateListener
1111

1212
# DCECameraStateListener
1313

14-
The interface to handle callback when camera state changes.
14+
The protocol to handle callback when camera state changes.
1515

1616
```objc
1717
@protocol DCECameraStateListener <NSObject>

programming/ios/api-reference/camera-enhancer/protocol-dcephotolistener.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ breadcrumbText: iOS Protocol DCEPhotoListener
1111

1212
# DCEPhotoListener
1313

14-
The interface that provide method for capturing photo from the camera.
14+
The protocol that provide method for capturing photo from the camera.
1515

1616
```objc
1717
@protocol DCEPhotoListener <NSObject>

0 commit comments

Comments
 (0)