mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
feat(social-sharing): Add missing method shareViaWhatsAppToPhone(#3513)
This commit is contained in:
parent
5a77eabf76
commit
f3ce3c4930
@ -282,4 +282,21 @@ export class SocialSharing extends IonicNativePlugin {
|
|||||||
saveToPhotoAlbum(fileOrFileArray: string | string[]): Promise<any> {
|
saveToPhotoAlbum(fileOrFileArray: string | string[]): Promise<any> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Shares directly to a WhatsApp Contact with phone number.
|
||||||
|
* @param phone {string} Pass phone number
|
||||||
|
* @param message {string} Message to send
|
||||||
|
* @param fileOrFileArray fileOrFileArray Single or multiple files
|
||||||
|
* @param url {string} Link to send
|
||||||
|
* @returns {Promise<any>}
|
||||||
|
*/
|
||||||
|
@Cordova({
|
||||||
|
successIndex: 5,
|
||||||
|
errorIndex: 6,
|
||||||
|
platforms: ['iOS', 'Android'],
|
||||||
|
})
|
||||||
|
shareViaWhatsAppToPhone(phone: string, message: string, fileOrFileArray: string | string[], url?: string): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user