Package com.inmobi.ads.banner
Object InMobiBannerAudioManager
-
- All Implemented Interfaces:
public class InMobiBannerAudioManager
A public class to listen to Audio changes on InMobiBanner object by passing the Parent view of InMobiBanner i.e with Mediation.
-
-
Field Summary
Fields Modifier and Type Field Description public final static InMobiBannerAudioManager
INSTANCE
-
Method Summary
Modifier and Type Method Description final static <T extends ViewGroup> Unit
setAudioListener(T t, AudioListener audioListener)
Use this function for attaching the AudioListener to InMobiBanner instance by sending the Parent view, i.e the Mediation Banner view. final static Unit
setAudioEnabled(Boolean isEnabled)
Sets if the Audio is enabled in InMobiBanner. -
-
Method Detail
-
setAudioListener
final static <T extends ViewGroup> Unit setAudioListener(T t, AudioListener audioListener)
Use this function for attaching the AudioListener to InMobiBanner instance by sending the Parent view, i.e the Mediation Banner view.
You should receive the AudioStatus callbacks when InMobiBanner is loaded with Audio Ad.
- Parameters:
t
- Parent view of InMobiBanner instanceaudioListener
- InMobi AudioListener instance
-
setAudioEnabled
final static Unit setAudioEnabled(Boolean isEnabled)
Sets if the Audio is enabled in InMobiBanner. If set to false InMobi stops serving audio ads in Banners in current session.
-
-
-
-