<!--
{
  "availability" : [
    "DriverKit: 27.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoDriverKit",
  "identifier" : "/documentation/VideoDriverKit/IOUserVideoCustomProperty/Create",
  "metadataVersion" : "0.1.0",
  "role" : "Static Method",
  "symbol" : {
    "kind" : "Static Method",
    "modules" : [
      "VideoDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserVideoCustomProperty@F@Create#*$@S@IOUserVideoDriver#$@N@VideoDriverKit@S@IOUserVideoObjectPropertyAddress#b#$@N@VideoDriverKit@E@IOUserVideoCustomPropertyDataType#S3_#S"
  },
  "title" : "Create"
}
-->

# Create

A static factory method that allocates and initializes a custom property.

```
static OSSharedPtr<IOUserVideoCustomProperty> Create(IOUserVideoDriver *in_video_driver, IOUserVideoObjectPropertyAddress in_prop_addr, bool in_is_property_settable, IOUserVideoCustomPropertyDataType in_qualifier_data_type, IOUserVideoCustomPropertyDataType in_data_type);
```

## Parameters

`in_video_driver`

The IOUserVideoDriver that owns this object.

`in_prop_addr`

The IOUserVideoObjectPropertyAddress of the custom property.

`in_is_property_settable`

bool value that indicates if the property can be set.

`in_qualifier_data_type`

The IOUserVideoCustomPropertyDataType for custom property’s qualifier data value

`in_data_type`

The IOUserVideoCustomPropertyDataType for custom property’s data value. Value cannot be
IOUserVideoCustomPropertyDataType::None

## Return Value

OSSharedPtr to an IOUserVideoBooleanControl if it was successfully allocated and initialized

## Discussion

If IOUserVideoCustomProperty is subclassed to override behavior, don’t use this method
to allocate or initialize the custom subclass.

---

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)