UNPKG

@nativescript-community/preferences

Version:

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

19 lines (18 loc) 645 B
import { Common } from './index.common'; export declare class Preferences extends Common { sharedPreferences: android.content.SharedPreferences; listener: android.content.SharedPreferences.OnSharedPreferenceChangeListener; destroy(): void; setValue(key: string, value: any): void; getValue(key: string, defaultValue?: any): any; clear(): void; onListenerAdded(eventName: string, count: number): void; openSettings(): Promise<void>; private getPreferences; /** * method used to clear what's needed in cases like terminating in a worker * * @memberof Preferences */ close(): void; }