New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

nativescript-preferences

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-preferences

Allows your app to have native settings support

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
2
-71.43%
Maintainers
1
Weekly downloads
 
Created
Source

Twitter Follow

nativescript-preferences

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

iOS Prerequisites

  • Create iOS Settings.bundle files in App_Resources/iOS See Demo or Apple Developer docs

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

Keywords

NativeScript

FAQs

Package last updated on 13 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts