Helper class for easy management of com.cloudplugs.rest.RestCallback with android.os.Handler. It is a wrapper of a custom com.cloudplugs.rest.RestCallback such that it will be executed inside an android.os.Handler.
More...
Helper class for easy management of com.cloudplugs.rest.RestCallback with android.os.Handler. It is a wrapper of a custom com.cloudplugs.rest.RestCallback such that it will be executed inside an android.os.Handler.
◆ RestHandlerCallback()
Create a new callback automatically executes the given one inside the specified handler loop.
- Parameters
-
handler | the Android handler |
cb | the callback to execute inside the handler |
◆ enqueue()
◆ getHandler()
- Returns
- the Android handler of this instance
◆ setHandler()
void setHandler |
( |
Handler |
handler | ) |
|
Set an Android handler to use when executing the callback.
- Parameters
-
handler | the handler to use |