LiveLocationSharingViewerServiceProtocol: Add comments.

This commit is contained in:
SBiOSoftWhare
2022-05-04 16:03:52 +02:00
parent 7960309316
commit 005daf1675
@@ -21,8 +21,10 @@ import CoreLocation
@available(iOS 14.0, *)
protocol LiveLocationSharingViewerServiceProtocol {
/// All shared users live location
var usersLiveLocation: [UserLiveLocation] { get }
/// Called when users live location are updated (new location, location stopped, ).
var didUpdateUsersLiveLocation: (([UserLiveLocation]) -> Void)? { get set }
func isCurrentUserId(_ userId: String) -> Bool
@@ -31,5 +33,6 @@ protocol LiveLocationSharingViewerServiceProtocol {
func stopListeningLiveLocationUpdates()
/// Stop current user location sharing
func stopUserLiveLocationSharing(completion: @escaping (Result<Void, Error>) -> Void)
}