Gamebase SDK for Android
2.7.2
Toast 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 | 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... | |
GamebaseWebViewConfiguration build | ( | ) |
This method creates an instance of GamebaseWebViewConfiguration.
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 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 |