GroupLocationServiceImpl

Functions

Link copied to clipboard
open override fun onEvent(eventCallback: EventCallback<GroupEvent>)

Registers an event callback for receiving group location events.

Link copied to clipboard
open override fun startListeningToGroups(): Flow<List<GroupUser>>

Starts listening to group updates and returns a flow of group users. This will allow you to receive location update from other group members.

open override fun startListeningToGroups(eventCallback: EventCallback<List<GroupUser>>)

Starts listening to group updates and registers an event callback. This will allow you to receive location update from other group members.

Link copied to clipboard
open override fun startSharingLocation(onLocationSent: EventCallback<Location>)

Starts sharing the device's location with the group. The other group members will be able to receive your current location.

Link copied to clipboard
open override fun stopListeningToGroups()

Stops listening to group updates. This will stop location update from other group members.

Link copied to clipboard
open override fun stopSharingLocation()

Stops sharing the device's location with the group. The other group members will stop getting your location update.