Since: API Level 2.5
public static interface

RotarySelector.OnDialTriggerListener

com.droidux.pack.commons.widget.RotarySelector.OnDialTriggerListener

Class Overview

Interface definition for a callback to be invoked when the dial is "triggered" by rotating it one way or the other.

Summary

Constants
int LEFT_HANDLE The dial was triggered because the user grabbed the left handle, and rotated the dial clockwise.
int RIGHT_HANDLE The dial was triggered because the user grabbed the right handle, and rotated the dial counterclockwise.
Public Methods
abstract void onDialTrigger(View v, int whichHandle)
Called when the dial is triggered.
abstract void onGrabbedStateChange(View v, int grabbedState)
Called when the "grabbed state" changes (such as when the user either grabs or releases one of the handles).

Constants

public static final int LEFT_HANDLE

Since: API Level 2.5

The dial was triggered because the user grabbed the left handle, and rotated the dial clockwise.

Constant Value: 1 (0x00000001)

public static final int RIGHT_HANDLE

Since: API Level 2.5

The dial was triggered because the user grabbed the right handle, and rotated the dial counterclockwise.

Constant Value: 2 (0x00000002)

Public Methods

public abstract void onDialTrigger (View v, int whichHandle)

Since: API Level 2.5

Called when the dial is triggered.

Parameters
v The view that was triggered
whichHandle Which "dial handle" the user grabbed, either LEFT_HANDLE, RIGHT_HANDLE.

public abstract void onGrabbedStateChange (View v, int grabbedState)

Since: API Level 2.5

Called when the "grabbed state" changes (such as when the user either grabs or releases one of the handles).

Parameters
v the view that was triggered
grabbedState the new state: either NOTHING_GRABBED, LEFT_HANDLE_GRABBED, or RIGHT_HANDLE_GRABBED.