AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.util.AsyncCallbackFacade< S, T > Class Template Referenceabstract
Inheritance diagram for com.google.appinventor.components.runtime.util.AsyncCallbackFacade< S, T >:
com.google.appinventor.components.runtime.util.AsyncCallbackPair< S >

Public Member Functions

 AsyncCallbackFacade (AsyncCallbackPair< T > target)
 
void onFailure (String message)
 
- Public Member Functions inherited from com.google.appinventor.components.runtime.util.AsyncCallbackPair< S >
void onFailure (String message)
 
void onSuccess (T result)
 

Protected Attributes

final AsyncCallbackPair< T > callback
 

Detailed Description

AsyncCallbackFacade is an abstract class to provide an onSuccess(Object) method to transform the result of an asynchronous operation while passing through any error or failure states to the original callback.

Author
ewpatton
Parameters
<S>Source (original) type expected by the callback
<T>Target type that the source result will be transformed into

Definition at line 18 of file AsyncCallbackFacade.java.

Constructor & Destructor Documentation

◆ AsyncCallbackFacade()

Member Function Documentation

◆ onFailure()

void com.google.appinventor.components.runtime.util.AsyncCallbackFacade< S, T >.onFailure ( String  message)

Definition at line 26 of file AsyncCallbackFacade.java.

Member Data Documentation

◆ callback


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