mTask

Summary

Request management class Used in conjunction with coroutines to synchronize all asynchronous processing

Relation

System.Collections.IEnumerator
System.IDisposable
System.Runtime.Serialization.ISerializable

Constructor

#ctor(System.String,System.Type,System.Int32,System.Int32) Request management class Used in conjunction with coroutines to synchronize all asynchronous processing
#ctor( ) Request management class Used in conjunction with coroutines to synchronize all asynchronous processing
#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) Initializes a new instance of the class.

Property

task Gets or sets the task.
IsCompleted Gets a value indicating whether this instance is completed.
Current Current status
ID Request ID
path Request path ( URL, FilePath, etc... )
isError Returns true when error
isRestricted Returns true when app is restricted
isNotReachableNetwork Returns true when the network can not be connected
isNotSupported Returns true if the system is not supported
isNotFound Returns true if no data is found
isPending Returns true if data is pending
isDuplicate Returns true when processing is duplicated
isDone Returns true when processing is finished
isAbort Returns true when forced termination
isUpdated Returns true when data updated
retriedCount Returns retried task
maxRetriedCount Returns maximum retry count
progress Degree of progress(0.0 - 1.0)
isDisposed Disposed flag
isCloned Gets or sets a value indicating whether this instance is cloned.
isDisposable Gets a value indicating whether this instance is disposable.
isCached Gets a value indicating whether this instance is cached.
updatedTime Updated time
updatedFrame Updated frame count for on frame
onFrame Callback method executed for each frame
onRunNextTask Callback method executed for each running next task
retryCallbackTask Callback method executed on retry
group Group number( 0 or more )
groupInternal Group number
loadingOrder Loading order (Smaller is faster)
type Type of object Usually the class name of mTask inheritance class AssetBundle and Resources may specify the type of asset of content
error Error message
keepWaiting Custom coroutine finish flag
delegatedTask Delegated task
continuationTask Subsequent tasks
continuationExecutedTask Processed and subsequently executed tasks

Method

Finalize( ) Finalizes an instance of the class.
GetResult( ) Gets the result.
OnCompleted(System.Action) Schedule a continuation operation that will be called when the instance completes.
UnsafeOnCompleted(System.Action) Schedule a continuation operation that will be called when the instance completes.
MoveNext( ) MoveNext for custom coroutine
Reset( ) Reset this object
listWaiting(System.Boolean) Lists the waiting method for custom coroutine.
Abort(System.String) Terminate task
Init( ) Initialization before task start
Init(System.Boolean) Initialization before task start
SetInternal( ) Sets the internal.
ResetInternal( ) Resets the internal.
CreateError(System.String) Request management class Create a newly created error task Used on task error
CreateDone(System.String) Request management class Used in conjunction with coroutines to synchronize all asynchronous processing
CreateEmpty(System.String) Request management class Used in conjunction with coroutines to synchronize all asynchronous processing
Dispose(System.Boolean) Destroy task
Dispose( ) Destroy task
GetParentPath( ) Gets the parent path.
Delegation(mTask) Delegation of wait processing
WaitForSeconds(System.Single) Task wait a few seconds
WaitOn(System.Func{mTask,System.Boolean},System.Single) Task to wait while the condition is satisfied If return value is true, wait on task
WaitOn(System.Threading.Tasks.Task,System.Single) Task to wait while the condition is satisfied Respond to async / await and wait until asynchronous processing is complete
InheritProcess(mTask) Inherits the process.
RunNext<T>(FastList{mUniSm.Core.ContinuationTaskInternal},mRunNextMode) Perform the following processing
SetTime(System.Int64) Set the time.
EntryRetry(System.Func{mTask}) Entry to retry process
AddContinuationExecuteAction(mUniSm.Core.ContinuationTaskInternal) Cache the processed action
CloneEmpty<T>(System.String) Create empty Path information and task status are cloned
Clone<T>(System.String,System.Boolean) Create clone Path information and task status are cloned
Apply<T>(<T>@) Apply running mTask object to specified value
Apply<T>(<T>,System.Boolean) Applies the specified source.
OnApplicationPause(System.Boolean) Callback method when the application suspends https://docs.unity3d.com/current/ScriptReference/MonoBehaviour.OnApplicationPause.html
OnApplicationQuit( ) Callback method when the application terminated https://docs.unity3d.com/current/ScriptReference/MonoBehaviour.OnApplicationQuit.html
GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext) Gets the object data.
SetObjectData(System.Object) Sets the object data.

Reference