Files
NativeScript/nativescript-core/ui/core/control-state-change/control-state-change.d.ts
Nathan Walker da3c0b973d chore: format
2020-07-11 11:01:40 -07:00

19 lines
513 B
TypeScript

/**
* An utility class used for supporting styling infrastructure.
* WARNING: This class is intended for IOS only.
*/
export class ControlStateChangeListener {
/**
* Initializes an instance of ControlStateChangeListener class.
* @param control An instance of the UIControl which state will be watched.
* @param callback A callback called when a visual state of the UIControl is changed.
*/
constructor(
control: any /* UIControl */,
callback: (state: string) => void
);
start();
stop();
}