Universal Robots TypeScript API - v10.12.0
    Preparing search index...

    Class SnackbarService

    Service that handles showing snack notifications.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    communicationChannel: CommunicationChannel

    Methods

    • returns a reply promise to the specified message

      Type Parameters

      • T

      Parameters

      • type: string

        The type of message being sent

      • Optionaldata: any

        The message data

      Returns Promise<T>

    • returns an observable that will emit any messages replied to the specified message

      Type Parameters

      • T

      Parameters

      • type: string

        The type of message being sent

      • Optionaldata: any

        The message data

      Returns Observable<T>

    • returns a reply promise for the requested message

      Type Parameters

      • T

      Parameters

      • type: string

        The type of message being sent

      • Optionaldata: any

        The message data

      Returns Promise<T>

    • returns an observable that will emit any messages replied to the requested message

      Type Parameters

      • T

      Parameters

      • type: string

        The type of message being sent

      • Optionaldata: any

        The message data

      Returns Observable<T>

    • Open a snack notification.

      Parameters

      • message: string

        Snackbar message

      • Optionaltype: string

        Optional. Type of notification (success, error, warning, info(default)).

      • Optionaltitle: string

        Optional. Snackbar title

      Returns Promise<any>