@Test public void setAutorefreshEnabled_withRefreshFalse_shouldForwardToAdViewController() throws Exception { subject.setAutorefreshEnabled(false); verify(adViewController).forceSetAutorefreshEnabled(false); }
public void setAutorefreshEnabled(boolean enabled) { if (mAdViewController != null) { mAdViewController.forceSetAutorefreshEnabled(enabled); } }
MoPubView extends FrameLayout { public void setAutorefreshEnabled(boolean enabled) { if (mAdViewController != null) { mAdViewController.forceSetAutorefreshEnabled(enabled); } } }
MoPubView extends FrameLayout { public void setAutorefreshEnabled(boolean enabled) { if (mAdViewController != null) { mAdViewController.forceSetAutorefreshEnabled(enabled); } } MoPubView(Context context);  MoPubView(Context context, AttributeSet attrs); }
MoPubView extends FrameLayout { public void setAutorefreshEnabled(boolean enabled) { if (mAdViewController != null) { mAdViewController.forceSetAutorefreshEnabled(enabled); } } MoPubView(Context context);  MoPubView(Context context, AttributeSet attrs); void loadAd(); void destroy(); void setAdUnitId(String adUnitId); String getAdUnitId(); void setKeywords(String keywords); String getKeywords(); void setLocation(Location location); Location getLocation(); void setTimeout(int milliseconds); int getAdWidth(); int getAdHeight(); String getResponseString(); @Deprecated void setClickthroughUrl(String url); String getClickTrackingUrl(); @Deprecated String getClickthroughUrl(); Activity getActivity(); void setBannerAdListener(BannerAdListener listener); BannerAdListener getBannerAdListener(); void setLocalExtras(Map<String, Object> localExtras); Map<String, Object> getLocalExtras(); void setAutorefreshEnabled(boolean enabled); boolean getAutorefreshEnabled(); void setAdContentView(View view); void setTesting(boolean testing); boolean getTesting(); void forceRefresh(); AdFormat getAdFormat(); @Deprecated void setLocationAwareness(LocationAwareness locationAwareness); @Deprecated LocationAwareness getLocationAwareness(); @Deprecated void setLocationPrecision(int precision); @Deprecated int getLocationPrecision(); @Deprecated void setOnAdWillLoadListener(OnAdWillLoadListener listener); @Deprecated void setOnAdLoadedListener(OnAdLoadedListener listener); @Deprecated void setOnAdFailedListener(OnAdFailedListener listener); @Deprecated void setOnAdPresentedOverlayListener(OnAdPresentedOverlayListener listener); @Deprecated void setOnAdClosedListener(OnAdClosedListener listener); @Deprecated void setOnAdClickedListener(OnAdClickedListener listener); @Deprecated void customEventDidLoadAd(); @Deprecated void customEventDidFailToLoadAd(); @Deprecated void customEventActionWillBegin(); @Deprecated void setFacebookSupported(boolean enabled); @Deprecated boolean isFacebookSupported(); }
MoPubView extends FrameLayout { public void setAutorefreshEnabled(boolean enabled) { if (mAdViewController != null) { mAdViewController.forceSetAutorefreshEnabled(enabled); } } MoPubView(Context context);  MoPubView(Context context, AttributeSet attrs); void loadAd(); void destroy(); void setAdUnitId(String adUnitId); String getAdUnitId(); void setKeywords(String keywords); String getKeywords(); void setLocation(Location location); Location getLocation(); void setTimeout(int milliseconds); int getAdWidth(); int getAdHeight(); String getResponseString(); @Deprecated void setClickthroughUrl(String url); String getClickTrackingUrl(); @Deprecated String getClickthroughUrl(); Activity getActivity(); void setBannerAdListener(BannerAdListener listener); BannerAdListener getBannerAdListener(); void setLocalExtras(Map<String, Object> localExtras); Map<String, Object> getLocalExtras(); void setAutorefreshEnabled(boolean enabled); boolean getAutorefreshEnabled(); void setAdContentView(View view); void setTesting(boolean testing); boolean getTesting(); void forceRefresh(); AdFormat getAdFormat(); @Deprecated void setLocationAwareness(LocationAwareness locationAwareness); @Deprecated LocationAwareness getLocationAwareness(); @Deprecated void setLocationPrecision(int precision); @Deprecated int getLocationPrecision(); @Deprecated void setOnAdWillLoadListener(OnAdWillLoadListener listener); @Deprecated void setOnAdLoadedListener(OnAdLoadedListener listener); @Deprecated void setOnAdFailedListener(OnAdFailedListener listener); @Deprecated void setOnAdPresentedOverlayListener(OnAdPresentedOverlayListener listener); @Deprecated void setOnAdClosedListener(OnAdClosedListener listener); @Deprecated void setOnAdClickedListener(OnAdClickedListener listener); @Deprecated void customEventDidLoadAd(); @Deprecated void customEventDidFailToLoadAd(); @Deprecated void customEventActionWillBegin(); @Deprecated void setFacebookSupported(boolean enabled); @Deprecated boolean isFacebookSupported(); static final int DEFAULT_LOCATION_PRECISION; }