// Event handler called when the user leaves ad and control is return to the hosting app private void Embedded_OnAdEnd(object sender, AdEndEventArgs e) { var nowait = Windows.ApplicationModel.Core.CoreApplication.MainView.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => { AnimateHeight(1); }); }
// Event handler called when the user leaves ad and control is return to the hosting app private void Embedded_OnAdEnd(object sender, AdEndEventArgs e) { var nowait = this.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => { AnimateHeight(1); }); }
// Event handler called when the user leaves ad and control is return to the hosting app private void SdkInstance_OnAdEnd(object sender, AdEndEventArgs e) { // e.Id - Vungle app ID in string // e.Placement - placement ID in string // e.IsCompletedView - true when 80% or more of the video was watched // e.CallToActionClicked - true when the user has clicked download button on end card // e.WatchedDuration - duration of video watched // e.VideoDuration - DEPRECATED System.Diagnostics.Debug.WriteLine("OnVideoEnd(" + e.Id + "): " + "\n\tPlacement: " + e.Placement + "\n\tIsCompletedView: " + e.IsCompletedView + "\n\tCallToActionClicked: " + e.CallToActionClicked + "\n\tWatchedDuration: " + e.WatchedDuration); }
// OnAdEnd // e.Id - 字符串中的 Vungle 应用 ID // e.Placement - 字符串中的广告位置 ID // e.IsCompletedView- 观看视频内容 80% 或更多时为 true // e.CallToActionClicked - 用户点击了结束卡上的下载按钮时为 true // e.WatchedDuration - 已弃用 private void SdkInstance_OnAdEnd(object sender, AdEndEventArgs e) { IsCompletedView = e.IsCompletedView; CallToActionClicked = e.CallToActionClicked; }
// Event handler called when the user leaves ad and control is return to the hosting app private void SdkInstance_OnAdEnd(object sender, AdEndEventArgs e) { // e.CallToActionClicked is true when the user has clicked download button on end card System.Diagnostics.Debug.WriteLine("OnAdEnd(Id: " + e.Id + ")" + "\n\tCallToActionClicked: " + e.CallToActionClicked); }
private void InmobiProvider_OnAdEnd(object sender, AdEndEventArgs e) { Debug.WriteLine($"InmobiProvider_OnAdEnd for {e.Placement}"); togglePlayButtonStatusForPlacement(e.Placement, false); }