Package com.brightcove.ssai.tracking
Class AsyncTaskResult<R,E>
java.lang.Object
com.brightcove.ssai.tracking.AsyncTaskResult<R,E>
- Type Parameters:
R
- type of the expected Result.E
- type of the expected Error.
Helper class to return results to the UI thread when using an
AsyncTask
.-
Method Summary
-
Method Details
-
create
Instantiates an AsyncTaskResult.- Type Parameters:
RT
- type of the Result.ET
- type of the error.- Parameters:
result
- The result value.error
- The error value.- Returns:
- a new instance of an AsyncTaskResult.
-
getResult
- Returns:
- the result value.
-
getError
- Returns:
- the error value.
-