Reputation: 515
I'm using the Facebook SDK, here is the area that I'm getting the desired 'Ad' object:
adView.setAdListener(new AdListener() {
@Override
public void onAdLoaded(Ad ad) {
// Ad loaded callback
}
Where adView
is an object of class AdView
from package com.facebook.ads
.
Facebook ad type that I'm using: https://developers.facebook.com/docs/audience-network/android-banners
Will be glad to find the WebView of the banner through reflection (I want to use javascript to change the icon, for example, within the banner).
Thanks!
Upvotes: 0
Views: 206
Reputation: 1
Maybe try finding a field that WebView is one of its superclasses. Iterate over all field with reflection and for each field construct a list of superclasses and check if WebView is present in that list.
Upvotes: 0