Skip to content

Commit

Permalink
Typo and pointer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
David Kim authored and David Kim committed Dec 1, 2016
1 parent 04c7978 commit 10c3ec9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sample/Vungle Sample App/FirstViewController.m
Expand Up @@ -58,7 +58,7 @@ - (void)vungleSDKwillShowAd {
- (void)vungleSDKwillCloseAdWithViewInfo:(NSDictionary *)viewInfo willPresentProductSheet:(BOOL)willPresentProductSheet {
NSLog(@"ViewInfo Dictionary:");
// viewInfo dictioanry contains completedView, playTime and didDownload information
// willPresentProduct always returns NO
// willPresentProductSheet always returns NO
for(NSString * key in [viewInfo allKeys]) {
NSLog(@"%@ : %@", key, [[viewInfo objectForKey:key] description]);
}
Expand All @@ -79,7 +79,7 @@ - (void)enableAdButtons:(BOOL)enabled {

- (IBAction)showAd {
// Play a Vungle ad (with default options)
VungleSDK* sdk = [VungleSDK sharedSDK];
VungleSDK *sdk = [VungleSDK sharedSDK];
NSError *error;
[sdk playAd:self error:&error];
if (error) {
Expand All @@ -90,10 +90,10 @@ - (IBAction)showAd {
// Play a Vungle ad (with customized options)
- (IBAction)showAdWithOptions {
// Grab instance of Vungle SDK
VungleSDK* sdk = [VungleSDK sharedSDK];
VungleSDK *sdk = [VungleSDK sharedSDK];

// Dict to set custom ad options
NSDictionary* options = @{VunglePlayAdOptionKeyOrientations: @(UIInterfaceOrientationMaskLandscape),
NSDictionary *options = @{VunglePlayAdOptionKeyOrientations: @(UIInterfaceOrientationMaskLandscape),
VunglePlayAdOptionKeyUser: @"user",
VunglePlayAdOptionKeyPlacement: @"StoreFront",
// Use this to keep track of metrics about your users
Expand All @@ -110,10 +110,10 @@ - (IBAction)showAdWithOptions {

- (IBAction)showIncentivizedAd {
// Grab instance of Vungle SDK
VungleSDK* sdk = [VungleSDK sharedSDK];
VungleSDK *sdk = [VungleSDK sharedSDK];

// Dict to set custom ad options
NSDictionary* options = @{VunglePlayAdOptionKeyIncentivized: @YES,
NSDictionary *options = @{VunglePlayAdOptionKeyIncentivized: @YES,
VunglePlayAdOptionKeyIncentivizedAlertBodyText : @"If the video isn't completed you won't get your reward! Are you sure you want to close early?",
VunglePlayAdOptionKeyIncentivizedAlertCloseButtonText : @"Close",
VunglePlayAdOptionKeyIncentivizedAlertContinueButtonText : @"Keep Watching",
Expand Down

0 comments on commit 10c3ec9

Please sign in to comment.