> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XPackageChunkAvailabilityCallback

> XPackageChunkAvailabilityCallback

# XPackageChunkAvailabilityCallback

A user-defined callback used by [XPackageEnumerateChunkAvailability](/reference/system/xpackage/functions/xpackageenumeratechunkavailability).

## Syntax

```cpp theme={null}
bool XPackageChunkAvailabilityCallback(  
         void* context,  
         const XPackageChunkSelector* selector,  
         XPackageChunkAvailability availability  
)  
```

### Parameters

*context*   \_In\_\
Type: void\*

The context passed to [XPackageEnumerateChunkAvailability](/reference/system/xpackage/functions/xpackageenumeratechunkavailability).

*selector*   \_In\_\
Type: [XPackageChunkSelector\*](/reference/system/xpackage/structs/xpackagechunkselector)

The selector list passed to [XPackageEnumeratePackages](/reference/system/xpackage/functions/xpackageenumeratepackages).

*availability*   \_In\_\
Type: [XPackageChunkAvailability](/reference/system/xpackage/enums/xpackagechunkavailability)

The availability of the matching chunks.

### Return value

Type: bool

To continue enumerating, return true. To stop enumerating, return false.

## Remarks

**XPackageChunkAvailabilityCallback** is a function callback passed to [XPackageEnumerateChunkAvailability](/reference/system/xpackage/functions/xpackageenumeratechunkavailability). It's invoked for each element of the enumeration. To continue enumerating, return true from this callback; to stop enumerating, return false.

## Requirements

**Header:** XPackage.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XPackage](/reference/system/xpackage/xpackage_members)\
[Streaming Installation and Intelligent Delivery](/build/core-features/common/packaging/overviews/streaming_install-intelligent_delivery)
[XPackageEnumerateChunkAvailability](/reference/system/xpackage/functions/xpackageenumeratechunkavailability)


## Related topics

- [XPackageEnumerateChunkAvailability](/reference/system/xpackage/functions/xpackageenumeratechunkavailability.md)
- [XPackage](/reference/system/xpackage/xpackage_members.md)
- [XPackageChunkAvailability](/reference/system/xpackage/enums/xpackagechunkavailability.md)
- [XPackageFindChunkAvailability](/reference/system/xpackage/functions/xpackagefindchunkavailability.md)
- [Intelligent Delivery: custom tag specifiers](/build/core-features/common/packaging/intelligentdelivery-custom.md)
