diff --git a/RiotSwiftUI/Modules/Room/LiveLocationSharingViewer/Service/LiveLocationSharingViewerServiceProtocol.swift b/RiotSwiftUI/Modules/Room/LiveLocationSharingViewer/Service/LiveLocationSharingViewerServiceProtocol.swift index b62de6691..5e23bd64e 100644 --- a/RiotSwiftUI/Modules/Room/LiveLocationSharingViewer/Service/LiveLocationSharingViewerServiceProtocol.swift +++ b/RiotSwiftUI/Modules/Room/LiveLocationSharingViewer/Service/LiveLocationSharingViewerServiceProtocol.swift @@ -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) }