---
title: ImagePlaygroundViewController.Delegate
framework: imageplayground
role: symbol
role_heading: Protocol
path: imageplayground/imageplaygroundviewcontroller/delegate-swift.protocol
---

# ImagePlaygroundViewController.Delegate

An interface you use to receive images and handle events related to an image-generation view controller.

## Declaration

```swift
@objc(ImageGenerationViewControllerDelegate) protocol Delegate : NSObjectProtocol
```

## Overview

Overview Adopt the ImagePlaygroundViewController.Delegate protocol in a custom type and assign that type as the delegate of an ImagePlaygroundViewController object. When you present the view controller, the system interface handles interactions with the person and reports the results back to your delegate object.

## Topics

### Receiving the image

- [imagePlaygroundViewController(_:didCreateImageAt:)](imageplayground/imageplaygroundviewcontroller/delegate-swift.protocol/imageplaygroundviewcontroller(_:didcreateimageat:).md)

### Handling cancellation events

- [imagePlaygroundViewControllerDidCancel(_:)](imageplayground/imageplaygroundviewcontroller/delegate-swift.protocol/imageplaygroundviewcontrollerdidcancel(_:).md)

### Instance Methods

- [imagePlaygroundViewController(_:didCreate:)](imageplayground/imageplaygroundviewcontroller/delegate-swift.protocol/imageplaygroundviewcontroller(_:didcreate:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Processing a generated image

- [delegate](imageplayground/imageplaygroundviewcontroller/delegate-swift.property.md)
