# Builder

open class Builder

## Constructors

Builder
Link copied to clipboard
constructor()

## Functions

build
Link copied to clipboard
open fun build(): GamebaseWebViewConfiguration
This method creates an instance of GamebaseWebViewConfiguration.
enableAutoCloseByCustomScheme
Link copied to clipboard
open fun enableAutoCloseByCustomScheme(autoCloseByCustomScheme: Boolean): GamebaseWebViewConfiguration.Builder
Change whether webview is automatically closed when the custom scheme is activated.
enableFixedFontSize
Link copied to clipboard
open fun enableFixedFontSize(enable: Boolean): GamebaseWebViewConfiguration.Builder
This method fixes the font size.
from
Link copied to clipboard
open fun from(@NonNull configuration: GamebaseWebViewConfiguration): GamebaseWebViewConfiguration.Builder
This method creates an instance of Builder from GamebaseWebViewConfiguration.
setBackButtonImageResource
Link copied to clipboard
open fun setBackButtonImageResource(@DrawableRes resourceId: Int): GamebaseWebViewConfiguration.Builder
open fun setBackButtonImageResource(@NonNull context: Context, @NonNull name: String): GamebaseWebViewConfiguration.Builder
This method sets the image of the back button.
setBackButtonVisible
Link copied to clipboard
open fun setBackButtonVisible(visible: Boolean): GamebaseWebViewConfiguration.Builder
This method sets the visibility of the back button of the WebView.
setBackgroundColor
Link copied to clipboard
open fun setBackgroundColor(backgroundColor: Int): GamebaseWebViewConfiguration.Builder
This method sets the background color of the webview.
setCloseButtonImageResource
Link copied to clipboard
open fun setCloseButtonImageResource(@DrawableRes resourceId: Int): GamebaseWebViewConfiguration.Builder
open fun setCloseButtonImageResource(@NonNull context: Context, @NonNull name: String): GamebaseWebViewConfiguration.Builder
This method sets the image of the close button.
setCutoutAreaColor
Link copied to clipboard
open fun setCutoutAreaColor(cutoutAreaColor: Int): GamebaseWebViewConfiguration.Builder
This method sets webView cutout area's background color when renderOutsideSafeArea is false.
setNavigationBarColor
Link copied to clipboard
open fun setNavigationBarColor(navigationBarColor: Int): GamebaseWebViewConfiguration.Builder
This method sets the color of the webview's navigation bar.
setNavigationBarHeight
Link copied to clipboard
open fun setNavigationBarHeight(height: Int): GamebaseWebViewConfiguration.Builder
This method sets the height of the navigation bar.
setNavigationBarIconTintColor
Link copied to clipboard
open fun setNavigationBarIconTintColor(navigationBarIconTintColor: Int): GamebaseWebViewConfiguration.Builder
This method sets the color of the webview's navigation bar's icon's tint color.
setNavigationBarTitleColor
Link copied to clipboard
open fun setNavigationBarTitleColor(navigationBarTitleColor: Int): GamebaseWebViewConfiguration.Builder
This method sets the color of the webview's navigation bar's title color.
setNavigationBarVisible
Link copied to clipboard
open fun setNavigationBarVisible(visible: Boolean): GamebaseWebViewConfiguration.Builder
This method sets the visibility of the navigation bar of the WebView.
setReloadOnRotate
Link copied to clipboard
open fun setReloadOnRotate(reloadOnRotate: Boolean): GamebaseWebViewConfiguration.Builder
This method sets whether to reload the webview when the screen is rotated.
setRenderOutsideSafeArea
Link copied to clipboard
open fun setRenderOutsideSafeArea(renderOutsideSafeArea: Boolean): GamebaseWebViewConfiguration.Builder
Apply Android display cutout mode to WebView.
setScreenOrientation
Link copied to clipboard
open fun setScreenOrientation(orientation: Int): GamebaseWebViewConfiguration.Builder
This method sets the screen orientation of the webview.
setStyle
Link copied to clipboard
open fun setStyle(style: Int): GamebaseWebViewConfiguration.Builder
This method sets the style of the WebView.
setTitleText
Link copied to clipboard
open fun setTitleText(titleText: String): GamebaseWebViewConfiguration.Builder
This method sets the title of the webview.