Class RotaryEventExtensions

Definition

Namespace:
ElmSharp.Wearable
Assembly:
ElmSharp.Wearable.dll
API Level:
preview

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

C#
Copy
public static class RotaryEventExtensions : object
Inheritance
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.

API Level: preview
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.

API Level: preview
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.

API Level: preview
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.

API Level: preview
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.

API Level: preview
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.

API Level: preview