Google. Play. Common. PlayAsyncOperation< TResult, TError >
This is an abstract class.Represents an asynchronous operation that produces a result upon completion.
Summary
Details | |||||
---|---|---|---|---|---|
Template Parameters |
|
Inheritance
Inherits from: CustomYieldInstruction
Properties |
|
---|---|
Error
|
TError
The error that prevented this operation from completing successfully.
|
IsDone
|
bool
Whether or not the operation has finished.
|
IsSuccessful
|
abstract bool
Whether or not the operation completed without error.
|
keepWaiting
|
override bool
Implements the CustomYieldInstruction.keepWaiting property so that this request can be yielded on in a coroutine.
|
Events |
|
---|---|
Completed = delegate { }
|
Action< PlayAsyncOperation< TResult, TError > >
Event that is invoked upon operation completion.
|
Public functions |
|
---|---|
GetResult()
|
TResult
Gets the result, if the operation is done.
|
Protected functions |
|
---|---|
GetResultImpl()
|
virtual abstract TResult
Returns the operation result.
|
InvokeCompletedEvent()
|
void
Invokes the Completed event.
|
Properties
Error
TError Error
The error that prevented this operation from completing successfully.
In the case of a successful operation, this value can be ignored.
IsDone
bool IsDone
Whether or not the operation has finished.
IsSuccessful
abstract bool IsSuccessful
Whether or not the operation completed without error.
keepWaiting
override bool keepWaiting
Implements the CustomYieldInstruction.keepWaiting property so that this request can be yielded on in a coroutine.
Events
Completed
Action< PlayAsyncOperation< TResult, TError > > Completed = delegate { }
Event that is invoked upon operation completion.
If an event handler is registered after the operation has completed, and thus after this event has been invoked, then the handler will be called synchronously.
Public functions
GetResult
TResult GetResult()
Gets the result, if the operation is done.
Details | |||
---|---|---|---|
Exceptions |
|
Protected functions
GetResultImpl
virtual abstract TResult GetResultImpl()
Returns the operation result.
Details | |
---|---|
Returns |
The result of the operation.
|