MediaImporter
public sealed class MediaImporter : AssetImporterImporter for discovering, indexing, and persisting media content in the Asset Inventory catalog.
Methods
Section titled “Methods”
Index(FolderSpec, Asset, bool, bool, bool)
Section titled “Index(FolderSpec, Asset, bool, bool, bool)”public Task Index(FolderSpec spec, Asset attachedAsset = null, bool storeRelativePath = false, bool actAsSubImporter = false, bool skipSubPackages = false)Indexes supported media from a source folder, optionally attaching it to an existing package and storing relative paths.
Parameters
| Name | Type |
|---|---|
spec |
AssetInventory.FolderSpec |
attachedAsset |
AssetInventory.Asset |
storeRelativePath |
System.Boolean |
actAsSubImporter |
System.Boolean |
skipSubPackages |
System.Boolean |
Returns
System.Threading.Tasks.Task
Constructors
Section titled “Constructors”
MediaImporter()
Section titled “MediaImporter()”public MediaImporter()