---
title: "load(_:)"
framework: Core Image
role: symbol
role_heading: Instance Method
path: "coreimage/cipluginregistration/load(_:)"
---

# load(_:)

Loads and initializes an image unit, performing custom tasks as needed.

## Declaration

```swift
func load(_ host: UnsafeMutableRawPointer!) -> Bool
```

## Parameters

- `host`: Reserved for future use.

## Return Value

Return Value Returns true if the image unit is successfully initialized

## Discussion

Discussion The load method is called once by the host to initialize the image unit when the first filter in the image unit is instantiated. The method provides the image unit with an opportunity to perform custom initialization, such as a registration check.

## See Also

### Related Documentation

- [Core Image Programming Guide](apple-archive/documentation/GraphicsImaging/Conceptual/CoreImaging/ci_intro.md)
- [Image Unit Tutorial](apple-archive/documentation/GraphicsImaging/Conceptual/ImageUnitTutorial/Introduction.md)
