Interactable.AddReceiver<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Event receivers can be used to listen for different events at runtime. This method allows receivers to be dynamically added at runtime.
public:
generic <typename T>
where T : Microsoft::MixedReality::Toolkit::UI::ReceiverBasegcnew() T AddReceiver();
public T AddReceiver<T> () where T : Microsoft.MixedReality.Toolkit.UI.ReceiverBase, new();
member this.AddReceiver : unit -> 'T (requires 'T :> Microsoft.MixedReality.Toolkit.UI.ReceiverBase and 'T : (new : unit -> 'T))
Public Function AddReceiver(Of T As {ReceiverBaseNew}) () As T
Type Parameters
- T
Returns
T
The new event receiver