mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
add success/error indices
This commit is contained in:
parent
da72500c4b
commit
448ec7a72b
@ -48,7 +48,10 @@ export class Serial {
|
|||||||
* @param options {SerialPermissionOptions} Options used to request serial permissions for an unknown device
|
* @param options {SerialPermissionOptions} Options used to request serial permissions for an unknown device
|
||||||
* @return {Promise<any>} Returns a promise that resolves when permissions are granted
|
* @return {Promise<any>} Returns a promise that resolves when permissions are granted
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova({
|
||||||
|
successIndex: 1,
|
||||||
|
errorIndex: 2
|
||||||
|
})
|
||||||
static requestPermission(options?: SerialPermissionOptions): Promise<any> { return; }
|
static requestPermission(options?: SerialPermissionOptions): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user