Compartir a través de


Intelligent Delivery: OnDemand content

Note

Use of the OnDemand attribute is no longer recommended. Instead, you should consider using Features and Recipes to group content into independent addable and removable groups. Features and Recipes still allow you to specify what content installs by default, just like the OnDemand attribute.

OnDemand chunks allow titles to designate content that's not installed by default but can be installed at the user's request or when the title calls the XPackageInstallChunks method.

To specify a chunk as OnDemand, apply the OnDemand attribute to a chunk in your layout.xml file as shown in the following example.

<Chunk Id="6000" Tags="LevelEditor" OnDemand="true">  

Chunks which include the OnDemand attribute must also include custom tag specifiers so that runtime APIs can reference the associated chunk by tag.

Titles can uninstall OnDemand content by calling the XPackageUninstallChunks method.

See also

Intelligent Delivery