Class RotaryEventExtensions

Definition

Namespace:
ElmSharp.Wearable
Assembly:
ElmSharp.Wearable.dll

The RotaryEventManager serves extension functions for the Rotary event to EvasObject on a device like Galaxy Gear.

C#
Copy
public static class RotaryEventExtensions
Inheritance
object
RotaryEventExtensions

Methods

View Source

Activate(EvasObject)

Activates this object that can take the Rotary event.

Declaration
C#
Copy
public static void Activate(this EvasObject obj)
Parameters
Type Name Description
EvasObject obj

Target object.

View Source

Activate(IRotaryActionWidget)

Activates this Circle widget that can take the Rotary event.

Declaration
C#
Copy
public static void Activate(this IRotaryActionWidget widget)
Parameters
Type Name Description
IRotaryActionWidget widget

Target the Circle widget.

View Source

AddRotaryEventHandler(EvasObject, RotaryEventHandler)

Adds a handler for the Rotary event on a specific EvasObject.

Declaration
C#
Copy
public static void AddRotaryEventHandler(this EvasObject obj, RotaryEventHandler handler)
Parameters
Type Name Description
EvasObject obj

Target EvasObject.

RotaryEventHandler handler

Event handler for the Rotary event.

View Source

Deactivate(EvasObject)

Deactivates this object that is blocked from the Rotary event.

Declaration
C#
Copy
public static void Deactivate(this EvasObject obj)
Parameters
Type Name Description
EvasObject obj

Target object.

View Source

Deactivate(IRotaryActionWidget)

Deactivates this circle widget that is blocked from the Rotary event.

Declaration
C#
Copy
public static void Deactivate(this IRotaryActionWidget widget)
Parameters
Type Name Description
IRotaryActionWidget widget

Target the Circle widget.

View Source

RemoveRotaryEventHandler(EvasObject, RotaryEventHandler)

Removes a handler on a specific EvasObject for the Rotary event.

Declaration
C#
Copy
public static void RemoveRotaryEventHandler(this EvasObject obj, RotaryEventHandler handler)
Parameters
Type Name Description
EvasObject obj

Target EvasObject.

RotaryEventHandler handler

Event handler for Rotary event.