ShareResult
How the share sheet ended, and with which app or activity when the user shared.
Verwendung
Share a message or file
Dieser Typ wird verwendet von 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);Typdeklaration
export type ShareResult = SpecShareResult;Mitglieder 2
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
action | ShareAction | Ja | — |
activityType | string | Nein | The activity or app the user shared with: an activity type on iOS, a component on Android. |
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.