Interface ISetSwitchable
interface ISetSwitchable
Extends com.amazon.apmf.IStandard
This interface allows describing a switchable component. It provides methods
for providing the current state of the component (on or off) and providing
text labels which describe the on and off states. Examples of these text
labels might be the typical “on” and “off”, but might also be something like
“enabled” and “disabled”.
Methods
on()
Set the on state of this switchable component.voidon(boolon)
Parameters
on
bool — Required
true if this component is currently on.
textOn()
Set the text that describes the “on” state of this component.voidtextOn(stringtext)
Parameters
text
string — Required
the text describing the “on” state.
textOff()
Set the text that describes the “off” state of this component.voidtextOff(stringtext)
Parameters
text
string — Required
the text describing the “off” state.
toggleFunction()
Set a function to call when clients request to toggle this switchable component.voidtoggleFunction(ICallbackFunction*toggleFunction)
Parameters
toggleFunction
ICallbackFunction* — Required
the function to call.

