Controller EventsΒΆ

class Leap::LeapEventArgs

A generic object with no arguments beyond the event type.

Since
3.0

class Leap::DeviceEventArgs

Dispatched when a device is plugged in.

Provides the device as an argument.

Since
3.0

class Leap::ConfigChangeEventArgs

Dispatched when a configuration change is completed.

Provides the configuration key, whether the change was successful, and the id of the original change request.

Since
3.0

class Leap::ConnectionEventArgs

Dispatched when the connection is established.

Since
3.0

class Leap::ConnectionLostEventArgs

Dispatched when the connection is lost.

Since
3.0

class Leap::DistortionEventArgs

Dispatched when the image distortion map changes.

Provides the new distortion map as an argument.

Since
3.0

class Leap::ImageEventArgs

Dispatched when a requested Image is ready.

Provides the Image object as an argument.

Since
3.0

class Leap::ImageRequestFailedEventArgs

Dispatched when a image request cannot be fulfilled.

Provides the requested frame id and image type of the request that failed.

Since
3.0

Public Functions

ImageRequestFailedEventArgs(Int64 frameId, Image.ImageType imageType, Image.RequestFailureReason reason, string message, Int64 requiredBufferSize)

Dispatched when a image request cannot be fulfilled.

Provides the requested frame id and image type of the request that failed, as well as the reason for the failure, and in the case of an insufficient buffer, the required size of the image buffer.

Since
3.0

class Leap::LogEventArgs

Dispatched when loggable events are generated by the service and the service connection code.

Provides the severity rating, log text, and timestamp as arguments.

Since
3.0

class Leap::PolicyEventArgs

Dispatched when a policy change is complete.

Provides the current and previous policies as arguments.

Since
3.0

class Leap::SetConfigResponseEventArgs

Dispatched when a configuration change is completed.

Provides the configuration key, whether the change was successful, and the id of the original change request.

Since
3.0

LeapEvent enum

An enumeration defining the types of Leap Motion events.

Since
3.0

Values:

  • EVENT_CONNECTION -

    A connection event has occurred.

  • EVENT_CONNECTION_LOST -

    The connection with the service has been lost.

  • EVENT_DEVICE -

    A device event has occurred.

  • EVENT_DEVICE_FAILURE -

    A device failure event has occurred.

  • EVENT_DEVICE_LOST -

    Event asserted when the underlying device object has been lost.

  • EVENT_POLICY_CHANGE -

    A change in policy occurred.

  • EVENT_CONFIG_RESPONSE -

    Response to a Config value request.

  • EVENT_CONFIG_CHANGE -

    Success response to a Config value change.

  • EVENT_FRAME -

    A tracking frame has been received.

  • EVENT_INTERNAL_FRAME -

    An internal tracking frame has been received.

  • EVENT_IMAGE -

    A requested image is available.

  • EVENT_IMAGE_REQUEST_FAILED -

    A requested image could not be provided.

  • EVENT_DISTORTION_CHANGE -

    The distortion matrix used for image correction has changed.

  • EVENT_LOG_EVENT -

    A diagnostic event has occured.

  • EVENT_INIT -
  • EVENT_DROPPED_FRAME -