-jio-start-block-type-2
Our SDK Callbacks are essential hooks for seamless ad integration, covering key aspects such as Loading Status, User Interactions, Media Playback, Ad Rotation, Data Handling, Skippable Ad Events, and Ad Rendering. These callbacks provide the flexibility to customize your app's behavior throughout the ad lifecycle.
-jio-tables
SDK Callback API | Description |
---|---|
onAdPrepared(), onAdReceived() | Called when ad data is ready. onAdPrepared()- called only once per cacheAd call onAdReceived()- can be called multiple times on each Ad Selection |
onAdRender() | Called on ad rendering. |
onAdMediaStart(), onAdMediaEnd(), onAdMediaProgress(), onMediaPlaybackChange() | Indicates media start, Called on media end, Reports media playback changes, or Reports media progress. |
onAdClicked(), onAdMediaExpand(), onAdMediaCollapse() | Triggered on ad click, Invoked on media expansion, or Triggered on media collapse. |
onAdSkippable() | Indicates ad is skippable. |
onAdChange(), onAdRefresh() | Notifies ad change, Notifies ad view refresh, or Indicates ad exhaustion. |
onAdFailedToLoad() | Notifies successful ad reception or Indicates ad loading failure. |
onAdClosed() | Called when the ad is ready for display or Indicates ad closure. |
onAdDataPrepared() | Provides video/ Native ad data in LoadCustomAd. |
onAdSkipButtonClick() | Notifies when skip button is clicked |
onAdQuartileEventFired() | Notifies when quartile event is fired such as start, first,mid,third and complete. |
onAdExpandCollpaseContainer() | Provides the information whether the ad container is in expand or collapse state. |
-jio-style-title
func onAdPrepared(adView: JioAdView) {
NSLog("onAdPrepared")
}
func onAdReceived(adView: JioAdView){
NSLog("onAdReceived")
}
func onAdRender(adView: JioAdView){
NSLog("onAdRender")
}
func onAdRefresh(adView: JioAdView){
NSLog("onAdRefresh")
}
func onAdClicked(adView : JioAdView){
NSLog("onAdClicked")
}
func onAdMediaStart(adView: JioAdView){
NSLog("onAdMediaStart")
}
func onAdMediaProgress(totalDuration: Float, progress: Float) {
NSLog("onAdMediaProgress")
}
func onAdMediaEnd(adView: JioAdView) {
NSLog("onAdMediaEnd")
}
func onAdMediaExpand(adView: JioAdView){
NSLog("onAdMediaExpand")
}
func onAdMediaCollapse(adView: JioAdView){
NSLog("onAdMediaCollapse")
}
func onMediaPlaybackChange(adView: JioAdsFramework.JioAdView, mediaPlayBack: JioAdsFramework.MediaPlayBack) {
NSLog("onMediaPlaybackChange")
}
func onAdChange(adView:JioAdView , trackNo: Int) {
NSLog("onAdChange")
}
func onAdSkippable(adView: JioAdView) {
NSLog("onAdSkippable")
}
func onAdSkipButtonClick() {
NSLog("onAdSkipButtonClick")
}
func onAdDataPrepared(jioAd: JioAd?, isLastAd: Bool, jioAdView: JioAdView?) {
NSLog("onAdDataPrepared")
}
func onAdClosed(adView: JioAdView, isVideoCompleted: Bool) {
NSLog("onAdClosed")
}
func onAdQuartileEventFired(eventType: EQuartileEventType) {
NSLog("onAdQuartileEventFired ")
}
func onAdFailedToLoad(adView: JioAdView, error: JioAdError){
NSLog("onAdFailedToLoad")
}
func onAdExpandCollpaseContainer(adView: JioAdView, expandCollpase: ExpandCollapse) {
NSLog("onAdExpandCollpaseContainer")
}
-jio-end-block-type-2