---
title: "CFPlugInRegisterFactoryFunction(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfpluginregisterfactoryfunction(_:_:)"
---

# CFPlugInRegisterFactoryFunction(_:_:)

Registers a factory function and its UUID with a CFPlugIn object.

## Declaration

```swift
func CFPlugInRegisterFactoryFunction(_ factoryUUID: CFUUID!, _ func: CFPlugInFactoryFunction!) -> Bool
```

## Parameters

- `factoryUUID`: The CFUUID object representing the factory function to register.
- `func`: The factory function pointer to register.

## Return Value

Return Value true if the factory function was successfully registered, otherwise false.

## Discussion

Discussion This function is used by a plug-in or host when performing dynamic registration.

## See Also

### Registration

- [CFPlugInRegisterFactoryFunctionByName(_:_:_:)](corefoundation/cfpluginregisterfactoryfunctionbyname(_:_:_:).md)
- [CFPlugInRegisterPlugInType(_:_:)](corefoundation/cfpluginregisterplugintype(_:_:).md)
- [CFPlugInUnregisterFactory(_:)](corefoundation/cfpluginunregisterfactory(_:).md)
- [CFPlugInUnregisterPlugInType(_:_:)](corefoundation/cfpluginunregisterplugintype(_:_:).md)
