TdClient class

Constructors

TdClient()

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Methods

clientExecute(int clientId, TdFunction event) → Future<TdObject>
Synchronously executes TDLib request. May be called from any thread. Only a few requests can be executed synchronously. Returned pointer will be deallocated by TDLib during next call to clientReceive or clientExecute in the same thread, so it can't be used after that.
clientReceive(int clientId, double timeout) → Future<TdObject>
Receives incoming updates and request responses from the TDLib client. May be called from any thread, but shouldn't be called simultaneously from two different threads. Returned pointer will be deallocated by TDLib during next call to clientExecute or clientSend in the same thread, so it can't be used after that.
clientSend(int clientId, TdFunction event) → Future<void>
Sends request to the TDLib client. May be called from any thread.
createClient() → Future<int>
Creates a new instance of TDLib. Returns Pointer to the created instance of TDLib. Pointer 0 mean No client instance.
destroyClient(int clientId) → Future<void>
Destroys the TDLib client instance. After this is called the client instance shouldn't be used anymore.
setLogVerbosityLevel(int level) → Future<void>
Sets the verbosity level of the internal logging of TDLib. By default the TDLib uses a log verbosity level of 5. Value 0 corresponds to fatal errors. value 1 corresponds to errors. value 2 corresponds to warnings and debug warnings. value 3 corresponds to informational. value 4 corresponds to debug. value 5 corresponds to verbose debug. value greater than 5 and up to 1024 can be used to enable even more logging.