NativeScript 9.1 Released → V8 14.9, Vite 8 HMR, built for rapid agentic visual iteration
Dig in

Defined in: ui/core/control-state-change/index.d.ts:7

An utility class used for supporting styling infrastructure. WARNING: This class is intended for IOS only.

Constructors ​

Constructor ​

ts
new ControlStateChangeListener(
   control: any, 
   states: string[], 
   callback: ControlStateChangeListenerCallback): ControlStateChangeListener;

Defined in: ui/core/control-state-change/index.d.ts:13

Initializes an instance of ControlStateChangeListener class.

Parameters ​

ParameterTypeDescription
controlanyAn instance of the UIControl which state will be watched.
statesstring[]-
callbackControlStateChangeListenerCallbackA callback called when a visual state of the UIControl is changed.

Returns ​

ControlStateChangeListener

Methods ​

start() ​

ts
start(): any;

Defined in: ui/core/control-state-change/index.d.ts:15

Returns ​

any


stop() ​

ts
stop(): any;

Defined in: ui/core/control-state-change/index.d.ts:16

Returns ​

any

Previous
ContentView