commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADAdReward.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2015 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <Foundation/Foundation.h> |
|
9 |
|
|
10 |
/// A block to be executed when the user earns a reward. |
|
11 |
typedef void (^GADUserDidEarnRewardHandler)(void); |
|
12 |
|
|
13 |
/// Ad reward information. |
|
14 |
@interface GADAdReward : NSObject |
|
15 |
|
|
16 |
/// Type of the reward. |
|
17 |
@property(nonatomic, readonly, nonnull) NSString *type; |
|
18 |
|
|
19 |
/// Amount rewarded to the user. |
|
20 |
@property(nonatomic, readonly, nonnull) NSDecimalNumber *amount; |
|
21 |
|
|
22 |
/// Returns an initialized GADAdReward with the provided reward type and reward amount. |
|
23 |
- (nonnull instancetype)initWithRewardType:(nullable NSString *)rewardType |
|
24 |
rewardAmount:(nullable NSDecimalNumber *)rewardAmount |
|
25 |
NS_DESIGNATED_INITIALIZER; |
|
26 |
|
|
27 |
@end |