mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-08-04 00:00:08 +08:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b2f3be0163 |
@@ -9,10 +9,6 @@ export interface AnylineConfig {
|
||||
* @name Anyline
|
||||
* @description
|
||||
* Anyline provides an easy-to-use SDK for applications to enable Optical Character Recognition (OCR) on mobile devices.
|
||||
*
|
||||
* @deprecated since v56.0.0. This legacy `AnylineSDK` API remains functional but upstream recommends migrating to the
|
||||
* new `AnylineInfinityPlugin` API (exposed natively as `window.AnylineInfinity`), which is not covered by this wrapper.
|
||||
* See https://documentation.anyline.com/cordova-plugin-component/latest/infinity-plugins/upgrade-guide.html
|
||||
* @usage
|
||||
* ```typescript
|
||||
* import { Anyline } from '@awesome-cordova-plugins/anyline/ngx';
|
||||
@@ -63,17 +59,4 @@ export class Anyline extends AwesomeCordovaNativePlugin {
|
||||
scan(config: AnylineConfig): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets platform-specific scanning options, such as selecting the camera API on Android
|
||||
* (CameraX vs Camera1) or managing camera permission handling. Must be called before `scan`.
|
||||
*
|
||||
* @param scanStartPlatformOptionsString {string} A JSON-stringified object of platform-specific attributes,
|
||||
* e.g. `JSON.stringify({ androidScanViewAttributes: { useCameraX: false } })`
|
||||
* @returns {Promise<any>} Returns a promise that resolves when the options have been set
|
||||
*/
|
||||
@Cordova()
|
||||
setDefaultScanStartPlatformOptions(scanStartPlatformOptionsString: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,16 @@ export interface MediaFileData {
|
||||
}
|
||||
|
||||
export interface CaptureError {
|
||||
code: string;
|
||||
/**
|
||||
* One of the `CaptureError` codes:
|
||||
* - `0` - CAPTURE_INTERNAL_ERR: Camera or microphone failed to capture image or sound.
|
||||
* - `1` - CAPTURE_APPLICATION_BUSY: Camera application or audio capture application is currently serving other capture request.
|
||||
* - `2` - CAPTURE_INVALID_ARGUMENT: Invalid use of the API (e.g. limit parameter has value less than one).
|
||||
* - `3` - CAPTURE_NO_MEDIA_FILES: User exited camera application or audio capture application before capturing anything.
|
||||
* - `4` - CAPTURE_PERMISSION_DENIED: User denied permissions required to perform the capture request.
|
||||
* - `20` - CAPTURE_NOT_SUPPORTED: The requested capture operation is not supported.
|
||||
*/
|
||||
code: number;
|
||||
}
|
||||
|
||||
export interface CaptureAudioOptions {
|
||||
|
||||
Reference in New Issue
Block a user