TinyTick logoTinyTick

getCategoryIds

The getCategoryIds method returns an array containing all registered category Ids.

getCategoryIds(): Ids
returnsIds

An array of category Ids.

Example

This example creates categories called network and file. Their Ids are retrieved.

import {createManager} from 'tinytick';

const manager = createManager();
manager.setCategory('network', {maxDuration: 5000});
manager.setCategory('file', {maxDuration: 100});

console.log(manager.getCategoryIds());
// -> ['network', 'file']

Since

v1.0.0