UNPKG

nativescript-akylas-preferences

Version:

Common API to allow users to use native (familiar) app settings screens instead of having to craft custom UIs

15 lines (14 loc) 494 B
import { Common } from './preferences.common'; export declare class Preferences extends Common { userDefaults: NSUserDefaults; private _observer; constructor(); setValue(key: string, value: any): void; getValue(key: string): any; onListenerAdded(eventName: string, count: number): void; onListenerRemoved(eventName: string, count: number): void; openSettings(): void; clear(): void; registered: boolean; private registerDefaultsFromSettingsBundle; }