---
title: "cancelCurrentEvent(withResumptionOffset:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avplayerinterstitialeventcontroller/cancelcurrentevent(withresumptionoffset:)"
---

# cancelCurrentEvent(withResumptionOffset:)

Cancels the playback of all currently playing and scheduled interstitial events, and resumes playback of primary content.

## Declaration

```swift
func cancelCurrentEvent(withResumptionOffset resumptionOffset: CMTime)
```

## Parameters

- `resumptionOffset`: The time offset at which playback of the primary content resumes after interstitial playback finishes.

## Discussion

Discussion When you cancel interstitial events using this method, the resumption offset value that you specify overrides the events’s resumptionOffset value. note: If you call this method during the handling of coinciding interstitial events, the system cancels all events for that time. Calling this method has no impact on schedule events that have dates or times later than this event.

## See Also

### Configuring the event schedule

- [events](avfoundation/avplayerinterstitialeventcontroller/events.md)
- [skipCurrentEvent()](avfoundation/avplayerinterstitialeventcontroller/skipcurrentevent().md)
