本文整理汇总了Java中org.altbeacon.beacon.Beacon.getBeaconTypeCode方法的典型用法代码示例。如果您正苦于以下问题:Java Beacon.getBeaconTypeCode方法的具体用法?Java Beacon.getBeaconTypeCode怎么用?Java Beacon.getBeaconTypeCode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.altbeacon.beacon.Beacon
的用法示例。
在下文中一共展示了Beacon.getBeaconTypeCode方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addBeacon
import org.altbeacon.beacon.Beacon; //导入方法依赖的package包/类
public void addBeacon(Beacon beacon) {
if (beacon.getServiceUuid() == 0xfeaa) {
if (beacon.getBeaconTypeCode() == 0x00) {
eddystoneUID = beacon;
} else if (beacon.getBeaconTypeCode() == 0x10) {
eddystoneURL = beacon;
} else if (beacon.getBeaconTypeCode() == 0x20) {
eddystoneTLM = beacon;
}
} else {
iBeacon = beacon;
}
lastAddedBeacon = beacon;
}
示例2: isEddystoneUID
import org.altbeacon.beacon.Beacon; //导入方法依赖的package包/类
public static boolean isEddystoneUID(Beacon beacon) {
return (beacon.getServiceUuid() == 0xfeaa) && (beacon.getBeaconTypeCode() == 0);
}
示例3: isEddystoneURL
import org.altbeacon.beacon.Beacon; //导入方法依赖的package包/类
public static boolean isEddystoneURL(Beacon beacon) {
return (beacon.getServiceUuid() == 0xfeaa && beacon.getBeaconTypeCode() == 16);
}
示例4: isAppleIBeacon
import org.altbeacon.beacon.Beacon; //导入方法依赖的package包/类
public static boolean isAppleIBeacon(Beacon beacon) {
return beacon.getBeaconTypeCode() == 533; //0215 in hex
}
示例5: isEstimoteNearable
import org.altbeacon.beacon.Beacon; //导入方法依赖的package包/类
public static boolean isEstimoteNearable(Beacon beacon) {
return beacon.getBeaconTypeCode() == 0x0101;
}