@gphone/sdk
    Preparing search index...

    Interface ToastMessage

    A single toast, as shown by usePhoneNotification().toast.

    interface ToastMessage {
        actions?: ToastAction[];
        app?: string;
        avatar?: string;
        deepLink?: string;
        duration?: number;
        hasReplyInput?: boolean;
        id: string;
        message: string;
        notificationId?: number;
        onClick?: () => void;
        onExpire?: () => void | Promise<void>;
        onReply?: (replyText: string) => void | Promise<void>;
        persist?: boolean;
        replyPlaceholder?: string;
        sender?: string;
        title?: string;
        type: ToastType;
    }
    Index
    actions?: ToastAction[]
    app?: string
    avatar?: string
    deepLink?: string
    duration?: number
    hasReplyInput?: boolean
    id: string
    message: string
    notificationId?: number

    The drawer notification this toast created, if any — lets a swipe-to-archive act on the right row.

    onClick?: () => void
    onExpire?: () => void | Promise<void>

    Run when the toast times out on its own, as opposed to being dismissed or actioned.

    Exists because an expiring toast can leave state behind: an unanswered call toast vanished after 12s while callStore.status stayed 'incoming', so the phone sat open and focused showing a call with no way to end it.

    onReply?: (replyText: string) => void | Promise<void>
    persist?: boolean
    replyPlaceholder?: string
    sender?: string
    title?: string
    type: ToastType