initiate
Description:
public async string initiate (string command, Cancellable? cancellable) throws Error
Asynchronously sends a USSD command string to the network initiating a USSD session.
When the request is handled by the network, the method returns the response or an appropriate error. The network may be awaiting further response from the ME after returning from this method and no new command.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this
method from. You can then call initiate.end to get the result of the operation.
See initiate_sync for the synchronous, blocking version of this method.
Parameters:
this | |
command |
The command to start the USSD session with. |
cancellable |
A Cancellable or |
callback |
A TaskReadyCallback to call when the request is satisfied or |
user_data |
User data to pass to |