@Test public void isUrlFrameTest() { assertFalse(EddystoneBeacon.isUrlFrame(null)); assertFalse(EddystoneBeacon.isUrlFrame(new byte[]{})); assertFalse(EddystoneBeacon.isUrlFrame(new byte[]{0x20})); assertTrue(EddystoneBeacon.isUrlFrame(new byte[]{0x10})); assertTrue(EddystoneBeacon.isUrlFrame(new byte[]{0x11})); assertTrue(EddystoneBeacon.isUrlFrame(new byte[]{0x18})); assertTrue(EddystoneBeacon.isUrlFrame(new byte[]{0x1a})); assertTrue(EddystoneBeacon.isUrlFrame(new byte[]{0x1f})); }
public static boolean isUrlFrame(byte[] serviceData) { return serviceData != null && serviceData.length > 0 && (serviceData[0] & 0xf0) == URL_FRAME_TYPE; }
EddystoneBeacon { public static boolean isUrlFrame(byte[] serviceData) { return serviceData != null && serviceData.length > 0 && (serviceData[0] & 0xf0) == URL_FRAME_TYPE; } }
EddystoneBeacon { public static boolean isUrlFrame(byte[] serviceData) { return serviceData != null && serviceData.length > 0 && (serviceData[0] & 0xf0) == URL_FRAME_TYPE; } private  EddystoneBeacon(byte flags, byte txPower, String url); }
EddystoneBeacon { public static boolean isUrlFrame(byte[] serviceData) { return serviceData != null && serviceData.length > 0 && (serviceData[0] & 0xf0) == URL_FRAME_TYPE; } private  EddystoneBeacon(byte flags, byte txPower, String url); static String getFatBeaconTitle(byte[] serviceData); static boolean isFatBeacon(byte[] serviceData); static boolean isUrlFrame(byte[] serviceData); static EddystoneBeacon parseFromServiceData(byte[] urlServiceData, byte[] uriServiceData); String getUrl(); byte getTxPowerLevel(); byte getFlags(); }
EddystoneBeacon { public static boolean isUrlFrame(byte[] serviceData) { return serviceData != null && serviceData.length > 0 && (serviceData[0] & 0xf0) == URL_FRAME_TYPE; } private  EddystoneBeacon(byte flags, byte txPower, String url); static String getFatBeaconTitle(byte[] serviceData); static boolean isFatBeacon(byte[] serviceData); static boolean isUrlFrame(byte[] serviceData); static EddystoneBeacon parseFromServiceData(byte[] urlServiceData, byte[] uriServiceData); String getUrl(); byte getTxPowerLevel(); byte getFlags();  }