Oh - I guess I'm not understanding the question then.
Wouldn't you just use the name of the activity that you are requesting the ad from. For example, if you are calling it from an activity named "Settings", wouldn't you just use ".settings$MyAdListener", then put an implementation of the listener in your Settings activity?
I want a way to call the code (NativeAd.LoadNativeAd with some parameters) in any activity, without put an implementation of the listener in all this activities.
Example:
- I have 5 activities with Native Express Ads.
- I created a code module (NativeAd) with this sub LoadNativeAd
- In sub Activity_Create of activity1 I call this line: NativeAd.LoadNativeAd
- I call the same line in acitivities 2, 3, 4 and 5.
If I use the ".main$MyAdListener" the native ads is not show.
I want to figure out a way to pass the name the activity that calls the NativeAd.LoadNativeAd:
".[activity name]$MyAdListener"
Did you understanding the question?
Sorry, but english is not my first language and I am learning.