ShareOptions
Platform touches for the share sheet: Android's chooser title, and iOS's subject and the activities it leaves out.
Utilização
Share a message or file
Este tipo é usado por 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);Declaração do tipo
export type ShareOptions = {
/** Android: the chooser's title. */
dialogTitle?: string;
/** iOS: the subject, as an email's. */
subject?: string;
/** iOS: activity types to leave out, as `com.apple.UIKit.activity.AirDrop`. */
excludedActivityTypes?: string[];
};Membros 3
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
dialogTitle | string | Não | Android: the chooser's title. |
subject | string | Não | iOS: the subject, as an email's. |
excludedActivityTypes | string[] | Não | iOS: activity types to leave out, as com.apple.UIKit.activity.AirDrop. |
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.