Gamebase SDK for Unity  2.2.1
Toast Gamebase Platform

◆ ShowWebView()

static void ShowWebView ( string  url,
GamebaseRequest.Webview.GamebaseWebViewConfiguration  configuration = null,
GamebaseCallback.ErrorDelegate  closeCallback = null,
List< string >  schemeList = null,
GamebaseCallback.GamebaseDelegate< string >  schemeEvent = null 
)
static

This method to create the webview and display it on screen.

Since
Added 1.5.0.
Parameters
urlThe url of the resource to load.
configurationThe configuration of webview.
closeCallbackThis callback would be called when webview is closed
schemeListThis schemeList would be filtered every web view request and call schemeEvent
schemeEventThis schemeEvent would be called when web view request matches one of the schemeLlist

Example Usage :

public void ShowWebView(GamebaseCallback.ErrorDelegate closeCallback, List<string> schemeList, GamebaseCallback.GamebaseDelegate<string> schemeEvent)
{
GamebaseRequest.Webview.GamebaseWebViewConfiguration configuration = new GamebaseRequest.Webview.GamebaseWebViewConfiguration();
configuration.title = "Title";
configuration.orientation = -1;
configuration.colorR = 128;
configuration.colorG = 128;
configuration.colorB = 128;
configuration.colorA = 255;
configuration.barHeight = 40;
configuration.buttonVisible = true;
Gamebase.Webview.ShowWebView("http://www.naver.com", configuration, closeCallback, schemeList, schemeEvent);
}