Skip to content

Commit 1647ca1

Browse files
committed
Added code syntax highlighting to Readme
1 parent 112bc00 commit 1647ca1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Sample app available on the [Play Store](https://play.google.com/store/apps/deta
1616
## Including the Library in Your Project
1717

1818
This project is available as an artifact for use with Gradle. To use that, add the following blocks to your build.gradle file:
19-
```
19+
```groovy
2020
repositories {
2121
maven {
2222
url "https://dl.bintray.com/alt236/maven"
@@ -35,7 +35,7 @@ In the `onLeScan()` method of your `BluetoothAdapter.LeScanCallback()` create a
3535

3636
For example:
3737

38-
```
38+
```java
3939
private BluetoothAdapter.LeScanCallback mLeScanCallback = new BluetoothAdapter.LeScanCallback() {
4040

4141
@Override
@@ -88,7 +88,7 @@ They are also declared as constants in `AdRecord.java`.
8888
You can check if a device is an iBeacon by using `BeaconUtils.getBeaconType(BluetootLeDevice device)`. Once you have confirmed that it is, you can create a new IBeaconDevice via the IBeaconDevice constructor.
8989

9090
Example Flow:
91-
```
91+
```java
9292
final BluetoothLeDevice device = ... // A generic BLE device
9393

9494
if (BeaconUtils.getBeaconType(device) == BeaconType.IBEACON) {

0 commit comments

Comments
 (0)