public InterstitialClient(string blockId) { this.selfPointer = GCHandle.ToIntPtr(GCHandle.Alloc(this)); this.ObjectId = InterstitialBridge.YMAUnityCreateInterstitial( this.selfPointer, blockId); InterstitialBridge.YMAUnitySetInterstitialCallbacks( this.ObjectId, InterstitialDidLoadAdCallback, InterstitialDidFailToLoadAdCallback, InterstitialWillPresentScreenCallback, InterstitialWillLeaveApplicationCallback, InterstitialWillAppearCallback, InterstitialDidDismissCallback, InterstitialDidFailToShowCallback); }
public void Show() { InterstitialBridge.YMAUnityShowInterstitial(this.ObjectId); }
public bool IsLoaded() { return(InterstitialBridge.YMAUnityIsInterstitialLoaded(this.ObjectId)); }