Represents a file resource to include in the iOS Xcode asset catalog, with optional on-demand resource tags and device-specific variants.
A Resource maps a named entry in the Xcode asset catalog to one or more source files on disk. Use the two-parameter constructor when the resource has a single source file. Use the one-parameter constructor together with Resource.BindVariant when you need different files for different device configurations. Use Resource.AddOnDemandResourceTags to mark the resource for on-demand delivery. All methods return the same instance, so calls can be chained.
Additional resources: BuildPipeline, iOS.iOSDeviceRequirement.
| Constructor | Description |
|---|---|
| Resource | Creates a file resource with the specified name, without a source file path. |
| Method | Description |
|---|---|
| AddOnDemandResourceTags | Assigns one or more on-demand resource tags to this resource and returns the same instance for method chaining. Duplicate tags are ignored. |
| BindVariant | Adds a file variant selected by device requirements and returns the same instance for method chaining. |