XPackageInstallChunksAsync
Starts the installation of chunks.Syntax
Parameters
packageIdentifier _In_z_Type: char* A string that uniquely identifies the installed package on the disk. For more information about package identifiers, see Manage and license downloadable content (DLC). selectorCount _In_
Type: uint32_t The number of selectors in the selectors parameter. selectors _In_reads_(selectorCount)
Type: XPackageChunkSelector* An array of selectors that specify the chunks to be installed. minimumUpdateIntervalMs _In_
Type: uint32_t The interval between updates, in milliseconds. suppressUserConfirmation _In_
Type: bool If the chunks to be installed exceed a preset size, then a confirmation prompt will be displayed. If suppressUserConfirmation is true, then no prompt will be displayed and the installation will progress as if the user accepted. This lets the game present its own UI. If the game uses this, it should also call XPackageEstimateDownloadSize to get the size that will be presented to the user. XPackageEstimateDownloadSize also returns a Boolean, to indicate whether the size is large enough that a prompt is to be displayed. If a download confirmation is needed, then the game must either show it by using its own UI or let XPackageInstallChunks show it. asyncBlock _Inout_
Type: XAsyncBlock* An XAsyncBlock for monitoring the status of the asynchronous call.
Return value
Type: HRESULT HRESULT success or error code.Remarks
XPackageInstallChunks has an async variant. Installation of chunks might involve prompting the user to accept the download size. This example shows how BigMaps are installed by using the asynchronous APIs:Requirements
Header: XPackage.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesConceptual documentation
See also
XPackageStreaming Installation and Intelligent Delivery
XPackageInstallChunks
