---
title: "CFPlugInIsLoadOnDemand(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfpluginisloadondemand(_:)"
---

# CFPlugInIsLoadOnDemand(_:)

Determines whether or not a plug-in is loaded on demand.

## Declaration

```swift
func CFPlugInIsLoadOnDemand(_ plugIn: CFPlugIn!) -> Bool
```

## Parameters

- `plugIn`: The plug-in to query.

## Return Value

Return Value true if the plug-in is loaded only when a client requests an instance of a supported type, otherwise  false.

## Discussion

Discussion Plug-ins that do static registration are load on demand by default. Plug-ins that do dynamic registration are not load on demand by default.

## See Also

### CFPlugIn Miscellaneous Functions

- [CFPlugInAddInstanceForFactory(_:)](corefoundation/cfpluginaddinstanceforfactory(_:).md)
- [CFPlugInFindFactoriesForPlugInType(_:)](corefoundation/cfpluginfindfactoriesforplugintype(_:).md)
- [CFPlugInFindFactoriesForPlugInTypeInPlugIn(_:_:)](corefoundation/cfpluginfindfactoriesforplugintypeinplugin(_:_:).md)
- [CFPlugInGetBundle(_:)](corefoundation/cfplugingetbundle(_:).md)
- [CFPlugInGetTypeID()](corefoundation/cfplugingettypeid().md)
- [CFPlugInRemoveInstanceForFactory(_:)](corefoundation/cfpluginremoveinstanceforfactory(_:).md)
- [CFPlugInSetLoadOnDemand(_:_:)](corefoundation/cfpluginsetloadondemand(_:_:).md)
