ShareContent
What the share sheet shares: a message, a URL, or both.
Utilisation
Share a message or file
Ce type est utilisé par share
import { share } from 'kuito';
const result = await share(
{ message: 'Severance', url: 'https://www.tvmaze.com/shows/44933', title: 'A show' },
{ dialogTitle: 'Share a show', subject: 'Watch this' },
);
if (result.action === 'shared') console.log('shared with', result.activityType);Déclaration du type
export type ShareContent = {
message?: string;
/** iOS shares it as a URL; Android appends it to the message. */
url?: string;
/** Android: the subject, as an email's. */
title?: string;
};Membres 3
| Nom | Type | Requis | Description |
|---|---|---|---|
message | string | Non | — |
url | string | Non | iOS shares it as a URL; Android appends it to the message. |
title | string | Non | Android: the subject, as an email's. |
Généré depuis les déclarations TypeScript publiques : signatures, props et valeurs par défaut viennent de la source vérifiée, les descriptions de sa JSDoc. Aucune valeur par défaut n'est inventée.