Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
ferologics committed Aug 21, 2024
1 parent e693468 commit 39233d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ fun handlePresence(isInsideResult: Result<Boolean, HyperTrackLocationError>) {
}
// Check if a worker is inside an order's geofence
handlePresence(HyperTrack.orders["my_order"]?.isInsideGeofence())
handlePresence(HyperTrack.orders["my_order"]?.isInsideGeofence)
// Or, listen to order.isInsideGeofence changes
HyperTrack.subscribeToOrders { orders ->
handlePresence(orders["my_order"]?.isInsideGeofence())
handlePresence(orders["my_order"]?.isInsideGeofence)
}
```

Expand Down

0 comments on commit 39233d1

Please sign in to comment.