Unblu Agent Embedded JS API
    Preparing search index...

    Interface NotificationAction

    An action that can be executed on a notification (e.g. accepting or declining a call).

    interface NotificationAction {
        label?: string;
        role: NotificationActionRole;
        execute(target: NotificationTarget): Promise<void>;
    }
    Index

    Properties

    Methods

    Properties

    label?: string

    The label to display for the action. May be absent for the default action.

    The role of the action. Identifies whether the action is the default, primary or secondary action.

    Methods

    • Executes the action in the context of the given Unblu web component. The target determines where any follow-up UI, such as to open a conversation, is routed to.

      Parameters

      • target: NotificationTarget

        The Unblu web component in whose context the action should be executed.

      Returns Promise<void>

      A promise that resolves once the action has been processed.