Interface IActionScheduler
Unity Service Scheduler to schedule actions on main thread.
Namespace: Unity.Services.Core.Scheduler.Internal
Syntax
public interface IActionScheduler : IServiceComponentMethods
CancelAction(Int64)
Removes all instances of the given action from the queue
Declaration
void CancelAction(long actionId)Parameters
| Type | Name | Description | 
|---|---|---|
| Int64 | actionId | unique Id for action to be canceled. | 
ScheduleAction(Action, Double)
Schedules the action to be invoked on the main thead, on the first frame that occurs after the given delay in seconds
Declaration
long ScheduleAction(Action action, double delaySeconds = 0)Parameters
| Type | Name | Description | 
|---|---|---|
| Action | action | Action to be scheduled. | 
| Double | delaySeconds | time in seconds to delay execute action | 
Returns
| Type | Description | 
|---|---|
| Int64 | unique Id for the scheduled action |