If the method receives arrays, it will concatenate them into a single array that will be sent to Lampix. The promise will be resolved with a single array of watchers, in the same order that they were added. For instance:
import lampix from'@lampix/core';constdraw= (recognizedObject) => {// Drawing amazing effects};constwatcher= { name:'DepthClassifier', shape:lampix.helpers.rectangle(0,0,window.innerWidth,window.innerHeight),onClassification: (recognizedObjects) => {recognizedObjects.forEach(draw); }};constotherWatchers= { {// ... }, {// ... }}lampix.watchers.add(watcher, otherWatchers).then((registeredWatchers) => {console.log(registeredWatchers.length); // 3 console.log(registeredWatchers); // registered watchers corresponding to watcher, otherWatchers[0] and otherWatchers[1], in this order
});