MPReward /5.16.0

@interface MPReward : NSObject

MPReward contains all the information needed to reward the user for watching a rewarded ad. The class provides a currency amount and currency type.

Public Properties

extern NSString const /kMPRewardCurrencyTypeUnspecified /+5.16.0

  • Description: A constant that indicates that no currency type was specified with the reward.

  • Declaration:

    extern NSString *const kMPRewardCurrencyTypeUnspecified
    

extern const NSInteger /kMPRewardCurrencyAmountUnspecified /+5.16.0

  • Description: A constant that indicates that no currency amount was specified with the reward.

  • Declaration:

    extern const NSInteger kMPRewardCurrencyAmountUnspecified
    

NSString/currencyType /+5.16.0

  • Description: The type of currency that should be rewarded to the user. An undefined currency type should be specified as kMPRewardCurrencyTypeUnspecified.

  • Declaration:

    @property (readonly, nonatomic) NSString *currencyType;
    
  • Parameters: None.

NSNumber/amount /+5.16.0

  • Description: The amount of currency to reward to the user. An undefined currency amount should be specified as kMPRewardCurrencyAmountUnspecified wrapped as an NSNumber.

  • Declaration:

    @property (readonly, nonatomic) NSNumber *amount;
    
  • Parameters: None.

Public Methods

-/initWithCurrencyAmount: /+5.16.0

  • Description: Initializes the object with an undefined currency type kMPRewardCurrencyTypeUnspecified and the amount passed in.

  • Declaration:

    - (instancetype)initWithCurrencyAmount:(NSNumber *)amount;
    
  • Parameters:

    • amount: The amount of currency the user is receiving.

-/initWithCurrencyType:amount: /+5.16.0

  • Description: Initializes the object’s properties with the currencyType and amount.

  • Declaration:

    - (instancetype)initWithCurrencyType:(NSString *)currencyType
                                amount:(NSNumber *)amount;
    
  • Parameters:

    • currencyType: The type of currency the user is receiving.
    • amount: The amount of currency the user is receiving.

Last updated March 16, 2021

TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.

© 2021 MoPub (a division of Twitter, Inc.)