<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetWritingPlanner/SegmentResult/cancelled",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "s:So21AVAssetWritingPlannerC12AVFoundationE13SegmentResultO9cancelledyA2EmF"
  },
  "title" : "AVAssetWritingPlanner.SegmentResult.cancelled"
}
-->

# AVAssetWritingPlanner.SegmentResult.cancelled

Cancel the current segment while allowing future resumption.

```
case cancelled
```

## 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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)