WialonSdk class

Wialon SDK for dart Documentation available at https://sdk.wialon.com/wiki/en/sidebar/remoteapi/apiref/apiref

Constructors

WialonSdk({bool debug = false, String? sessionId, String host = 'https://hst-api.wialon.com'})
Constructor

Properties

baseUrl String
no setter
debug bool
Enables the logging of the library
final
hashCode int
The hash code for this object.
no setterinherited
host String
Is the hostname (And port if apply) of the Wialon server, by default it is 'https://hst-api.wialon.com' But you can change it to your server, or if you use Wialon Local, replace the host to your server
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionId String?
Is an existing session id, use it to reuse the session
getter/setter pair

Methods

call({required String method, required dynamic parameters}) Future<Map<String, dynamic>>
Make a call to the Wialon API
log(dynamic content) → void
debug printer
logout() Future<void>
Logout of Wialon
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
oauthLogin({required String username, required String password, String host = "https://hosting.wialon.com"}) Future<String?>
Login into Wialon using username and password through OAuth, this method will return an Access Token
reverseGeocoding({required double latitude, required double longitude, int flags = 1255211008}) Future<String>
Rever geocoding, returns name of the location that corresponds to the latitude and longitude given
tokenLogin({required String token}) Future<Map<String, dynamic>>
Login into Wialon with the Access Token
toString() String
A string representation of this object.
inherited

Operators

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