<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AddressBook",
  "identifier" : "/documentation/AddressBook/ABPerson/beginLoadingImageData(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Address Book",
      "AddressBook"
    ],
    "preciseIdentifier" : "c:objc(cs)ABPerson(im)beginLoadingImageDataForClient:"
  },
  "title" : "beginLoadingImageData(for:)"
}
-->

# beginLoadingImageData(for:)

Starts an asynchronous fetch for image data in all locations

```
func beginLoadingImageData(for client: (any ABImageClient)!) -> Int
```

## Parameters

`client`

The object to be notified when the image finishes loading.

## Return Value

A nonzero tag for tracking. This tag is used by the [`cancelLoadingImageData(forTag:)`](/documentation/AddressBook/ABPerson/cancelLoadingImageData(forTag:)) method to cancel a fetch operation.

## Discussion

The `client` object should conform to the `ABImageClient` protocol. A [`consumeImageData(_:forTag:)`](/documentation/AddressBook/ABImageClient/consumeImageData(_:forTag:)) message is sent to `client` when the fetch is done. Use the [`cancelLoadingImageData(forTag:)`](/documentation/AddressBook/ABPerson/cancelLoadingImageData(forTag:)) method if you need to cancel an asynchronous fetch.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)