Gamebase SDK for Android
1.4.1
Toast Gamebase Platform
|
|
static |
This method to create the web popup and display it on screen.
activity | Current activity. |
url | The url of the resource to load. |
onCloseCallback | called when the browser closed. |
schemeList | for receiving events. |
onEvent | from Scheme list. 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(); Gamebase.WebView.showWebPopup(getActivity(), "http://www.gamebase.com", configuration, new GamebaseCallback(){ @Override public void onCallback(GamebaseException exception) { ... } }, schemeList, new GamebaseDataCallback<String>() { @Override public void onCallback(String data, GamebaseException exception) { ... } }); |