1.2.0 • Published 4 years ago

nativescript-preferences v1.2.0

Weekly downloads
7
License
Apache-2.0
Repository
github
Last release
4 years ago

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

PropertyDefaultDescription
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

1.2.0

4 years ago

1.1.2

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago