APISonar


org.netbeans.modules.web.browser.api.BrowserFamilyId.ANDROID

> org > netbeans > modules > web > browser > api > BrowserFamilyId > ANDROID
org APIs netbeans APIs modules APIs web APIs browser APIs api APIs BrowserFamilyId APIs ANDROID APIs

Example 1
private boolean isSupportedBrowser(BrowserFamilyId browser) {
        return (browser != null &&
                (browser == BrowserFamilyId.CHROME ||
                browser == BrowserFamilyId.CHROMIUM ||
                browser == BrowserFamilyId.ANDROID));
    }
Example 2
public ClientProjectEnhancedBrowserImplementation getEnhancedBrowser(final WebBrowser webBrowser) {
        if (webBrowser == null) {
            return null;
        }
        if (BrowserFamilyId.ANDROID == webBrowser.getBrowserFamily()) {
            BrowserSupport support = BrowserSupport.create(webBrowser);
            return ClientProjectUtilities.createMobileBrowser(
                    p, 
                    webBrowser, 
                    support, 
                    new AndroidBrowserActionProvider(support, webBrowser.getId(), p));
        }
        return null;
    }