Skip to content

Commit

Permalink
README tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
RobAtticus committed May 5, 2016
1 parent 5800d4d commit 31c2519
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,14 @@ Check out device registration in `initIobeam()`, reproduced in part here:
iobeam.registerOrSetDeviceAsync(mDeviceId, new RegisterCallback() {
@Override
public void onSuccess(String deviceId) {
mCanSend = true;
mDeviceId = deviceId;
updateDeviceId(deviceId);
// success code...
}

@Override
public void onFailure(Throwable throwable, RestRequest restRequest) {
throwable.printStackTrace();
mHandler.sendEmptyMessage(MSG_REGISTER_FAILURE);
mCanSend = false;
mDeviceId = null;
// failure code...
}
});
```
Expand Down

0 comments on commit 31c2519

Please sign in to comment.