AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.util.AsyncCallbackPair< T > Interface Template Reference

Public Member Functions

void onFailure (String message)
 
void onSuccess (T result)
 

Detailed Description

Interface for callback pair with onSuccess(Object) and onFailure(String).

Parameters
<T>the type passed to the onSuccess(Object) method.
Author
halab.nosp@m.elso.nosp@m.n@goo.nosp@m.gle..nosp@m.com (Hal Abelson)

Definition at line 17 of file AsyncCallbackPair.java.

Member Function Documentation

◆ onFailure()

Create a pair of callbacks, for success and failure, used tyically in an asynchronous operation. Called when an asynchronous call fails to complete normally

Parameters
messagea message to be consumed by the procedure that set up the callback pair

◆ onSuccess()

Called when an asynchronous call completes successfully.

Parameters
resultthe return value of asynchronous operation

The documentation for this interface was generated from the following file: