Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
de-core-plugin / docs / api_reference.md
Size: Mime:

Title: Core Description: Dynamic Engine Core Plugin. Author: Vipera 2018

de-core-plugin API reference


Security

security.isDeviceRooted(success, error)

Check if the device is rooted (or jailbroken if iOS)

Kind: instance method of Security

Param Type Description
success function A success callback function called on success
error function The error callback function called on failure

security.isVPNSet(success, error)

Check if a VPN is configured and active on the device

Kind: instance method of Security

Param Type Description
success function A success callback function called on success
error function The error callback function called on failure

security.isProxySet(success, error)

Check if a Porxy is configured and active on the device

Kind: instance method of Security

Param Type Description
success function A success callback function called on success
error function The error callback function called on failure

Storage

Storage.get(key) ⇒ String

get localStorage value for key (as a string or number)

Kind: static method of Storage
Returns: String - item or null

Param Type Description
key String the item key

Storage.getObject(key) ⇒ Object

get localStorage value for key as an Object

Kind: static method of Storage
Returns: Object - item or null|undefined

Param Type Description
key String the item key

Storage.set(key, value)

save value in localStorage as a string

Kind: static method of Storage

Param Type Description
key String the item key
value String value to store

Storage.setObject(key, value)

save value in localStorage as an Object

Kind: static method of Storage

Param Type Description
key String the item key
value Object value to store

Storage.remove(key)

remove item from localStorage by key

Kind: static method of Storage

Param Type Description
key String the item key

Storage.clear()

Clear the localStorage

Kind: static method of Storage

Storage.getLength() ⇒ number

get the number of items inside the localStorage

Kind: static method of Storage
Returns: number - number of items

Storage.printAllData()

print all localStorage items (Debug purposes only)

Kind: static method of Storage