SpaSdk class

need singleton

Properties

counterId String
Counter id
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uriServiceSpa String
Uri of the spa server
final

Methods

activateLocation() Future
Activate the location if the location is not enabled or the permission is not granted ask the user to enable the location and grant the permission
auth(String userId) → void
Set the user id and add this id to all events
getLocation() Future<LocationData?>
Get the location data
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendEvent(EventSpa event) Future<void>
Save and send the event to the server or Send to Delete this event in hive bd event is the event which need to send add the default data to the event
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance SpaSdk
Singleton instance of the SpaSdk
no setter
location ↔ Location
Location instance
getter/setter pair

Static Methods

init({required String counterId, required String uriServiceSpa}) SpaSdk
Singleton init of the SpaSdk counterId is the counter id which is required to send the event uriServiceSpa is the uri of the server where the event will be sent