Languages

Menu
Sites
Language
Slider, difference between IAdjustmentEventListener and ISliderEventListener

Hey,

What is the purpose of having (seemingly) two identical(?) listener for a Slider change?

ISliderEventListener 
The ISliderEventListener interface is the listener interface for receiving Slider events, which are fired when the slider knob moves
virtual void  OnSliderBarMoved (Tizen::Ui::Controls::Slider &source, int value)=0

IAdjustmentEventListener 
The IAdjustmentEventListener interface is the listener interface for receiving adjustment events, which are fired when the knob of a Slider moves
virtual void  OnAdjustmentValueChanged (const Tizen::Ui::Control &source, int adjustment)=0

Ok, I see one gets a value, other adjustment, but the value can always be read out from the slider, so using the ISliderEventListener makes not much sense.

Or I miss something?

Responses

2 Replies
Zoltan Puski

I think I found the answer,

ISliderEventListener is called when the knob is touched and moved

IAdjustmentEventListener is called when user clicks directly on the slider bar, and not moves the knob to there (so direct adjust the knob to a position)

Alex Ashirov

Hi,

It is really not quite clear from the help what is a difference between these 2 listeners. Actually they are called at difference time. OnSliderBarMoved() event is fired continuously when the knob is moved until the user releases the knob. But the OnAdjustmentValueChanged() event fired once when the user releases the knob.