-
public final class PIPLoaderProject Name: OSMOS-Android-SDK File Name: PIPLoader
-
-
Constructor Summary
Constructors Constructor Description PIPLoader(CoroutineScope coroutineScope, AdTrackerInterface adTracker)
-
Method Summary
Modifier and Type Method Description final UnitsetErrorCallback(ErrorCallback callback)Set an error callback to handle errors that occur during PIP video loading or playback. final UnitclearErrorCallback()Clear the error callback to prevent memory leaks. final UnitshowPIP(Activity activity, VideoAd ad, String cliUbid, Integer width, Integer height, Coordinates coordinates, String adLabelText, Integer adLabelAlignment, Boolean isClamped, Function1<Map<String, Object>, Unit> adClickListener, Function2<Map<String, Object>, String, Unit> onViewLoadListener)final UnitcleanUp()-
-
Constructor Detail
-
PIPLoader
PIPLoader(CoroutineScope coroutineScope, AdTrackerInterface adTracker)
-
-
Method Detail
-
setErrorCallback
final Unit setErrorCallback(ErrorCallback callback)
Set an error callback to handle errors that occur during PIP video loading or playback.
- Parameters:
callback- Callback that handles error scenarios with structured error information.
-
clearErrorCallback
final Unit clearErrorCallback()
Clear the error callback to prevent memory leaks.
-
showPIP
final Unit showPIP(Activity activity, VideoAd ad, String cliUbid, Integer width, Integer height, Coordinates coordinates, String adLabelText, Integer adLabelAlignment, Boolean isClamped, Function1<Map<String, Object>, Unit> adClickListener, Function2<Map<String, Object>, String, Unit> onViewLoadListener)
-
-
-
-