utils/constants/init_location_service
library
Functions
-
compareAtSign(String atsign1, String atsign2)
→ bool
-
returns true if
atsign1
& atsign2
are same
-
deleteAllLocationData()
→ void
-
deletes all the location notifications of the logged in atsign being shared with any atsign
-
deleteLocationData(LocationNotificationModel locationNotificationModel)
→ Future<bool>
-
deletes the location notification of the logged in atsign being shared with
locationNotificationModel
.receiver
-
getAllNotification()
→ Stream
-
returns a Stream of 'KeyLocationModel' having all the shared and request location keys.
-
getAtKey(String regexKey)
→ AtKey
-
returns the 'AtKey' of the
regexKey
-
getMyLocationInfo(LocationNotificationModel _event)
→ LocationInfo?
-
will return details of my booleans for this LocationNotificationModel
-
getOtherMemberLocationInfo(String _id, String _atsign)
→ LocationInfo?
-
will return details of others booleans for this LocationNotificationModel
-
initializeLocationService(GlobalKey<NavigatorState> navKey, {required String mapKey, required String apiKey, bool showDialogBox = false, String rootDomain = 'root.atsign.org', Function? getAtValue, dynamic streamAlternative(List<KeyLocationModel>)?, bool isEventInUse = false})
→ Future<void>
-
Function to initialise the package. Should be mandatorily called before accessing package functionalities.
-
sendRequestLocationNotification(String atsign)
→ Future<bool?>
-
sends a request location notification to the
atsign
.
before calling this atsign
should be checked if valid or not.
-
sendShareLocationNotification(String atsign, int? minutes)
→ Future<bool?>
-
sends a share location notification to the
atsign
, with a 'ttl' of minutes
.
before calling this atsign
should be checked if valid or not.
-
trimAtsignsFromKey(String key)
→ String
-
input => '@25antwilling:sharelocation-1637156978786327@26juststay' or 'sharelocation-1637156978786327'
output => sharelocation-1637156978786327