genstudio-extensibility-sdk

@adobe/genstudio-extensibility-sdk


@adobe/genstudio-extensibility-sdk / SelectContentExtensionService

Class: SelectContentExtensionService

Constructors

new SelectContentExtensionService()

new SelectContentExtensionService(): SelectContentExtensionService

Returns

SelectContentExtensionService

Methods

setSelectedAssets()

static setSelectedAssets(connection: any, extensionId: string, assets: Asset[]): void

Set the selected assets

Parameters

connection

any

extensionId

string

the extension id of the content select content add ons

assets

Asset[]

the selected assets

Returns

void


sync()

static sync(connection: any): Promise<{ selectedAssets: Asset[]; selectionLimit: number; }>

Sync the selected assets

Parameters

connection

any

The guest connection to the host

Returns

Promise<{ selectedAssets: Asset[]; selectionLimit: number; }>

the current selected assets and the total count of left assets