-
public interface EloAdListenerOpt-in lifecycle callbacks for Elo ad events.
Set via Elo.setListener. The SDK holds the listener weakly — you must retain it yourself. All callbacks run on the main thread; safe to update UI directly. Default implementations are empty so callers only override the events they care about.
Mirrors
iOS Sources/EloAds/EloAdDelegate.swift.
-
-
Method Summary
Modifier and Type Method Description UnitonAdDidLoad(EloAd ad)Called when Elo.loadAd returns a filled result. UnitonAdDidFail(EloError error)Called when an ad request fails (transport, server error, decoding). UnitonAdDidTrackImpression(EloAd ad)Called after the SDK fires an impression ping (post-viewability dwell). UnitonAdDidReceiveClick(EloAd ad)Called when the user taps an ad, before the click URL opens. -
-
Method Detail
-
onAdDidLoad
Unit onAdDidLoad(EloAd ad)
Called when Elo.loadAd returns a filled result.
-
onAdDidFail
Unit onAdDidFail(EloError error)
Called when an ad request fails (transport, server error, decoding). Not called for AdResult.NoFill — that's a valid outcome, not a failure.
-
onAdDidTrackImpression
Unit onAdDidTrackImpression(EloAd ad)
Called after the SDK fires an impression ping (post-viewability dwell).
-
onAdDidReceiveClick
Unit onAdDidReceiveClick(EloAd ad)
Called when the user taps an ad, before the click URL opens.
-
-
-
-