UNPKG

@nativescript-community/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) 495 B
import { Common } from './index.common'; export declare class Preferences extends Common { userDefaults: NSUserDefaults; private mNativeObservers; 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; }