Compartir a través de


XPackageChunkAvailabilityCallback

A user-defined callback used by XPackageEnumerateChunkAvailability.

Syntax

bool XPackageChunkAvailabilityCallback(  
         void* context,  
         const XPackageChunkSelector* selector,  
         XPackageChunkAvailability availability  
)  

Parameters

context   _In_
Type: void*

The context passed to XPackageEnumerateChunkAvailability.

selector   _In_
Type: XPackageChunkSelector*

The selector list passed to XPackageEnumeratePackages.

availability   _In_
Type: 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. 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
Streaming Installation and Intelligent Delivery XPackageEnumerateChunkAvailability