C# Class Tango.TangoEventListener

Abstract base class that can be used to automatically register for onEventAvailable callbacks from the Tango Service.
Afficher le fichier Open project: vmohan7/Navi Class Usage Examples

Méthodes publiques

Méthode Description
RegisterOnTangoEventAvailable ( OnTangoEventAvailableEventHandler handler ) : void

Registers the on tango event available.

SendIfTangoEventAvailable ( bool usingUXLibrary ) : void

Sends if tango event available.

SetCallback ( ) : void

Sets the callback.

UnregisterOnTangoEventAvailable ( OnTangoEventAvailableEventHandler handler ) : void

Unregisters the on tango event available.

Méthodes protégées

Méthode Description
_onEventAvailable ( IntPtr callbackContext, TangoEvent tangoEvent ) : void

Handle the callback sent by the Tango Service when a new event is issued.

Method Details

RegisterOnTangoEventAvailable() public méthode

Registers the on tango event available.
public RegisterOnTangoEventAvailable ( OnTangoEventAvailableEventHandler handler ) : void
handler OnTangoEventAvailableEventHandler Handler.
Résultat void

SendIfTangoEventAvailable() public méthode

Sends if tango event available.
public SendIfTangoEventAvailable ( bool usingUXLibrary ) : void
usingUXLibrary bool If set to true using UX library.
Résultat void

SetCallback() public méthode

Sets the callback.
public SetCallback ( ) : void
Résultat void

UnregisterOnTangoEventAvailable() public méthode

Unregisters the on tango event available.
public UnregisterOnTangoEventAvailable ( OnTangoEventAvailableEventHandler handler ) : void
handler OnTangoEventAvailableEventHandler Handler.
Résultat void

_onEventAvailable() protected méthode

Handle the callback sent by the Tango Service when a new event is issued.
protected _onEventAvailable ( IntPtr callbackContext, TangoEvent tangoEvent ) : void
callbackContext System.IntPtr Callback context.
tangoEvent TangoEvent Tango event.
Résultat void