---
title: PHImageCancelledKey
framework: photos
role: symbol
role_heading: Global Variable
path: photos/phimagecancelledkey
---

# PHImageCancelledKey

A key whose value indicates whether the image request was canceled.

## Declaration

```swift
let PHImageCancelledKey: String
```

## Discussion

Discussion This key provides information about an image loading result in the resultHandler block for methods listed in Requesting Images. The corresponding value is an NSNumber object containing a Boolean value.If you call the cancelImageRequest(_:) method to cancel a request, Photos calls your result handler block with the value true for this key.

## See Also

### Constants

- [PHImageResultIsInCloudKey](photos/phimageresultisincloudkey.md)
- [PHImageResultIsDegradedKey](photos/phimageresultisdegradedkey.md)
- [PHImageResultRequestIDKey](photos/phimageresultrequestidkey.md)
- [PHImageErrorKey](photos/phimageerrorkey.md)
