mobile-detector

Java library to detect mobile devices and tablets

License

License

GroupId

GroupId

de.sstoehr
ArtifactId

ArtifactId

mobile-detector
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

mobile-detector
Java library to detect mobile devices and tablets
Project URL

Project URL

https://github.com/sdstoehr/mobile-detector
Source Code Management

Source Code Management

https://github.com/sdstoehr/mobile-detector.git

Download mobile-detector

How to add to project

<!-- https://jarcasting.com/artifacts/de.sstoehr/mobile-detector/ -->
<dependency>
    <groupId>de.sstoehr</groupId>
    <artifactId>mobile-detector</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/de.sstoehr/mobile-detector/
implementation 'de.sstoehr:mobile-detector:1.0.0'
// https://jarcasting.com/artifacts/de.sstoehr/mobile-detector/
implementation ("de.sstoehr:mobile-detector:1.0.0")
'de.sstoehr:mobile-detector:jar:1.0.0'
<dependency org="de.sstoehr" name="mobile-detector" rev="1.0.0">
  <artifact name="mobile-detector" type="jar" />
</dependency>
@Grapes(
@Grab(group='de.sstoehr', module='mobile-detector', version='1.0.0')
)
libraryDependencies += "de.sstoehr" % "mobile-detector" % "1.0.0"
[de.sstoehr/mobile-detector "1.0.0"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

Mobile Detector

Java library to detect mobile devices and tablets

<dependency>
  <groupId>de.sstoehr</groupId>
  <artifactId>mobile-detector</artifactId>
  <version>1.0.0-SNAPSHOT</version>
</dependency>

Build Status Coverage Status Maven Central

Usage

Detecting device by user agent:

MobileDetector mobileDetector = new MobileDetector();
Device device = mobileDetector.detectBy("userAgent string");

// device.type() - UNKNOWN, DESKTOP, MOBILE, TABLET
// device.platform() - UNKNOWN, IOS, ANDROID

Versions

Version
1.0.0