cordova-plugin-secure-preferences
v1.4.1
Published
A Cordova plugin as wrapper for Secure Preferences
Downloads
14
Maintainers
Readme
cordova-plugin-secure-preferences
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
});