Package com.adcolony.sdk
Class AdColonyReward
- java.lang.Object
-
- com.adcolony.sdk.AdColonyReward
-
public class AdColonyReward extends java.lang.ObjectPassed viaAdColonyRewardListener.onReward(AdColonyReward). Query this object for information about the reward event such as amount, name, and affiliated zone id.- See Also:
AdColonyRewardListener
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetRewardAmount()Used to retrieve the integer amount of the reward.java.lang.StringgetRewardName()Used to retrieve the name of the reward currency.java.lang.StringgetZoneID()Used to retrieve the zone id that was used to eventually trigger this reward event.booleansuccess()Used to retrieve information about whether or not the reward was successful.
-
-
-
Method Detail
-
getRewardAmount
public int getRewardAmount()
Used to retrieve the integer amount of the reward.- Returns:
- the integer amount of the reward. Will return 0 if
success()returns false.
-
getRewardName
public java.lang.String getRewardName()
Used to retrieve the name of the reward currency.- Returns:
- the String name of the reward currency. Will return the correct name even if success() returns false.
-
getZoneID
public java.lang.String getZoneID()
Used to retrieve the zone id that was used to eventually trigger this reward event.- Returns:
- the zone id affiliated with this reward event.
-
success
public boolean success()
Used to retrieve information about whether or not the reward was successful.- Returns:
- whether or not the user should be rewarded.
-
-