io.github.mngsk.devicedetector.client.browser.Browser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of device-detector Show documentation
Show all versions of device-detector Show documentation
The Universal Device Detection library that parses User Agents and detects devices (desktop, tablet, mobile, tv, cars, console, etc.), clients (browsers, feed readers, media players, PIMs, ...), operating systems, brands and models.
package io.github.mngsk.devicedetector.client.browser;
import java.util.Optional;
import io.github.mngsk.devicedetector.client.Client;
public class Browser extends Client {
private final Engine engine;
private final String family;
public Browser(String name, String version, Engine engine, String family) {
super("browser", name, version);
this.engine = engine;
this.family = family;
}
public Optional getEngine() {
return Optional.ofNullable(this.engine);
}
public Optional getFamily() {
return Optional.ofNullable(this.family);
}
}