nativescript-preferences
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

Twitter Follow

nativescript-preferences

This plugin allows native preference saving\loading on iOS and Android

iOS Prerequisites

Android Prerequisites

Installation

Describe your plugin installation steps. Ideally it would be something like:

tns plugin add nativescript-preferences

Usage

    var prefs = new Preferences();
 
    //Get existing value
    prefs.getValue("name_preference");
 
    //Set value
    prefs.setValue("name_preference", "some new text");

API

Property Default Description
openSettings(): any; Opens the native settings panes
getValue(key: string): any; Gets the value for the preference
setValue(key: string, value: any): void; Sets the passed value to the preference

License

Apache License Version 2.0, January 2004

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    3
    • latest

Version History

Package Sidebar

Install

npm i nativescript-preferences

Weekly Downloads

3

Version

1.2.0

License

Apache-2.0

Unpacked Size

61.3 kB

Total Files

18

Last publish

Collaborators

  • sitefinitysteve