LocationSharingService

Manage all location sharing related features.

Functions

Link copied to clipboard

Returns a LiveData on the live location share summary with the given eventId.

Link 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?)

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

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

Send a static location event to the room.

Link copied to clipboard
abstract suspend fun startLiveLocationShare(timeoutMillis: Long): UpdateLiveLocationShareResult

Starts sharing live location in the room.

Link copied to clipboard

Stops sharing live location in the room.