UNPKG

nativescript-social-share-v2

Version:
38 lines (32 loc) 1.18 kB
import { ImageSource } from '@nativescript/core'; /** * Share an image. * @param {ImageSource} image - The image to share. * @param {string} [subject] - The subject of the share *** ANDROID ONLY *** */ export function shareImage(image?: ImageSource, subject?: string): Promise<object>; /** * Share text. * @param {string} text - Text to share. * @param {string} [subject] - The subject of the share *** ANDROID ONLY *** */ export function shareText(text: string, subject?: string): Promise<object>; /** * Share URL. * @param {string} url - URL to share. * @param {string} text - Text to share with URL. * @param {string} [subject] - The subject of the share *** ANDROID ONLY *** */ export function shareUrl(url: string, text: string, subject?: string): Promise<object>; /** * Share via Twitter * @param {string} text - Text to share with URL. * @param {string} url - URL to share. */ export function shareViaTwitter(text?: string, url?: string): Promise<void>; /** * Share via Facebook * @param {string} text - Text to share with URL. * @param {string} url - URL to share. */ export function shareViaFacebook(text?: string, url?: string): Promise<void>;