Options
All
  • Public
  • Public/Protected
  • All
Menu

The API for operations related to the Trimble Connect web plug-ins.

Hierarchy

  • ExtensionAPI

Index

Properties

host?: { name: string }

Host metadata

Type declaration

  • name: string

    An UI friendly display name

Methods

  • broadcast(message: any): Promise<boolean>
  • Broadcasts a message to other plug-ins.

    Parameters

    • message: any

      The message to be broadcast

    Returns Promise<boolean>

    The awaitable task

  • Configures the Extension.

    Parameters

    Returns Promise<boolean>

    The awaitable task

  • getPermission(permission: "accesstoken"): Promise<string>
  • Configures the Trimble Connect project extension.

    deprecated

    Use ExtensionAPI.requestPermission instead.

    Parameters

    • permission: "accesstoken"

      type of the permssion. For now only accesstoken is available.

    Returns Promise<string>

    The awaitable task

  • getStatusMessage(): Promise<string>
  • Get the current status message of the Trimble Connect project extension.

    deprecated

    Will be removed in the future release.

    Returns Promise<string>

    The awaitable task

  • Go to a specific route/page from the Trimble Connect project extension.

    Parameters

    Returns Promise<boolean>

    The awaitable task

  • goToSettings(): Promise<boolean>
  • Go to the extension settings page from the Trimble Connect project extension.

    deprecated

    Use ExtensionAPI.goTo instead.

    Returns Promise<boolean>

    The awaitable task

  • requestFocus(): Promise<boolean>
  • Returns Promise<boolean>

  • requestPermission(permission: "accesstoken"): Promise<string>
  • Requests permission to get the accessToken from the application.

    Parameters

    • permission: "accesstoken"

    Returns Promise<string>

    The status for requested permission.

  • setStatusMessage(message: string): Promise<boolean>
  • Set the extension status.

    Parameters

    • message: string

      The extension status message of the Trimble Connect project extension.

    Returns Promise<boolean>

    The awaitable task