Gamebase SDK for Android  1.1.5
Toast Gamebase Platform

◆ showWebView()

static void showWebView ( @NonNull Activity  activity,
@NonNull String  url,
@NonNull GamebaseWebViewConfiguration  configuration 
)
static

This method to create the web popup or browser and display it on screen.

Parameters
activityCurrent activity.
urlThe url of the resource to load. This method to create the web popup or browser and display it on screen.
activityCurrent activity.
urlThe url of the resource to load.
configurationThe configuration of webview.

Example Usage:

GamebaseWebViewConfiguration configuration
= new GamebaseWebViewConfiguration.Builder()
.setTitleText("title")
.setScreenOrientation(ScreenOrientation.PORTRAIT)
.setNavigationBarColor(Color.RED)
.setNavigationBarHeight(40)
.setBackButtonVisible(true)
.setBackButtonImageResource(R.id.back_button)
.setCloseButtonImageResource(R.id.close_button)
.build();
GamebaseWebView.showWebView(MainActivity.this, "http://www.gamebase.com", configuration);