All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mngsk.devicedetector.client.browser.Browser Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.0.10
Show newest version
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);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy