Follow

Advanced Usage - Using a fixed origin for your banner

View original article on our GitHub

If you choose to locate the banner in a fixed origin rather than the view's top or bottom, simply pass the required origin point (x,y) upon initialization as explain in the following example

Locating your banner 100 pixels above the view's bottom:

startAppBridge->setOrigin(0, self.view.frame.size.height - 100);

You can change the origin of an existing banner, by using thesetSTABannerSize/setSTAAutoOrigin methods:

startAppBridge->setSTAAutoOrigin(startappiOS::STAAdOrigin_Top);

or

startAppBridge->setOrigin(0, 50);
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments