cordova-plugin-secure-preferences
TypeScript icon, indicating that this package has built-in type declarations

1.4.1 • Public • Published

cordova-plugin-secure-preferences npm version

This Plugin is a Wrapper for Secure Preferences.

Supports

This Plugin only works for Android

Requirements

  • cordova >= 7.1.0
  • cordova-android >= 6.3.0

Installation

Variables

  • FILE_NAME (The SharedPref File Name)
  • Password (The Password of the File)

cordova plugin add cordova-plugin-secure-preferences --variable FILE_NAME=filename --variable PASSWORD=password

Usage

GetString

SecurePreferences.getString('key',
    function(succes) {
        // success
    }, funtion(error) {
        // error
    });

PutString

SecurePreferences.putString('key', 'value',
    function(succes) {
        // success
    }, funtion(error) {
        // error
    });

Remove

SecurePreferences.remove('key',
    function() {
        // success
    }, funtion(error) {
        // error
    });

Package Sidebar

Install

npm i cordova-plugin-secure-preferences

Weekly Downloads

1

Version

1.4.1

License

Apache 2.0

Unpacked Size

13.3 kB

Total Files

14

Last publish

Collaborators

  • hanskrywaa