collectDeviceDNA for Android DDNA API
The API collectDeviceDNA collects the device DNA (device signature) based on the set of the device attributes. This method triggers device attribute collection and sends response when it is done with the generation of the device signature.
aa821test
Description
The API collectDeviceDNA collects the device DNA (device signature) based on the set of the device attributes. This method triggers device attribute collection and sends response when it is done with the generation of the device signature.
API Signature
public abstract void collectDeviceDNA(RMDeviceInventoryResponseCallBack listener)
Parameters
Id
Specifies the RMDeviceInventoryResponseCallBack class implemented by the customer using DDNA SDK. DDNA SDK makes a call to an API onResponse() once SDK is finished with generating device signature. With this call back method, SDK returns generated device DNA string in the calling object in the application.
ResponseCallBack
RM DeviceInventoryResponseCallBack
RMDeviceInventoryResonseCallBack is a interface class which provides callback methods to post device details in String format to the caller. It is implemented by the activity or a class in which the device details are required.
public interface RMDeviceInventoryResponseCallBack
This is callback method defined in DDNA SDK which is called when SDK collects device DNA attribute values.
API Signature
public void onResponse(String response,RMError exception);
storeRMDeviceId
Customer stores deviceID by implementing this API.
API Signature
public abstract void storeRMDeviceId(String rmDeviceID);
deleteRMDeviceId
Customer implements this method to delete deviceID stored at their end.
API Signature
public abstract void deleteRMDeviceId();
getRMDeviceId
Customer implements this API to get a stored deviceID
Return Value
Device identifier
API Signature
public abstract String getRMDeviceId()