snap_cancelBackgroundEvent
Description
Cancel a background event created by
snap_scheduleBackgroundEvent.
Parameters
id
stringrequiredThe ID of the background event to cancel.
Example
const id = snap.request({
method: "snap_scheduleBackgroundEvent",
params: {
// ...
},
});
// Later, when you want to cancel the background event:
snap.request({
method: "snap_cancelBackgroundEvent",
params: { id },
});