WialonSdk class Null safety

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
read-only
debug bool
Enables the logging of the library
final
hashCode int
The hash code for this object.
read-only, inherited
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.
read-only, inherited
sessionId String?
Is an existing session id, use it to reuse the session
read / write

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 non-existent method or property is accessed.
inherited
oauthLogin({required String username, required String password}) 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