An alias is a unique, user-specific identifier, set by the application owner (for example, the user's email or an internal system ID number) and is limited to 254 characters.
Aliases have the following uses:
Note the difference between aliases and tags:
|
The alias API enables you to perform actions on a device's alias.
All the methods are callable through "Appoxee.methodName", since they are all public static methods.
Each call to the methods must be under AsyncTask. For example :
new AsyncTask<Void, Void, Void>() { @Override protected Void doInBackground(Void... params) { // TODO Auto-generated method stub if (Appoxee.setDeviceAlias(str)) { Utils.Debug("setDeviceAlias Success"); } else { Utils.Debug("setDeviceAlias Failed"); } return null; } }.execute(); |
Since Appoxee.setup() is an Asynchronous Initialisation method, any set action can be performed only after the call Appoxee.isReady()==True. Only after Appoxee.Setup() finished, the flag is set to TRUE value. It is recommended to check the flag before calling setters.
|
Sets the device alias, replacing the current alias value.
public static boolean setDeviceAlias(String alias) |
String alias– the new string alias to be set. This alias overrides the existing alias.
true if the specified alias was set successfully; false otherwise.
Removes the device alias.
public static boolean removeDeviceAlias() |
true if the device alias was removed successfully; false otherwise.
Returns the device alias.
public static String getDeviceAlias() |
A string containing the device alias.
Removes the alias from the device's local cache.
public static boolean cleanAliasCache() |
true if the device alias was successfully removed from the local device cache; false otherwise.