initiate


Description:

[ Version ( since = "1.0" ) ]
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

A Modem3gppUssd.

command

The command to start the USSD session with.

cancellable

A Cancellable or null.

callback

A TaskReadyCallback to call when the request is satisfied or null.

user_data

User data to pass to callback.