NativeScript 9.1 Released → V8 14.9, Vite 8 HMR, built for rapid agentic visual iteration
Dig in
ts
function notifyEvent(
   object: Object, 
   name: string, 
   data?: any): void;

Defined in: trace/index.d.ts:90

Notifies all the attached listeners for an event that has occurred in the sender object.

Parameters ​

ParameterTypeDescription
objectObjectThe Object instance that raised the event.
namestringThe name of the raised event.
data?anyAn optional parameter that passes the data associated with the event.

Returns ​

void

Previous
isEnabled