---
title: PHImageRequestID
framework: photos
role: symbol
role_heading: Type Alias
path: photos/phimagerequestid
---

# PHImageRequestID

A numeric identifier for an asynchronous image request.

## Declaration

```swift
typealias PHImageRequestID = Int32
```

## Discussion

Discussion Pass this identifier to the cancelImageRequest(_:) method if you need to cancel a request before it completes.

## See Also

### Canceling a Request

- [cancelImageRequest(_:)](photos/phimagemanager/cancelimagerequest(_:).md)
- [PHInvalidImageRequestID](photos/phinvalidimagerequestid.md)
