roam-ai / roam-android

Android Location SDK. High accuracy and battery efficient location SDK for Android by Roam.ai

Home Page:https://roam.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow meta-data support for updating location ie. updateCurrentLocation method

ravikanththummala opened this issue · comments

Discussed in #10

Originally posted by ravikanth-tummala July 26, 2021
When
being a developer, during updateCurrentLocation() method
I want to
send custom meta-data (ie. key value pairs) along with that specific location update
So that
we can tag the meta-data only to single location update and not for all the location update, when we add the same using publishSave() method.

Things to notice

  • If the publishSave() method already has meta-data added, this will be overwritten by the meta-data passed in updateCurrentLocation() method and applied only for that specific location update and rest will continue to use the previous configurations passed in publishSave() method.
  • The meta-data information should be available below for user location subsciptions.
func didUpdateLocation(_ location: RoamLocation) {
        //Receive user location along with meta-data
    }
func didReceiveUserLocation(_ location: RoamLocationReceived) {
         //Receive other users' location along with meta-data
    }
```</div>