---
title: AVAssetWritingPlanner.SegmentResult.cancelled
framework: avfoundation
role: symbol
role_heading: Case
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: avfoundation/avassetwritingplanner/segmentresult/cancelled
---

# AVAssetWritingPlanner.SegmentResult.cancelled

Cancel the current segment while allowing future resumption.

## Declaration

```swift
case cancelled
```

## Discussion

Discussion Use this case when the segment should be canceled (for example, due to background task expiration) but you expect to resume the export later. This preserves the ability to restart from this segment in a future export session. This is equivalent to calling cancel() on the segment request. Use Cases Background task expiration handler called System resources unavailable User-initiated pause operation

## See Also

### Completion Options

- [AVAssetWritingPlanner.SegmentResult.success](avfoundation/avassetwritingplanner/segmentresult/success.md)
- [AVAssetWritingPlanner.SegmentResult.successWithState(_:)](avfoundation/avassetwritingplanner/segmentresult/successwithstate(_:).md)
