Gamebase SDK for Unity  1.10.0
Toast Gamebase Platform

◆ ShowWebView() [1/2]

static void ShowWebView ( GamebaseRequest.Webview.GamebaseWebViewConfiguration  configuration)
static

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

Since
Added 1.4.0.
Deprecated:
As of release 1.5.0, use Gamebase.ShowWebView(string, GamebaseRequest.Webview.GamebaseWebViewConfiguration, GamebaseCallback.ErrorDelegate, List<string> schemeList, GamebaseCallback.GamebaseDelegate<string>) method instead.
Parameters
configurationThe configuration of webview.

Example Usage :

public void ShowWebView()
{
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;
configuration.url = "http://www.naver.com";
Gamebase.Webview.ShowWebView(configuration);
}