> ## 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.

# XAppCaptureMetadataPurgedCallback

> XAppCaptureMetadataPurgedCallback

# XAppCaptureMetadataPurgedCallback

Defines the callback function to be called when a metadata purge occurs.

## Syntax

```cpp theme={null}
void XAppCaptureMetadataPurgedCallback(  
         void* context  
)  
```

### Parameters

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

Object which provides necessary information for the execution of the callback function. Usually the calling object.

### Return value

Type: void

## Remarks

Register the callback function defined here with [XAppCaptureRegisterMetadataPurged](/reference/system/xappcapture/functions/xappcaptureregistermetadatapurged) so that it can be called when metadata is purged. This will allow you to reassess the amount of metadata the tile is adding to the capture. You should primarily use this function during development and testing to make sure that your title is not adding more than the allowed amount of metadata to a capture. It was not intended to be used to change game behavior while the title is running.

## Requirements

**Header:** XAppCapture.h

**Library:** xgameruntime.lib

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

## See also

[GameDVR Overview](/build/console-features/game-dvr/gamedvr-broadcast)\
[XAppCapture Members](/reference/system/xappcapture/xappcapture_members)\
[XAppCaptureRegisterMetadataPurged](/reference/system/xappcapture/functions/xappcaptureregistermetadatapurged)


## Related topics

- [AppCaptureRegisterMetadataPurged](/reference/system/xappcapture/functions/xappcaptureregistermetadatapurged.md)
- [XAppCapture](/reference/system/xappcapture/xappcapture_members.md)
- [XAppCaptureUnRegisterMetadataPurged](/reference/system/xappcapture/functions/xappcaptureunregistermetadatapurged.md)
- [XAppCaptureMetadataRemainingStorageBytesAvailable](/reference/system/xappcapture/functions/xappcapturemetadataremainingstoragebytesavailable.md)
- [XAppCaptureMetadataPriority](/reference/system/xappcapture/enums/xappcapturemetadatapriority.md)
