Package com.gimbal.android
Class DeviceAttributesManager
java.lang.Object
com.gimbal.android.DeviceAttributesManager
Encrypts and stores key-value pairs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDeviceAttribute
(String key) static DeviceAttributesManager
void
Removes a specific key-value pair from device attributesvoid
setDeviceAttribute
(String key, String value) Adds new attributes to device attributesvoid
setDeviceAttributes
(Map<String, String> deviceAttributes) Deprecated.
-
Constructor Details
-
DeviceAttributesManager
public DeviceAttributesManager()
-
-
Method Details
-
getInstance
-
getDeviceAttributes
- Returns:
- Map of stored attributes if they exist, null if not.
-
setDeviceAttributes
@Deprecated public void setDeviceAttributes(Map<String, String> deviceAttributes) throws IllegalArgumentExceptionDeprecated.Replaces existing device attributes with a new list of attributes.- Parameters:
deviceAttributes
- - the new attributes to replace old attributes with.- Throws:
IllegalArgumentException
- - if one of the keys are reserved for internal use
-
setDeviceAttribute
Adds new attributes to device attributes- Parameters:
key
- - the key of the new valuevalue
- - the value to store- Throws:
IllegalArgumentException
- - if one of the keys are reserved for internal use
-
getDeviceAttribute
-
removeDeviceAttribute
Removes a specific key-value pair from device attributes- Parameters:
key
- the key of the key value pair that you wish to remove from device attributes
-