Bell Ringing

If the bell sound is curently played.

When the user presses the bell button, it changes to true and back to false when it finished playing.

const onBellRingingChange = (value: boolean, timestamp?: Date) => {
    console.log(value, timestamp);
};

COBI.hub.bellRinging.subscribe(onBellRingingChange);
COBI.hub.bellRinging.unsubscribe(onBellRingingChange);

Last updated