TinyBase logoTinyBase

HasSliceListener

The HasSliceListener type describes a function that is used to listen to Slices being added to or removed from an Index.

(
  indexes: Indexes,
  indexId: Id,
  sliceId: Id,
  hasSlice: boolean,
): void
TypeDescription
indexesIndexes

A reference to the Indexes object that changed.

indexIdId

The Id of the Index that changed.

sliceIdId

The Id of the Slice that changed.

hasSliceboolean

Whether the Slice now exists.

returnsvoid

This has no return value.

A HasSliceListener is provided when using the addHasSliceListener method. See that method for specific examples.

When called, a HasSliceListener is given a reference to the Indexes object, the Id of the Index that changed, the Id of the Slice that changed, and whether it now exists.

Since

v9.1.0