C# Class HoloToolkit.Sharing.ObjectElementAdapter

Allows users of ObjectElements to register to receive event callbacks without having their classes inherit directly from ObjectElementListener
Inheritance: ObjectElementListener
Exibir arquivo Open project: Microsoft/HoloToolkit-Unity

Public Methods

Method Description
ObjectElementAdapter ( )

Initializes a new instance of ObjectElementAdapter.

OnBoolElementChanged ( long elementID, bool newValue ) : void

Throws the BoolChangedEvent.

OnDoubleElementChanged ( long elementID, double newValue ) : void

Throws the DoubleChangedEvent.

OnElementAdded ( Element element ) : void

Throws the ElementAddedEvent.

OnElementDeleted ( Element element ) : void

Throws the ElementDeletedEvent.

OnFloatElementChanged ( long elementID, float newValue ) : void

Throws the FloatChangedEvent.

OnIntElementChanged ( long elementID, int newValue ) : void

Throws the IntChangedEvent.

OnLongElementChanged ( long elementID, long newValue ) : void

Throws the LongChangedEvent.

OnStringElementChanged ( long elementID, XString newValue ) : void

Throws the StringChangedEvent.

Method Details

ObjectElementAdapter() public method

Initializes a new instance of ObjectElementAdapter.

OnBoolElementChanged() public method

Throws the BoolChangedEvent.
public OnBoolElementChanged ( long elementID, bool newValue ) : void
elementID long The Elements id.
newValue bool The new bool value
return void

OnDoubleElementChanged() public method

Throws the DoubleChangedEvent.
public OnDoubleElementChanged ( long elementID, double newValue ) : void
elementID long The Elements id.
newValue double The new double value.
return void

OnElementAdded() public method

Throws the ElementAddedEvent.
public OnElementAdded ( Element element ) : void
element Element The new Element.
return void

OnElementDeleted() public method

Throws the ElementDeletedEvent.
public OnElementDeleted ( Element element ) : void
element Element The deleted Element.
return void

OnFloatElementChanged() public method

Throws the FloatChangedEvent.
public OnFloatElementChanged ( long elementID, float newValue ) : void
elementID long The Elements id.
newValue float The new float value.
return void

OnIntElementChanged() public method

Throws the IntChangedEvent.
public OnIntElementChanged ( long elementID, int newValue ) : void
elementID long The Elements id.
newValue int The new int value.
return void

OnLongElementChanged() public method

Throws the LongChangedEvent.
public OnLongElementChanged ( long elementID, long newValue ) : void
elementID long The Elements id.
newValue long The new long value.
return void

OnStringElementChanged() public method

Throws the StringChangedEvent.
public OnStringElementChanged ( long elementID, XString newValue ) : void
elementID long The Elements id.
newValue XString The new string value.
return void