mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
docs(all): standardizes and adds return types, also some param fixes
This commit is contained in:
@@ -35,21 +35,43 @@ export class WebIntent {
|
||||
return window.plugins.webintent.EXTRA_TEXT;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param options {Object} { action: any, url: string, type?: string }
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
static startActivity(options: { action: any, url: string, type?: string }): Promise<any> { return; }
|
||||
|
||||
/**
|
||||
* @param extra {any}
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
static hasExtra(extra: any): Promise<any> { return; }
|
||||
|
||||
/**
|
||||
* @param extra {any}
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
static getExtra(extra: any): Promise<any> { return; }
|
||||
|
||||
/**
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
static getUri(): Promise<string> { return; };
|
||||
|
||||
/**
|
||||
* @returns {Promise<string>}
|
||||
*/
|
||||
@Cordova()
|
||||
static onNewIntent(): Promise<string> { return; };
|
||||
|
||||
/**
|
||||
* @param options {Object} { action: string, extras?: { option: boolean } }
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
static sendBroadcast(options: { action: string, extras?: { option: boolean } }): Promise<any> { return; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user