Gamebase SDK for Android
2.44.0
NHN Cloud Gamebase Platform
|
Public Member Functions | |
GamebaseWebViewConfiguration | build () |
This method creates an instance of GamebaseWebViewConfiguration. More... | |
Builder | setStyle (int style) |
This method sets the style of the WebView. More... | |
Builder | setScreenOrientation (int orientation) |
This method sets the screen orientation of the webview. More... | |
Builder | setBackgroundColor (int backgroundColor) |
This method sets the background color of the webview. More... | |
Builder | setNavigationBarColor (int navigationBarColor) |
This method sets the color of the webview's navigation bar. More... | |
Builder | setBackButtonVisible (boolean visible) |
This method sets the visibility of the back button of the WebView. More... | |
Builder | setNavigationBarVisible (boolean visible) |
This method sets the visibility of the navigation bar of the WebView. More... | |
Builder | setNavigationBarHeight (int height) |
This method sets the height of the navigation bar. More... | |
Builder | setTitleText (String titleText) |
This method sets the title of the webview. More... | |
Builder | setBackButtonImageResource (@DrawableRes int resourceId) |
This method sets the image of the back button. More... | |
Builder | setBackButtonImageResource (@NonNull final Context context, @NonNull final String name) |
This method sets the image of the back button. More... | |
Builder | setCloseButtonImageResource (@DrawableRes int resourceId) |
This method sets the image of the close button. More... | |
Builder | setCloseButtonImageResource (@NonNull final Context context, @NonNull final String name) |
This method sets the image of the close button. More... | |
Builder | setPopupCalcRule (final int popupCalcRule) |
This method sets the rule of calculation of popup size. More... | |
Builder | setPopupWidthRatio (final float width) |
This method sets the width ratio of the pop-up style web view. More... | |
Builder | setPopupHeightRatio (final float height) |
This method sets the height ratio of the pop-up style web view. More... | |
Builder | setPopupWidthDp (final int width) |
This method sets the width dp size of the pop-up style web view. More... | |
Builder | setPopupHeightDp (final int height) |
This method sets the height dp size of the pop-up style web view. More... | |
Builder | enableFixedFontSize (final boolean enable) |
This method fixes the font size. More... | |
Builder | enableAutoCloseByCustomScheme (boolean autoCloseByCustomScheme) |
Change whether webview is automatically closed when the custom scheme is activated. More... | |
Static Public Member Functions | |
static Builder | from (@NonNull final GamebaseWebViewConfiguration configuration) |
This method creates an instance of Builder from GamebaseWebViewConfiguration. More... | |
GamebaseWebViewConfiguration build | ( | ) |
This method creates an instance of GamebaseWebViewConfiguration.
Builder enableAutoCloseByCustomScheme | ( | boolean | autoCloseByCustomScheme | ) |
Change whether webview is automatically closed when the custom scheme is activated.
On platforms like Unity, the event doesn't fire while the popup is floating. Therefore, in order to process the event, if a custom click event occurs, all pop-ups must be closed. The default value is true.
autoCloseByCustomScheme | close webview when custom event execution is required. |
Builder enableFixedFontSize | ( | final boolean | enable | ) |
This method fixes the font size.
enable | fix font size of not. |
|
static |
This method creates an instance of Builder from GamebaseWebViewConfiguration.
configuration | WebViewConfiguration |
Builder setBackButtonImageResource | ( | @DrawableRes int | resourceId | ) |
This method sets the image of the back button.
resourceId | The identifier of the resource. |
Builder setBackButtonImageResource | ( | @NonNull final Context | context, |
@NonNull final String | name | ||
) |
This method sets the image of the back button.
context | A Context of the application package implementing this class. |
name | The name of the desired resource. |
Builder setBackButtonVisible | ( | boolean | visible | ) |
This method sets the visibility of the back button of the WebView.
visible | the visible is visibility of back button |
Builder setBackgroundColor | ( | int | backgroundColor | ) |
This method sets the background color of the webview.
Only valid in pop-up style.
backgroundColor | the color of the background |
Builder setCloseButtonImageResource | ( | @DrawableRes int | resourceId | ) |
This method sets the image of the close button.
resourceId | The identifier of the resource. |
Builder setCloseButtonImageResource | ( | @NonNull final Context | context, |
@NonNull final String | name | ||
) |
This method sets the image of the close button.
context | A Context of the application package implementing this class. |
name | The name of the desired resource. |
Builder setNavigationBarColor | ( | int | navigationBarColor | ) |
This method sets the color of the webview's navigation bar.
navigationBarColor | the color of the navigation bar |
Builder setNavigationBarHeight | ( | int | height | ) |
This method sets the height of the navigation bar.
height | the height of navigation bar |
Builder setNavigationBarVisible | ( | boolean | visible | ) |
This method sets the visibility of the navigation bar of the WebView.
visible | the visible is visibility of navigation bar |
Builder setPopupCalcRule | ( | final int | popupCalcRule | ) |
This method sets the rule of calculation of popup size.
See PopupWebViewCalcRule.
popupCalcRule | fixed aspect ratio enabled. |
Builder setPopupHeightDp | ( | final int | height | ) |
This method sets the height dp size of the pop-up style web view.
If you set a dp value that exceeds the screen maximum size, it will be displayed as the screen maximum value.
height | the height dp size of web view. |
Builder setPopupHeightRatio | ( | final float | height | ) |
This method sets the height ratio of the pop-up style web view.
The value is a float between 0 and 1, where 0 means 0% and 1 means 100%.
height | the height of web view. |
Builder setPopupWidthDp | ( | final int | width | ) |
This method sets the width dp size of the pop-up style web view.
If you set a dp value that exceeds the screen maximum size, it will be displayed as the screen maximum value.
width | the width dp size of web view. |
Builder setPopupWidthRatio | ( | final float | width | ) |
This method sets the width ratio of the pop-up style web view.
The value is a float between 0 and 1, where 0 means 0% and 1 means 100%.
width | the width of web view. |
Builder setScreenOrientation | ( | int | orientation | ) |
This method sets the screen orientation of the webview.
orientation | An orientation constant as used in ActivityInfo.screenOrientation. |
Builder setStyle | ( | int | style | ) |
This method sets the style of the WebView.
style | The style value is browser or popup |
Builder setTitleText | ( | String | titleText | ) |
This method sets the title of the webview.
titleText | the titleText is title's text of webview |