subscribeToOrders

final static HyperTrack.Cancellable subscribeToOrders(Function1<HyperTrack.OrdersMap, Unit> callback)

Subscribe to the changes in the orders property (that indicates the orders assigned to the worker)

  • Note: The callback is called immediately after subscribing with the initial value, and then each time the value changes.

Return

an HyperTrack.Cancellable object that can be used to unsubscribe from the event

Parameters

callback

callback function to invoke when the orders change