- Getting Started
- Web Applications
- Offline Application
- Image Optimiser
- Automatic Data Updates
- Client Side Overrides
- User Performance Monitoring
- Passing Properties To Client Side
- Accessing Metadata
- Match Metrics
- Trie Matching
Getting Started - Version 3
Up and running in four easy steps.
- Download the API .
- Unzip the file into a directory of your choice.
- Add "51Degrees.detection.core.jar" located in "dist" folder to your project.
- To use device detection:
Provider object exposes several match methods that are used to perform device detection. Detection information is returned in a Match object. Provider requires a DataSet to be passes to it at initialisation. DataSet objects provide access to device data from the data files and can be constructed using two factories:
All data from the data file is read into memory at initialisation. Detection time is faster but the amount of memory used is significantly greater than with StreamFactory. To instantiate Provider object using this method:
A limited amount of information is read into memory at initialisation. Match will actively use the data file to perform detection and read device information. Detection is slower as it involves disk I/O operations but the amount of memory required is very small. This method is ideal for environments with limited resources. To instantiate Provider object using this method:
Getting Started - Version 2
Complete the following five steps to integrate mobile device detection into your Java application:
Step 1 - Download "51degrees.mobi_Detection_Java_*.zip" from SourceForge.
Step 2 - Unzip the file into a directory of your choice.
Step 3 - locate "51Degrees.mobi.detection.core.jar" in the "dist" directory and add the JAR to your project.
Step 4 - Add the following code to your Java file:
Step 5 - You are now ready to detect devices. Use the following code as a reference when implementing a solution within your own code: