Gamebase SDK for Unity 2.76.0 Toast Gamebase Platform

Loading...
Searching...
No Matches

## ◆ ShowWebView()

static void ShowWebView | ( | string | url,
|  | GamebaseRequest.Webview.Configuration | 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

  url | The url of the resource to load.
  configuration | The configuration of webview.
  closeCallback | This callback would be called when webview is closed
  schemeList | This schemeList would be filtered every web view request and call schemeEvent
  schemeEvent | This schemeEvent would be called when web view request matches one of the schemeLlist

Example Usage :

public void ShowWebViewSample(GamebaseCallback.ErrorDelegate closeCallback, List<string> schemeList, GamebaseCallback.GamebaseDelegate<string> schemeEvent)
{
var configuration = new GamebaseRequest.Webview.GamebaseWebViewConfiguration
{
title = "Title",
orientation = GamebaseScreenOrientation.UNSPECIFIED,
colorR = 128,
colorG = 128,
colorB = 128,
colorA = 255,
barHeight = 40,
isBackButtonVisible = true
};
Gamebase.Webview.ShowWebView("http://www.naver.com", configuration, closeCallback, schemeList, schemeEvent);
}
Toast.Gamebase.Gamebase.Webview.ShowWebView
static void ShowWebView(string url, GamebaseRequest.Webview.Configuration configuration=null, GamebaseCallback.ErrorDelegate closeCallback=null, List< string > schemeList=null, GamebaseCallback.GamebaseDelegate< string > schemeEvent=null)
This method to create the webview and display it on screen.
Definition Gamebase.cs:2902
Toast.Gamebase.Gamebase.Webview
The WebView class represents the entry point for launching WebView.
Definition Gamebase.cs:2852
Toast.Gamebase.Gamebase
The Gamebase class is core of Gamebase service.
Definition Gamebase.cs:11