Package org.altbeacon.beacon.distance
Class AndroidModel
- java.lang.Object
-
- org.altbeacon.beacon.distance.AndroidModel
-
public class AndroidModel extends Object
Represents a specific Android device model based on the available device build information Created by dyoung on 8/28/14.
-
-
Constructor Summary
Constructors Constructor Description AndroidModel(String version, String buildNumber, String model, String manufacturer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AndroidModelforThisDevice()StringgetBuildNumber()StringgetManufacturer()StringgetModel()StringgetVersion()intmatchScore(AndroidModel otherModel)Calculates a qualitative match score between two different Android device models for the purposes of how likely they are to have similar Bluetooth signal level responsesvoidsetBuildNumber(String mBuildNumber)voidsetManufacturer(String mManufacturer)voidsetModel(String mModel)voidsetVersion(String mVersion)StringtoString()
-
-
-
Method Detail
-
forThisDevice
public static AndroidModel forThisDevice()
-
getVersion
public String getVersion()
-
setVersion
public void setVersion(String mVersion)
-
getBuildNumber
public String getBuildNumber()
-
getModel
public String getModel()
-
getManufacturer
public String getManufacturer()
-
setBuildNumber
public void setBuildNumber(String mBuildNumber)
-
setModel
public void setModel(String mModel)
-
setManufacturer
public void setManufacturer(String mManufacturer)
-
matchScore
public int matchScore(AndroidModel otherModel)
Calculates a qualitative match score between two different Android device models for the purposes of how likely they are to have similar Bluetooth signal level responses- Parameters:
otherModel-- Returns:
- match quality, higher numbers are a better match
-
-