1.4.1 • Published 4 years ago

cordova-plugin-secure-preferences v1.4.1

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

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
    });
1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago