GoogleARCore.AsyncTask< T >

A class used for monitoring the status of an asynchronous task.

Summary

Details
Template Parameters
T
The resultant type of the task.

Properties

IsComplete
bool
Gets a value indicating whether the task is complete.
Result
T
Gets the result of a completed task.

Public functions

ThenAction(Action< T > doAfterTaskComplete)
AsyncTask< T >
Performs an action (callback) in the first Unity Update() call after task completion.
WaitForCompletion()
CustomYieldInstruction
Returns a yield instruction that monitors this task for completion within a coroutine.

Properties

IsComplete

bool IsComplete

Gets a value indicating whether the task is complete.

true if the task is complete, otherwise false.

Result

T Result

Gets the result of a completed task.

The result of the completed task.

Public functions

ThenAction

AsyncTask< T > ThenAction(
  Action< T > doAfterTaskComplete
)

Performs an action (callback) in the first Unity Update() call after task completion.

Details
Parameters
doAfterTaskComplete
The action to invoke when task is complete. The result of the task will be passed as an argument to the action.
Returns
The invoking asynchronous task.

WaitForCompletion

CustomYieldInstruction WaitForCompletion()

Returns a yield instruction that monitors this task for completion within a coroutine.

Details
Returns
A yield instruction that monitors this task for completion.

Send feedback about...