-
Notifications
You must be signed in to change notification settings - Fork 1
Platform specific customization
githubcatw edited this page Feb 16, 2023
·
3 revisions
Starting from 1.1 you can additionally customize your windows by adding settings that are only present on some platforms. Currently the only supported platform for this is Android.
To add platform-specific customization, first create a configuration object for each platform you want to customize the window on:
// Create an Android configuration
BWAndroidConfig androidConfig = new BWAndroidConfig();
// Modify the configurationThe configuration object will have all of the settings supported by Browser Window on this platform.
Then, create a Browser Window object and set the configuration:
// Create a BrowserWindow object
BrowserWindow window = new BrowserWindow();
// Set the configurations
window.SetAndroidConfig(androidConfig);To start a customized browser window, use CustomOpen():
window.CustomOpen("https://github.com/githubcatw/BrowserWindow");To see the supported settings (with examples) check the wiki pages for the respective platforms: