<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreHID",
  "identifier" : "/documentation/CoreHID/HIDElement/Value/init(element:fromBytes:timestamp:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core HID"
    ],
    "preciseIdentifier" : "s:7CoreHID10HIDElementV5ValueV7element9fromBytes9timestampAeC_10Foundation4DataV12_Concurrency15SuspendingClockV7InstantVtcfc"
  },
  "title" : "init(element:fromBytes:timestamp:)"
}
-->

# init(element:fromBytes:timestamp:)

Creates a value for an HID element.

```
init(element: HIDElement, fromBytes: Data, timestamp: SuspendingClock.Instant)
```

## Parameters

`element`

The element associated with this data.

`fromBytes`

The data as an array of bytes.

`timestamp`

The time that the value was created.

## Discussion

The created value can be used to send a request to the associated device to update it’s current value for the element using [`HIDDeviceClient.ProvideElementUpdate`](/documentation/CoreHID/HIDDeviceClient/ProvideElementUpdate).

---

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)