<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaExtension",
  "identifier" : "/documentation/MediaExtension/MESampleCursor/stepInDecodeOrder(by:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MediaExtension"
    ],
    "preciseIdentifier" : "c:objc(pl)MESampleCursor(im)stepInDecodeOrderByCount:completionHandler:"
  },
  "title" : "stepInDecodeOrder(by:completionHandler:)"
}
-->

# stepInDecodeOrder(by:completionHandler:)

Moves the cursor a given number of samples in decode order.

```
func stepInDecodeOrder(by stepCount: Int64, completionHandler: @escaping @Sendable (Int64, (any Error)?) -> Void)
```

## Parameters

`stepCount`

The number of samples to move. If positive, the cursor steps forward. If negative, the cursor steps backward.

`completionHandler`

The completion block to execute when the move operation finishes.

---

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)