Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Clarified the usage of "increaseInAppPayment" and "increaseNumProductPurchased".

...

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.

...