Follow

Advanced Usage - Hiding the Banner

View original article on our GitHub.

In order to hide an already displayed banner, find the banner's view and use the hideBanner()method.

For example:

Banner banner = (com.startapp.android.publish.banner.Banner) findViewById(R.id.startAppBanner); 
banner.hideBanner();

Where R.id.startAppBanner is the banner's id from the layout XML file.

In order to show the banner again, simply use the showBanner() method.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments