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 | |
|---|---|---|---|
|
|
b7591f6c72 |
@@ -9,6 +9,10 @@ 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';
|
||||
@@ -59,4 +63,17 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -228,6 +228,7 @@ export class UserPreferencesMethods extends NestedObject {
|
||||
})
|
||||
@Injectable()
|
||||
export class WonderPush extends AwesomeCordovaNativePlugin {
|
||||
|
||||
/**
|
||||
* Initializes the WonderPush SDK
|
||||
* @param clientId
|
||||
@@ -241,33 +242,6 @@ export class WonderPush extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes the SDK and remembers credentials for subsequent auto-initialization.
|
||||
*
|
||||
* You can disable AUTO_INIT or instead use `"USE_REMEMBERED"` as a value for the Client ID and Client Secret.
|
||||
* This is aimed at enabling complex integration scenarios where the Client ID and Client Secret are resolved dynamically and reused ever after.
|
||||
* If you provide a null value, the credential will be forgotten and the SDK won't be initialized.
|
||||
*
|
||||
* @param {?string} clientId
|
||||
* @param {?string} clientSecret
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
initializeAndRememberCredentials(clientId: string | null, clientSecret: string | null): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the remembered Client ID given to `initializeAndRememberCredentials()`.
|
||||
* There is no similar getter for the Client Secret.
|
||||
*
|
||||
* @returns {Promise<string | null>} The remembered Client ID if both a non-empty Client ID and Client Secret were last remembered, `null` otherwise.
|
||||
*/
|
||||
@Cordova()
|
||||
getRememberedClientId(): Promise<string | null> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether the SDK has been initialized.
|
||||
*
|
||||
@@ -579,11 +553,10 @@ export class WonderPush extends AwesomeCordovaNativePlugin {
|
||||
* Because in iOS you only have *one* chance for prompting the user, you should find a good timing for that.
|
||||
* For a start, you can systematically call it when the application starts, so that the user will be prompted directly at the first launch.
|
||||
*
|
||||
* @param {boolean} [fallbackToSettings] - When true, WonderPush will show a dialog prompting the user to go to settings and activate push notifications
|
||||
* @returns {Promise<any>} Returns a promise that resolves upon successful subscription
|
||||
*/
|
||||
@Cordova()
|
||||
subscribeToNotifications(fallbackToSettings?: boolean): Promise<any> {
|
||||
subscribeToNotifications(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user