---
title: "CFPlugInGetBundle(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfplugingetbundle(_:)"
---

# CFPlugInGetBundle(_:)

Returns a plug-in’s bundle.

## Declaration

```swift
func CFPlugInGetBundle(_ plugIn: CFPlugIn!) -> CFBundle!
```

## Parameters

- `plugIn`: The plug-in whose bundle to obtain.

## Return Value

Return Value The bundle for plugIn. Ownership follows the The Get Rule.

## Discussion

Discussion You should always use this function to get a plug-in’s bundle. Never attempt to access the plug-in directly as a bundle.

## See Also

### CFPlugIn Miscellaneous Functions

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