Utilização

Share a message or file

Este tipo é usado por share

tsx
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

ts
export type ShareResult = SpecShareResult;

Membros 2

NomeTipoObrigatórioDescrição
actionShareActionSim—
activityTypestringNãoThe activity or app the user shared with: an activity type on iOS, a component on Android.
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.