# OHOS::UISlider::UISliderEventListener ## **Overview** **Related Modules:** [Graphic](Graphic.md) **Description:** Represents the listener for a slider change. This is an inner class of **[UISlider](OHOS-UISlider.md)** used to listen for slider events and invoke the callback function. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Public Member Functions

Public Member Function Name

Description

~UISliderEventListener ()

virtual 

A destructor used to delete the UISliderEventListener instance.

OnChange (int16_t value)

virtual void 

Called when the slider is dragged or clicked. This is a virtual function, which needs your implementation.

OnRelease (int16_t value)

virtual void 

Called when the slider is released. This is a virtual function, which needs your implementation.

operator new (size_t size)

void * 

Overrides the new function.

operator delete (void *p)

void 

Overrides the delete function.