diff --git a/docs/classes/HyperTrack.html b/docs/classes/HyperTrack.html index b540474..9bf7100 100644 --- a/docs/classes/HyperTrack.html +++ b/docs/classes/HyperTrack.html @@ -54,8 +54,9 @@
Metadata JSON
Static
getStatic
getStatic
getStatic
getA primary identifier that uniquely identifies the worker outside of HyperTrack. Example: email, phone number, database id It is usually obtained and set when the worker logs into the app. @@ -71,7 +72,8 @@
const subscription = HyperTrack.locate(location => {
...
})
// to unsubscribe
subscription.remove()
Static
setStatic
setStatic
setStatic
setStatic
setStatic
setSets the name for the device
@@ -96,7 +98,7 @@EmitterSubscription
const subscription = HyperTrack.subscribeToLocation(location => {
...
})
// later, to stop listening
subscription.remove()
-Static
subscribeStatic
subscribeSubscribe to changes in the orders assigned to the worker
EmitterSubscription
const subscription = HyperTrack.subscribeToOrders(orders => {
...
})
// later, to stop listening
subscription.remove()
diff --git a/sdk/android/src/main/java/com/reactnativehypertracksdk/HyperTrackReactNativePlugin.kt b/sdk/android/src/main/java/com/reactnativehypertracksdk/HyperTrackReactNativePlugin.kt
index 0233420..1896109 100644
--- a/sdk/android/src/main/java/com/reactnativehypertracksdk/HyperTrackReactNativePlugin.kt
+++ b/sdk/android/src/main/java/com/reactnativehypertracksdk/HyperTrackReactNativePlugin.kt
@@ -51,21 +51,21 @@ class HyperTrackReactNativePlugin(reactContext: ReactApplicationContext?) :
EVENT_IS_AVAILABLE -> {
emitEvent(
EVENT_IS_AVAILABLE,
- serializeIsAvailable(HyperTrack.isAvailable).toWritableMap()
+ serializeIsAvailable(HyperTrack.isAvailable).toWritableMap(),
)
}
EVENT_IS_TRACKING -> {
emitEvent(
EVENT_IS_TRACKING,
- serializeIsTracking(HyperTrack.isTracking).toWritableMap()
+ serializeIsTracking(HyperTrack.isTracking).toWritableMap(),
)
}
EVENT_LOCATION -> {
emitEvent(
EVENT_LOCATION,
- serializeLocationResult(HyperTrack.location).toWritableMap()
+ serializeLocationResult(HyperTrack.location).toWritableMap(),
)
}
diff --git a/sdk/src/HyperTrack/data_types/internal/OrderInternal.ts b/sdk/src/HyperTrack/data_types/internal/OrderInternal.ts
index 99d09ee..00aac24 100644
--- a/sdk/src/HyperTrack/data_types/internal/OrderInternal.ts
+++ b/sdk/src/HyperTrack/data_types/internal/OrderInternal.ts
@@ -1,5 +1,4 @@
-import type { Result } from 'lib/typescript';
-import type { LocationError } from '../LocationError';
+import type { Result } from '../Result';
import type { LocationErrorInternal } from './LocationErrorInternal';
export type OrderInternal = {
Gets the name that is set for the device