Last active
April 13, 2017 08:24
-
-
Save jgonfer/2ca5c38e842d3fe618a17a8a1ef4edcc to your computer and use it in GitHub Desktop.
Code examples for my Blog Page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void showVideo() { | |
RunnerActivity.CurrentActivity.runOnUiThread(new Runnable() { | |
public void run() { | |
if (videoAd.isLoaded()) { | |
videoAd.show(); | |
} | |
} | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void) showRewardedVideo { | |
if ([self checkInternetConnection:GADDidFailToConnect]) { | |
if ([[GADRewardBasedVideoAd sharedInstance] isReady]) { | |
[[GADRewardBasedVideoAd sharedInstance] presentFromRootViewController:[self getRootViewController]]; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment