Skip to content
No description, website, or topics provided.
Java TypeScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
AndroidStudio/CustomSettings Working opensettings both platforms Nov 14, 2017
demo
images Move images to root, update links Nov 14, 2017
src
.gitignore I kinda want to give up on life at this point... Nov 14, 2017
.travis.yml Initial Commit Oct 10, 2017
LICENSE Initial Commit Oct 10, 2017
README.md Its the stupid copy thats screwing with this Nov 14, 2017
tslint.json Initial Commit Oct 10, 2017

README.md

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

You can’t perform that action at this time.