capacitor-whatsapp-stickers
v0.0.2
Published
Plugin for import stickers to WhatsApp
Readme
whatsapp-stickers
Plugin for import stickers to WhatsApp
Install
npm install whatsapp-stickers
npx cap syncAPI
Interfaz del plugin.
sendToWhatsApp(...)
sendToWhatsApp(options: WhatsappStickerPackPayload) => Promise<void>Envía el paquete de stickers a WhatsApp.
| Param | Type | Description |
| ------------- | --------------------------------------------------------------------------------- | ----------------------------------- |
| options | WhatsappStickerPackPayload | El payload del paquete de stickers. |
isWhatsAppInstalled()
isWhatsAppInstalled() => Promise<{ value: boolean; }>Verifica si WhatsApp (Consumidor o Business) está instalado. (Solo Android)
Returns: Promise<{ value: boolean; }>
isStickerPackInstalled(...)
isStickerPackInstalled(options: { identifier: string; }) => Promise<{ value: boolean; }>Verifica si un paquete de stickers ya está instalado en WhatsApp. (Solo Android)
| Param | Type | Description |
| ------------- | ------------------------------------ | --------------------------------------- |
| options | { identifier: string; } | Objeto con el 'identifier' del paquete. |
Returns: Promise<{ value: boolean; }>
Interfaces
WhatsappStickerPackPayload
El objeto de payload que se envía al código nativo.
| Prop | Type | Description |
| ----------------------------- | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| identifier | string | |
| name | string | |
| publisher | string | |
| trayImageFileName | string | |
| publisherWebsite | string | |
| privacyPolicyWebsite | string | |
| licenseAgreementWebsite | string | |
| stickers | { [key: string]: string[]; } | Un objeto donde la clave es la ruta del archivo del sticker y el valor es una lista de emojis. e.g., { "assets://01.webp": ["😆"] } |
