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 (33 loc) • 1.18 kB
TypeScript
import { NavigationState, ConfigurationService } from '../lib-core/configuration-service';
export declare class BackendConfigurationService extends ConfigurationService {
private getCfgStorageKey;
synchronize(): Promise<void>;
retreiveSettings(): Promise<void>;
saveSettings(): Promise<void>;
/**
* Returns the value of a setting by given name
* @param settingName - string , name of the setting
* @returns string or null
*
*/
getSetting(settingName: string): Promise<string>;
/**
* persists given value under given name
* the value can be retreived back by using method getSetting
* @param settingName - string , name of the setting
* @param value - string value to be persisted
* @returns string or null
*
*/
setSetting(settingName: string, value: string): Promise<void>;
getAllSettings(): Promise<Array<{
key: string;
value: string;
}>>;
getAllowedTasks(): Promise<Array<{
id: string;
allowed: boolean;
}>>;
getNavigationState(): Promise<NavigationState>;
setNavigationState(state: NavigationState): Promise<void>;
}