UNPKG

dynamicsmobile

Version:

Allows development of off-line mobile and web business apps over the Dynamics Mobile platform. More info on https://www.dynamicsmobile.com

43 lines (42 loc) 1.7 kB
import { UserInterfaceService } from '../lib-core/userinterface-service'; import { DmsApplicationService } from '../lib-core/application-context-service'; import { ConfigurationService } from '../lib-core/configuration-service'; import { ContextService } from '../lib-core/context-service'; import { ToastOptions } from '../lib-core/toast'; /** * Provides user-interface related features like navigation, task launching and others */ export declare class BackendUserInterfaceService extends UserInterfaceService { supressUIAlertsOnError: boolean; protected domManager: any; constructor(dms: DmsApplicationService, ContextService: ContextService, ConfigurationService: ConfigurationService); launchTask(taskId: string, stepId?: string, preserveContext?: boolean): Promise<void>; /** * shows a default toast message, which stays on screen for 5 seconds and faded away automatically */ showToast(msg: string | ToastOptions): void; /** * opens a preloader on the screen, which blocks the UI - e.g. the user must wait until hideLoading is called */ showLoading(): Promise<void>; /** * hides the preloader message which was opened with showLoading */ hideLoading(): Promise<void>; /** * shows a standard (alert) message on the screen */ showMessage(message: string): void; showError(err: any): void; confirm(message: string): Promise<boolean>; getUserIdentity(): Promise<{ userName: string; name: string; email: string; defaultAppCode: string; currentAppArea: string; userType: 'M' | 'B' | 'D'; email_verified: boolean; roleId: string; }>; }