Events Reference
Subscribing to events
import { Events } from 'make-traffic-integration-core';
taskManager.subscribe(Events.TaskClaimSucceed, (task) => {
// handle successful claim
});Unsubscribing
const handler = (task) => { /* ... */ };
taskManager.subscribe(Events.TaskClaimSucceed, handler);
// later, when the component unmounts or the listener is no longer needed:
taskManager.unsubscribe(Events.TaskClaimSucceed, handler);Available events
Event
Trigger
Callback argument
Example — showing a reward notification
Example — handling claim failures
Last updated