Class SwitchExtension
Definition
- Namespace:
- Tizen.NUI.Components.Extension
- Assembly:
- Tizen.NUI.Components.dll
The SwitchExtension class allows developers to access the Switch's components and extend their behavior in various states.
public abstract class SwitchExtension : ButtonExtension
- Inheritance
- Derived
Methods
View SourceOnSelectedChanged(Switch)
Called when the Switch's selection has changed.
Declaration
public virtual void OnSelectedChanged(Switch switchButton)
Parameters
Type | Name | Description |
---|---|---|
Switch | switchButton | The Switch instance that the extension currently applied to. |
OnTrackOrThumbResized(Switch, ImageView, ImageView)
Called when the Switch's track or thumb resized.
Declaration
public virtual void OnTrackOrThumbResized(Switch switchButton, ImageView track, ImageView thumb)
Parameters
Type | Name | Description |
---|---|---|
Switch | switchButton | |
ImageView | track | |
ImageView | thumb |
ProcessThumb(Switch, ref ImageView)
Perform further processing of the switch thumb.
Declaration
public bool ProcessThumb(Switch switchButton, ref ImageView thumb)
Parameters
Type | Name | Description |
---|---|---|
Switch | switchButton | The switch instance that the extension currently applied to. |
ImageView | thumb | The reference of the switch thumb. |
Returns
Type | Description |
---|---|
bool |