Location Sharing Service
Manage all location sharing related features.
Functions
Link copied to clipboard
abstract fun getLiveLocationShareSummary(beaconInfoEventId: String): LiveData<Optional<LiveLocationShareAggregatedSummary>>
Content copied to clipboard
Returns a LiveData on the live location share summary with the given eventId.
Link copied to clipboard
abstract fun getRunningLiveLocationShareSummaries(): LiveData<List<LiveLocationShareAggregatedSummary>>
Content copied to clipboard
Returns a LiveData on the list of current running live location shares.
Link copied to clipboard
abstract suspend fun redactLiveLocationShare(beaconInfoEventId: String, reason: String?)
Content copied to clipboard
Redact (delete) the live associated to the given beacon info event id.
Link copied to clipboard
abstract suspend fun sendLiveLocation( beaconInfoEventId: String, latitude: Double, longitude: Double, uncertainty: Double?): Cancelable
Content copied to clipboard
Send a live location event to the room. To get the beacon info event id, startLiveLocationShare must be called before sending live location updates.
Link copied to clipboard
abstract suspend fun sendStaticLocation( latitude: Double, longitude: Double, uncertainty: Double?, isUserLocation: Boolean): Cancelable
Content copied to clipboard
Send a static location event to the room.
Link copied to clipboard
abstract suspend fun startLiveLocationShare(timeoutMillis: Long): UpdateLiveLocationShareResult
Content copied to clipboard
Starts sharing live location in the room.
Link copied to clipboard
abstract suspend fun stopLiveLocationShare(): UpdateLiveLocationShareResult
Content copied to clipboard
Stops sharing live location in the room.