Пример #1
0
 public void OfferwallButtonClick()
 {
     try {
         SetKillWhenDone(false);
         appbrainUnity.CallStatic("offerwallButtonClick", AppBrain.GetCurrentActivity());
     } catch (Exception e) {
         Debug.LogError(e);
     }
 }
Пример #2
0
 public void ShowOfferWall()
 {
     try {
         SetKillWhenDone(false);
         appbrainUnity.CallStatic("showOfferWall", AppBrain.GetCurrentActivity());
     } catch (Exception e) {
         Debug.LogError(e);
     }
 }
Пример #3
0
 public bool MaybeShowInterstitial(bool quitWhenDone)
 {
     try {
         SetKillWhenDone(quitWhenDone);
         return(appbrainUnity.CallStatic <bool>("maybeShowInterstitial", AppBrain.GetCurrentActivity()));
     } catch (Exception e) {
         Debug.LogError(e);
         return(false);
     }
 }
Пример #4
0
 private static void SetKillWhenDone(bool killWhenDone)
 {
     if (killWhenDone)
     {
         appbrainUnity.CallStatic("killWhenDone", AppBrain.GetCurrentActivity());
     }
     else
     {
         appbrainUnity.CallStatic("dontKillWhenDone");
     }
 }
 public bool MaybeShow()
 {
     return(javaObject.Call <bool>("maybeShow", AppBrain.GetCurrentActivity()));
 }
 public InterstitialBuilder Preload()
 {
     javaObject.Call <AndroidJavaObject>("preload", AppBrain.GetCurrentActivity());
     return(this);
 }
 public InterstitialBuilder SetFinishOnExit(bool finishOnExit)
 {
     javaObject.Call <AndroidJavaObject>("setFinishOnExit", finishOnExit ? AppBrain.GetCurrentActivity() : null);
     return(this);
 }
Пример #8
0
 public string GetOfferWallButtonLabel()
 {
     return(javaObject.Call <string>("getOfferWallButtonLabel", AppBrain.GetCurrentActivity()));
 }
Пример #9
0
 public void OfferWallButtonClick()
 {
     javaObject.Call("unityOfferWallButtonClick", AppBrain.GetCurrentActivity());
 }
Пример #10
0
 public void ShowOfferWall()
 {
     javaObject.Call("showOfferWall", AppBrain.GetCurrentActivity());
 }
Пример #11
0
 public bool ShowInterstitial()
 {
     return(javaObject.Call <bool>("showInterstitial", AppBrain.GetCurrentActivity()));
 }