public interface OnToggledListener
Created by Angad Singh on 28/1/18.
Interface definition for a callback to be invoked when a digital switch is either on/off.This is a event listener
whose event method is onSwitched(ToggleableView, boolean).
| Modifier and Type | Method and Description |
|---|---|
void |
onSwitched(ToggleableView toggleableView,
boolean isOn)
Called when a view changes it's state.
|
void onSwitched(ToggleableView toggleableView, boolean isOn)
toggleableView - The view which either is on/off.isOn - The on/off state of switch, true when switch turns on.