SharingLocationService class

Constructors

SharingLocationService()
factory

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
checkIfEventIsRejected(LocationNotificationModel locationNotificationModel) bool
deleteAllKey() Future<void>
deleteKey(LocationNotificationModel locationNotificationModel) Future<bool>
Deletes originally created locationNotificationModel notification
newAtKey(int ttr, String key, String? sharedWith, {int? ttl, DateTime? expiresAt}) → AtKey
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removePerson(LocationNotificationModel locationNotificationModel) Future
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>
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}) Future<bool>
Updates originally created locationNotificationModel with originalLocationNotificationModel data

Operators

operator ==(Object other) bool
The equality operator.
inherited