MAReward.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // MAReward.h
  3. // AppLovinSDK
  4. //
  5. // Created by Thomas So on 8/10/18.
  6. // Copyright © 2020 AppLovin Corporation. All rights reserved.
  7. //
  8. NS_ASSUME_NONNULL_BEGIN
  9. /**
  10. * This object represents a reward given to the user.
  11. */
  12. @interface MAReward : NSObject
  13. /**
  14. * The label that is used when a label is not given by the third-party network.
  15. */
  16. @property (class, nonatomic, copy, readonly) NSString *defaultLabel;
  17. /**
  18. * The amount that is used when no amount is given by the third-party network.
  19. */
  20. @property (class, nonatomic, assign, readonly) NSInteger defaultAmount;
  21. /**
  22. * The reward label or @code +[MAReward defaultLabel] @endcode if none specified.
  23. */
  24. @property (nonatomic, copy, readonly) NSString *label;
  25. /**
  26. * The rewarded amount or @code +[MAReward defaultAmount] @endcode if none specified.
  27. */
  28. @property (nonatomic, assign, readonly) NSInteger amount;
  29. /**
  30. * Create a reward object.
  31. */
  32. + (instancetype)reward;
  33. /**
  34. * Create a reward object, with a label and an amount.
  35. *
  36. * @param amount The rewarded amount.
  37. * @param label The reward label.
  38. */
  39. + (instancetype)rewardWithAmount:(NSInteger)amount label:(NSString *)label;
  40. - (instancetype)init NS_UNAVAILABLE;
  41. + (instancetype)new NS_UNAVAILABLE;
  42. @end
  43. NS_ASSUME_NONNULL_END