DispatchPayload1
Overloads the generic dispatcher to call back a method with a single payload More...
Inherits from:
UnityEngine.XR.MagicLeap.Native.MLThreadDispatch.Dispatcher
Detailed Description
private template <T > class DispatchPayload1 : Dispatcher
Template Parameters:
TPayload type
Public Methods
override void Dispatch
Dispatches the previously stored callback with the supplied payload
public override void Dispatch()
DispatchPayload1
Initializes a new instance of the DispatchPayload1<T> class. with the supplied callback and payload
public DispatchPayload1(
T payload,
System.Action< T > action
)
Parameters
| Type | Name | Description |
|---|---|---|
| T | payload | Payload to dispatch |
| System.Action< T > | action | Method to call back |