Preparing search index...

    Service interface for submitting get-assets-by-IDs requests.

        // Resolve IAssetLibraryProvider to access GetAssetsByIdsService.
    const provider = this.pluginSystem.findInterface(
    IAssetLibraryProvider.interfaceId
    ) as IAssetLibraryProvider;
    if (Editor.isNull(provider)) {
    console.log('IAssetLibraryProvider not available');
    return;
    }

    const service = provider.assetsByIdsService;
    console.log('GetAssetsByIdsService obtained from provider');

    // Build request with environment and asset IDs
    const envSetting = new EnvironmentSetting();
    envSetting.environment = Environment.Production;
    envSetting.space = Space.Public;

    const request = new GetAssetsByIdsRequest(envSetting, ['example-asset-id']);
    const response = await service.fetchAsync(request);
    if (response.ok) {
    console.log('Fetch succeeded, data:', response.data);
    } else {
    console.log('Fetch failed or cancelled:', response.cancelled);
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean