AsyncTaskResult

open class AsyncTaskResult<R, E>

Helper class to return results to the UI thread when using an android.os.AsyncTask.

Parameters

<R>

type of the expected Result.

<E>

type of the expected Error.

Functions

Link copied to clipboard
open fun <RT, ET> create(result: RT, error: ET): AsyncTaskResult<RT, ET>
Instantiates an AsyncTaskResult.
Link copied to clipboard
open fun getError(): E
Link copied to clipboard
open fun getResult(): R