mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
Update methods and pluginRef
This commit is contained in:
parent
804c9ee463
commit
213330379d
@ -46,18 +46,27 @@ export interface email {
|
|||||||
*/
|
*/
|
||||||
@Plugin({
|
@Plugin({
|
||||||
plugin: 'cordova-plugin-email-composer',
|
plugin: 'cordova-plugin-email-composer',
|
||||||
pluginRef: 'emailComposer',
|
pluginRef: 'cordova.plugins.email',
|
||||||
repo: 'https://github.com/katzer/cordova-plugin-email-composer.git',
|
repo: 'https://github.com/katzer/cordova-plugin-email-composer.git',
|
||||||
platforms: ['Android', 'iOS', 'Windows Phone 8']
|
platforms: ['Android', 'iOS', 'Windows Phone 8']
|
||||||
})
|
})
|
||||||
export class EmailComposer {
|
export class EmailComposer {
|
||||||
|
|
||||||
|
@Cordova()
|
||||||
|
static isAvailable() : Promise<boolean> {return}
|
||||||
|
|
||||||
|
@Cordova()
|
||||||
|
static addAlias(app: String, schema: any) : Promise<any> {return}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens Email Composer with email contents
|
* Opens Email Composer with email contents
|
||||||
* @param email {email} Email
|
* @param email {email} Email
|
||||||
* @returns {Promise<any>} Resolves promise when the EmailComposer has been opened
|
* @returns {Promise<any>} Resolves promise when the EmailComposer has been opened
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova({
|
||||||
static open(email: email): Promise<any> { return }
|
successIndex: 1,
|
||||||
|
errorIndex: 3
|
||||||
|
})
|
||||||
|
static open(email: email, scope : any) : Promise<any> {return}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user