SharingLocationService class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkForAlreadyExisting(String? atsign)
→ List
-
checks if logged in user is already sharing location with
atsign
.
-
checkIfEventIsRejected(LocationNotificationModel locationNotificationModel)
→ bool
-
checks if logged in user's already shared location with
atsign
is rejected.
-
deleteAllKey()
→ Future<void>
-
Deletes all keys
-
deleteKey(LocationNotificationModel locationNotificationModel)
→ Future<bool>
-
Deletes originally created
locationNotificationModel
notification
-
newAtKey(int ttr, String key, String? sharedWith, {int? ttl, DateTime? expiresAt})
→ AtKey
-
returns a new
AtKey
.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
removePerson(LocationNotificationModel locationNotificationModel)
→ Future
-
Removes a person from the location sharing
-
sendShareLocationEvent(String? atsign, bool isAcknowledgment, {int? minutes})
→ Future<bool?>
-
Sends a 'sharelocation' key to
atsign
with duration of minutes
minute
-
sendShareLocationToGroup(List<AtContact> selectedContacts, {int? minutes})
→ Future<void>
-
Sends location to
selectedContacts
for minutes
.
-
shareLocationAcknowledgment(LocationNotificationModel originalLocationNotificationModel, bool isAccepted)
→ Future<bool>
-
Sends a 'sharelocationacknowledged' key to
originalLocationNotificationModel
.atsignCreator with isAccepted as isAccepted
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateWithShareLocationAcknowledge(LocationNotificationModel originalLocationNotificationModel, {bool? isSharing, bool rePrompt = false, bool shouldCheckForTimeChanges = false})
→ Future<bool>
-
Updates originally created
locationNotificationModel
with originalLocationNotificationModel
data