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

35 lines (34 loc) 1.48 kB
import { DmsApplicationService } from '../lib-core/application-context-service'; import { ConfigurationService } from '../lib-core/configuration-service'; import { ContextService } from '../lib-core/context-service'; import { UserInterfaceService } from '../lib-core/userinterface-service'; import { ToastOptions } from '../lib-core/toast'; /** * Provides user-interface related features like navigation, task launching and others */ export declare class MobileUserInterfaceService extends UserInterfaceService { supressUIAlertsOnError: boolean; constructor(dms: DmsApplicationService, ContextService: ContextService, ConfigurationService: ConfigurationService); /** * 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; confirm(message: string): Promise<boolean>; /** * starts a new task by given task id * The task must be defined in the /Task folder of the app */ launchTask(_taskId: string, _stepId?: string, preserveContext?: boolean): Promise<void>; }