MPRewardedVideoReward

@interface MPRewardedVideoReward : NSObject

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

Public Properties

NSString/currencyType

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

  • Declaration:

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

NSNumber/amount

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

  • Declaration:

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

Public Methods

-/initWithCurrencyAmount:

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

  • Declaration:

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

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

-/initWithCurrencyType:amount:

  • 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 04, 2020

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.

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