Skip to content

Commit

Permalink
Provide a getter for IMA's AdsLoader
Browse files Browse the repository at this point in the history
Issue: #3322

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=171508635
  • Loading branch information
andrewlewis authored and ojw28 committed Oct 11, 2017
1 parent 10f8192 commit e887165
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,16 @@ public ImaAdsLoader(Context context, Uri adTagUri, ImaSdkSettings imaSdkSettings
contentDurationMs = C.TIME_UNSET;
}

/**
* Returns the underlying {@code com.google.ads.interactivemedia.v3.api.AdsLoader} wrapped by
* this instance.
*/
public com.google.ads.interactivemedia.v3.api.AdsLoader getAdsLoader() {
return adsLoader;
}

// AdsLoader implementation.

@Override
public void attachPlayer(ExoPlayer player, EventListener eventListener, ViewGroup adUiViewGroup) {
this.player = player;
Expand Down Expand Up @@ -270,7 +280,7 @@ public void release() {
}
}

// AdsLoader.AdsLoadedListener implementation.
// com.google.ads.interactivemedia.v3.api.AdsLoader.AdsLoadedListener implementation.

@Override
public void onAdsManagerLoaded(AdsManagerLoadedEvent adsManagerLoadedEvent) {
Expand Down

0 comments on commit e887165

Please # to comment.