Android Open Source - snappyfrog G A D Custom Event Interstitial






From Project

Back to project page snappyfrog.

License

The source code is released under:

Apache License

If you think the Android project snappyfrog listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.robovm.bindings.admob.mediation;
// ww w .j a v a2s  .c o  m
import org.robovm.apple.foundation.NSObjectProtocol;
import org.robovm.apple.uikit.UIViewController;
import org.robovm.objc.annotation.Method;

public interface GADCustomEventInterstitial extends NSObjectProtocol {
  /** This method is called by Mediation when your Custom Event is scheduled to be executed. Your implementation should begin
   * retrieval of the interstitial ad, usually from a backend server, or from an ad network SDK. Results of the execution should
   * be reported back via the delegate. Note that you should wait until -presentFromRootViewController is called before
   * displaying the interstitial ad. Do not automatically display the ad when you receive the ad. Instead, retain the ad and
   * display it when presentFromRootViewController is called. |serverParameter| and |serverLabel| are the parameter and label
   * configured in the AdMob Mediation UI for the Custom Event. |request| contains information about the ad request, some of
   * those are from GADRequest.
   * @param serverParameter
   * @param serverLabel
   * @param request */
  @Method(selector = "requestInterstitialAdWithParameter:label:request:")
  void requestInterstitial (String serverParameter, String serverLabel, GADCustomEventRequest request);

  /** Present the interstitial ad as a modal view using the provided view controller. This is called only after your Custom Event
   * calls back to the delegate with the message -customEvent:didReceiveAd: .
   * @param rootViewController */
  @Method(selector = "presentFromRootViewController:")
  void present (UIViewController rootViewController);

  /** Setter for delegate You should call back to the |delegate| with the results of the execution to ensure Mediation behaves
   * correctly. The delegate is assigned, not retained, to prevent memory leak caused by circular retention.
   * 
   * You can create accessor methods either by doing
   * 
   * @synthesize delegate;
   * 
   *             in your class implementation, or define the methods -delegate and -setDelegate: yourself.
   * 
   *             In your object's -dealloc method, remember to nil out the delegate.
   * @param delegate */
  @Method(selector = "setDelegate:")
  void setDelegate (GADCustomEventInterstitialDelegate delegate);

  /** Getter for Delegate You should call back to the |delegate| with the results of the execution to ensure Mediation behaves
   * correctly. The delegate is assigned, not retained, to prevent memory leak caused by circular retention.
   * 
   * You can create accessor methods either by doing
   * 
   * @synthesize delegate;
   * 
   *             in your class implementation, or define the methods -delegate and -setDelegate: yourself.
   * 
   *             In your object's -dealloc method, remember to nil out the delegate.
   * @return */
  @Method(selector = "delegate")
  GADCustomEventInterstitialDelegate getDelegate ();
}




Java Source Code List

com.masseranolabs.bridge.SLComposeViewController.java
com.masseranolabs.snappyfrog.AndroidServices.java
com.masseranolabs.snappyfrog.ButtonFactory.java
com.masseranolabs.snappyfrog.DesktopServices.java
com.masseranolabs.snappyfrog.Explosion.java
com.masseranolabs.snappyfrog.Frog.java
com.masseranolabs.snappyfrog.Game.java
com.masseranolabs.snappyfrog.LaserBeam.java
com.masseranolabs.snappyfrog.LevelScreen.java
com.masseranolabs.snappyfrog.MainActivity.java
com.masseranolabs.snappyfrog.MainActivity.java
com.masseranolabs.snappyfrog.Main.java
com.masseranolabs.snappyfrog.Obstacle.java
com.masseranolabs.snappyfrog.OuyaServices.java
com.masseranolabs.snappyfrog.PlatformServices.java
com.masseranolabs.snappyfrog.PowerBar.java
com.masseranolabs.snappyfrog.ResHelper.java
com.masseranolabs.snappyfrog.RobovmLauncher.java
com.masseranolabs.snappyfrog.Salary.java
com.masseranolabs.snappyfrog.ScreenshotFactory.java
com.masseranolabs.snappyfrog.StagedScreen.java
com.masseranolabs.snappyfrog.client.GwtLauncher.java
com.masseranolabs.snappyfrog.client.HtmlServices.java
com.masseranolabs.snappyfrog.iOSServices.java
org.robovm.bindings.admob.GADAdMobExtras.java
org.robovm.bindings.admob.GADAdNetworkExtras.java
org.robovm.bindings.admob.GADAdSizeManager.java
org.robovm.bindings.admob.GADAdSize.java
org.robovm.bindings.admob.GADBannerViewDelegateAdapter.java
org.robovm.bindings.admob.GADBannerViewDelegate.java
org.robovm.bindings.admob.GADBannerView.java
org.robovm.bindings.admob.GADErrorCode.java
org.robovm.bindings.admob.GADGender.java
org.robovm.bindings.admob.GADInterstitialDelegateAdapter.java
org.robovm.bindings.admob.GADInterstitialDelegate.java
org.robovm.bindings.admob.GADInterstitial.java
org.robovm.bindings.admob.GADRequestErrorConstants.java
org.robovm.bindings.admob.GADRequestError.java
org.robovm.bindings.admob.GADRequest.java
org.robovm.bindings.admob.mediation.GADCustomEventInterstitialAdapter.java
org.robovm.bindings.admob.mediation.GADCustomEventInterstitialDelegateAdapter.java
org.robovm.bindings.admob.mediation.GADCustomEventInterstitialDelegate.java
org.robovm.bindings.admob.mediation.GADCustomEventInterstitial.java
org.robovm.bindings.admob.mediation.GADCustomEventRequest.java
org.robovm.bindings.admob.sample.Sample.java