// Creates an Splash. public void CreateSplashAd(string placementId, string channelId, string versionId, YumiSplashOptions splashOptions) { splashClientPtr = (IntPtr)GCHandle.Alloc(this); SplashPtr = YumiExterns.InitYumiSplash(splashClientPtr, placementId, channelId, versionId); this.splashOptions = splashOptions; YumiExterns.SetSplashFetchTime(SplashPtr, splashOptions.adFetchTime); if (splashOptions.adOrientation != YumiSplashOrientation.YUMISPLASHORIENTATION_UNKNOWN || splashOptions.adOrientation != YumiSplashOrientation.YUMISPLASHORIENTATION_PORTRAIT) { YumiExterns.SetSplashOrientation(SplashPtr, (int)splashOptions.adOrientation); } YumiExterns.SetSplashCallbacks( SplashPtr, SplashDidSuccessToShowCallback, SplashDidFailToShowCallback, SplashDidClickCallback, SplashDidCloseCallback ); }