Skip to content

Instantly share code, notes, and snippets.

View lvandyk's full-sized avatar

Leon van Dyk lvandyk

View GitHub Profile
@lvandyk
lvandyk / UserClassExample.m
Last active January 10, 2016 11:29
LIVXUserClass-iOS Example Usage
// Example Usage
User *user = [User currentUser];
user.firstName = @"John";
user.lastName = @"Doe";
user.accessToken = @"theaccesstoken";
user.isLoggedIn = YES;
[user save]; // Saved to persistence!
@lvandyk
lvandyk / DataService1.java
Created January 25, 2016 07:38
DataService1.java
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
detectionHelper = BeaconDetectionHelper.getIntsance(BeaconDetectionService.this);
beaconManager = detectionHelper.getBeaconManager();
beaconManager.connect(this);
beaconManager.setMonitoringListener(new BeaconManager.MonitoringListener() {
@Override
public void onEnteredRegion(Region region, List<Beacon> beacons) {
try {