UNPKG

@nativescript/core

Version:

A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.

18 lines (15 loc) 624 B
export type ControlStateChangeListenerCallback = (state: string, add: boolean) => void; /** * 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 */, states: string[], callback: ControlStateChangeListenerCallback); start(); stop(); }