Client class
Properties
-
clientId
↔ int?
-
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
create()
→ void
-
Call native function to create native client instance.
Have to call it at least once before using other methods
-
execute(Map<String, dynamic> obj)
→ Map<String, dynamic>
-
Encode json object, send it to td json client, and then decode the result to json object
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
receive([double timeout = 10])
→ Map<String, dynamic>?
-
Call td json receive, convert result to json object
It will response null if receive empty string (timeout)
-
send(Map<String, dynamic> obj)
→ dynamic
-
Encode json object then send it to td json client
-
set_log_message_callback(int max_verbosity_level, NativeCallable<td_log_message_callback> callback)
→ void
-
Sets the callback called from internal TDLib log. Default the callback is not set.
-
toString()
→ String
-
A string representation of this object.
inherited