...
Each Method is called through "Appoxee.methodName", since they are all public static methods.
Each call to the methods must be under AsyncTask. For example :
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
new AsyncTask<Void, Void, Void>() {
@Override
protected Void doInBackground(Void... params) {
String result = getDeviceOsName();
//Do what is needed with the returned result...
return null;
}
}.execute(); |
Device Info API Methods
Table of Contents | ||||
---|---|---|---|---|
|
...
getDeviceCountry
Returns the device country location, in any of the following formats:
...
getDeviceDensity
Returns the device screen density.
Syntax
public static String getDeviceDensity() |
...
getInAppPayment
Returns the total sum of all payments made through the deviceapplication.
Syntax
public static Double getInAppPayment() |
...
A decimal number indicating the total sum of all payments made through the deviceapplication.
getNumProductPurchased
Returns the number of products purchased through your app on this device.
...
An integer indicating the number of products purchased.
increaseInAppPayment
Increases the app payment Updates the total sum of all payments made through your app, by adding the given float value to the current in-app payment.
Call this method for each approved purchase.
Syntax
public static boolean increaseInAppPayment(float value) |
...
float value - the value by which the total in-app payment sum is to be increased.
Returns
...
increaseNumProductPurchased
Increases Updates the total number of products purchased through your app on this device, by by adding the given integer value to the current number of products purchased.
Call this method for each approved purchase.
Syntax
public static boolean increaseNumProductPurchased(int value) |
Parameters
int value - the number by which the number to be added to the thetotal number of products purchased is to be increased.
Returns
true if the number of products purchased was increased updated successfully; false otherwise.
...