Package 

Interface LocationSharingManager

    • Constructor Detail

    • Method Detail

      • setExternalUserId

         abstract void setExternalUserId(String userId)

        Sets the user id that will be visible to other users partaking in location sharing

      • subscribe

         abstract void subscribe(String token, String alias, LocationSharingPeerType peerType)

        Subscribes to location sharing token The only time token is necessary is if the peerType is Group. Else it automatically subscribes to wanted peertypes

        Parameters:
        token - This is the token to subscribe to
        alias - This will be the alias set for the current session of location sharing
        peerType - This can be Group(1), Geofence(2), All(3)
      • unsubscribe

         abstract void unsubscribe(String token, LocationSharingPeerType type)

        Unsubscribes from token. If the LocationSharingPeerType is Group, token is necessary or else any argument can be given as token and it will unsubscribe from the location sharing session

        Parameters:
        token - This is the token to unsubscribe from
        type - This can be Group(1), Geofence(2), All(3)
      • getLocations

         abstract void getLocations(LocationSharingPeerType peerType, long maxAgeInSeconds, GetLocationsCallback getLocationsCallback)

        Gets the locations of the subscribed peerType

        Parameters:
        peerType - This can be Group(1), Geofence(2), All(3)
        maxAgeInSeconds - Specifies the range of time to acquire the positions (e.
        getLocationsCallback - Callback that returns a list of OnlineLocation objects
      • getAssets

         abstract void getAssets(GetAssetsCallback getAssetsCallback, long maxAgeInSeconds)

        Gets the assets

        Parameters:
        getAssetsCallback - Callback that returns a list of Identifier pairs corresponding to assets
        maxAgeInSeconds - Specifies the range of time to acquire the assets (e.
      • getAssetLocations

         abstract void getAssetLocations(String assetIdentifier, long maxAgeInSeconds, GetLocationsCallback getLocationsCallback)

        Gets the location of the asset with the given identifier

        Parameters:
        assetIdentifier - The identifier of the asset
      • getSubscribers

         abstract void getSubscribers(GetSubscribersCallback subscribersFromCppCallback)

        Returns the subscribers to the user from the callback

        Parameters:
        subscribersFromCppCallback - Callback that returns a list of LocationSharingSubscriberData