How to use the @bentley/imodeljs-frontend.NotifyMessageDetails function in @bentley/imodeljs-frontend

To help you get started, we’ve selected a few @bentley/imodeljs-frontend examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github imodeljs / imodeljs / core / frontend-devtools / src / tools / MeasureTileLoadTime.ts View on Github external
private onRender(): void {
    // ###TODO: May be intermediate frames during which children props have been asynchronously requested but no outstanding tile requests.
    if (!this._vp.view.areAllTileTreesLoaded || 0 < this._vp.numRequestedTiles)
      return;

    this._stopwatch.stop();
    IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, "Tiles loaded in " + this._stopwatch.elapsedSeconds.toFixed(4) + " seconds."));

    this.stop();
  }
}
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / tools / ToolSpecifications.tsx View on Github external
      execute: () => IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.None, "This message has no icon", this._detailedMessage)),
    });
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / tools / ToolWithSettings.ts View on Github external
private showInfoFromUi(updatedValue: ToolSettingsPropertySyncItem) {
    const msg = `Property '${updatedValue.propertyName}' updated to value ${updatedValue.value.value}`;
    IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Info, msg));
  }
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / appui / frontstages / ViewsFrontstage.tsx View on Github external
private _tool4 = () => {
    const details = new NotifyMessageDetails(this._tool4Priority, this._tool4Message, this._tool4Detailed, OutputMessageType.Pointer);
    const wrapper = document.getElementById("uifw-configurableui-wrapper");
    details.setPointerTypeDetails(wrapper!, { x: CursorInformation.cursorX, y: CursorInformation.cursorY }, this._toolRelativePosition);
    IModelApp.notifications.outputMessage(details);
    document.addEventListener("keyup", this._handleTool4Keypress);
    document.addEventListener("mousemove", this._handleTool4MouseMove);
  }
github imodeljs / imodeljs / core / frontend-devtools / src / tools / InspectElementTool.ts View on Github external
}).catch((err) => {
        IModelApp.notifications.outputMessage(new NotifyMessageDetails(OutputMessagePriority.Error, err.toString()));
      });
    else {