Telematics Authorization library
/
com.telematicssdk.auth.external
/
Task
Task
class
Task
<
T
>
Content copied to clipboard
Represents a Task to be processed
Constructors
Functions
Constructors
Task
Link copied to clipboard
fun
Task
()
Content copied to clipboard
Functions
clear
Link copied to clipboard
@
Synchronized
()
fun
clear
()
Content copied to clipboard
Clears current
Task
onError
Link copied to clipboard
@
Synchronized
()
fun
onError
(callback:
ErrorListener
):
Task
<
T
>
Content copied to clipboard
Adds error catching callback to current
Task
onSuccess
Link copied to clipboard
@
Synchronized
()
fun
onSuccess
(callback:
SuccessListener
<
T
>):
Task
<
T
>
Content copied to clipboard
Adds success callback to current
Task