Skip to main content
Version: 12 Dec 2024

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:

  • T Payload 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

TypeNameDescription
TpayloadPayload to dispatch
System.Action< T >actionMethod to call back