Interface: INoteManagerEventApi

Remarks

Partial INoteManager interface that defines the event handler API methods

Methods

offadd()

offadd(addCallback, refObject?): void

Removes a listener to the 'add' event that was added by a call to onadd or onaddonce.

Parameters

addCallback: NoteSetListener_add

Event listener to unregister

refObject?: any

Returns

void


offchange()

offchange(changeCallback, refObject?): void

Removes a listener to the 'change' event that was added by a call to onchange or onchangeonce.

Parameters

changeCallback: NoteSetListener_change

Event listener to unregister

refObject?: any

Returns

void


offremove()

offremove(removeCallback, refObject?): void

Removes a listener to the 'remove' event that was added by a call to onremove or onremoveonce.

Parameters

removeCallback: NoteSetListener_remove

Event listener to unregister

refObject?: any

Returns

void


onadd()

onadd(addCallback, refObject?, ...args?): NoteSetListener_add

Adds a listener to the 'add' event. The listener will be notified of add events until offadd is called.

Parameters

addCallback: NoteSetListener_add

Event listener to register

refObject?: any

• ...args?: any[]

Returns

NoteSetListener_add


onaddonce()

onaddonce(addCallback, refObject?, ...args?): NoteSetListener_add

Adds a listener to the 'add' event. The listener will be notified of the first add event, then will not be called again.

Parameters

addCallback: NoteSetListener_add

Event listener to register

refObject?: any

• ...args?: any[]

Returns

NoteSetListener_add


onchange()

onchange(changeCallback, refObject?, ...args?): NoteSetListener_change

Adds a listener to the 'change' event. The listener will be notified of change events until offchange is called.

Parameters

changeCallback: NoteSetListener_change

Event listener to register

refObject?: any

• ...args?: any[]

Returns

NoteSetListener_change


onchangeonce()

onchangeonce(changeCallback, refObject?, ...args?): NoteSetListener_change

Adds a listener to the 'change' event. The listener will be notified of the first change event, then will not be called again.

Parameters

changeCallback: NoteSetListener_change

Event listener to register

refObject?: any

• ...args?: any[]

Returns

NoteSetListener_change


onremove()

onremove(removeCallback, refObject?, ...args?): NoteSetListener_remove

Adds a listener to the 'remove' event. The listener will be notified of remove events until offremove is called.

Parameters

removeCallback: NoteSetListener_remove

Event listener to register

refObject?: any

• ...args?: any[]

Returns

NoteSetListener_remove


onremoveonce()

onremoveonce(removeCallback, refObject?, ...args?): NoteSetListener_remove

Adds a listener to the 'remove' event. The listener will be notified of the first remove event, then will not be called again.

Parameters

removeCallback: NoteSetListener_remove

Event listener to register

refObject?: any

• ...args?: any[]

Returns

NoteSetListener_remove