Not sure if this is intentional or not, or whether I'm just using the API incorrectly, but I noticed that the value given to ImaAdsLoader.Builder.setAdEventListener(AdEventListener) never gets removed from the AdsManager instance it owns. The consequence of this in my app is where if I'm playing an ad, then call ImaAdsLoader.release() the ImaAdsLoader's AdsManager still holds onto my AdEventListener and sends it an AdEvent with type AdEventType.CONTENT_RESUME_REQUESTED, which I don't want (I would've expected ImaAdsLoader.release() to remove the AdEventListener I gave it during instantiation, for me).
There's no method that I'm aware of on ImaAdsLoader to remove my AdEventListener, so as a workaround I have to tap into ImaAdsLoader.getAdsLoader().addAdsLoadedListener(...) then hold onto the AdsManager myself and manage its ownership of my AdEventListener.
I can provide a more comprehensive bug report if the above details are insufficient.
Version used: 2.9.0
Not sure if this is intentional or not, or whether I'm just using the API incorrectly, but I noticed that the value given to
ImaAdsLoader.Builder.setAdEventListener(AdEventListener)never gets removed from theAdsManagerinstance it owns. The consequence of this in my app is where if I'm playing an ad, then callImaAdsLoader.release()theImaAdsLoader'sAdsManagerstill holds onto myAdEventListenerand sends it anAdEventwith typeAdEventType.CONTENT_RESUME_REQUESTED, which I don't want (I would've expectedImaAdsLoader.release()to remove theAdEventListenerI gave it during instantiation, for me).There's no method that I'm aware of on
ImaAdsLoaderto remove myAdEventListener, so as a workaround I have to tap intoImaAdsLoader.getAdsLoader().addAdsLoadedListener(...)then hold onto theAdsManagermyself and manage its ownership of myAdEventListener.I can provide a more comprehensive bug report if the above details are insufficient.
Version used: 2.9.0