ShareContent
What the share sheet shares: a message, a URL, or both.
Usage
Share a message or file
This type is used by 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);Type declaration
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;
};Members 3
| Name | Type | Required | Description |
|---|---|---|---|
message | string | No | — |
url | string | No | iOS shares it as a URL; Android appends it to the message. |
title | string | No | Android: the subject, as an email's. |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.