mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 16:52:53 +08:00
Merge pull request #220 from FdezRomero/master
SocialSharing: Add recommended `shareWithOptions` method
This commit is contained in:
commit
ff85c6ce5a
@ -33,6 +33,15 @@ export class SocialSharing {
|
|||||||
})
|
})
|
||||||
static share (message?: string, subject?: string, file?: string|Array<string>, url?: string): void {}
|
static share (message?: string, subject?: string, file?: string|Array<string>, url?: string): void {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Shares using the share sheet with additional options and returns a result object or an error message (requires plugin version 5.1.0+)
|
||||||
|
* @param options {object} The options object with the message, subject, files, url and chooserTitle properties.
|
||||||
|
*/
|
||||||
|
@Cordova({
|
||||||
|
platforms: ['iOS', 'Android']
|
||||||
|
})
|
||||||
|
static shareWithOptions (options: { message?: string, subject?: string, file?: string|Array<string>, url?: string, chooserTitle?: string }): Promise<any> {return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if you can share via a specific app.
|
* Checks if you can share via a specific app.
|
||||||
* @param appName App name or package name. Examples: instagram or com.apple.social.facebook
|
* @param appName App name or package name. Examples: instagram or com.apple.social.facebook
|
||||||
@ -136,4 +145,4 @@ export class SocialSharing {
|
|||||||
static shareViaEmail(message: string, subject: string, to: Array<string>, cc: Array<string>, bcc: Array<string>, files: string|Array<string>): Promise<any> {return; }
|
static shareViaEmail(message: string, subject: string, to: Array<string>, cc: Array<string>, bcc: Array<string>, files: string|Array<string>): Promise<any> {return; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user