Set User System Properties
Permissions
Manifest Declaration: Applications must declare 'android.permission.CLOUDPOS_SET_PROP' in their Android manifest file.
API Usage
setUsrProp
boolean setCustomAttribute(String key, String value);
Sets custom system properties.
Parameters
key
the property's key must adhere to specific guidelines: it should not exceed 16 characters in length and must begin with "persist.wp.usr.". For instance, "persist.wp.usr.setting1" is an example of a valid key.
value
the property's value should be a string that does not exceed 32 characters in length.
Returns
boolean
a boolean representation of the result.
true if success. false if failure.
Resource Download
Refer to the cloudpos apidemo - demo.
Last updated