<!--
{
  "availability" : [
    "tvOS: 12.0.0 - 18.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "TVMLKit",
  "identifier" : "/documentation/TVMLKit/TVPlaybackEventMarshaling/processReturnValue(value:in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "TVMLKit"
    ],
    "preciseIdentifier" : "c:objc(pl)TVPlaybackEventMarshaling(im)processReturnJSValue:inContext:"
  },
  "title" : "processReturnValue(value:in:)"
}
-->

# processReturnValue(value:in:)

Converts a JavaScript value into a value that is readable in Swift or Objective-C.

```
optional func processReturnValue(value: JSValue, in jsContext: JSContext)
```

## Parameters

`value`

A JavaScript value returned by the dispatch event.

`jsContext`

The JavaScript context for the value.

## Discussion

---

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)