@adobe/genstudio-uix-sdk / ExtensionRegistrationService
Manages extension registration
new ExtensionRegistrationService():
ExtensionRegistrationService
static
closeAddContextAddOnBar(guestConnection
:any
):any
close the add context add on dialog
any
the guest connection
any
static
openAddContextAddOnBar(guestConnection
:any
,appExtensionId
:string
):any
open the add context add on bar
any
the guest connection
string
the app extension id
any
static
openCreateAddOnBar(guestConnection
:any
,appExtensionId
:string
):any
open the create add on bar
any
the guest connection
string
the app extension id
example:
const ExtensionRegistration = (): React.JSX.Element => {
const init = async (): Promise
any
static
selectContentExtensionSetSelectedAssets(guestConnection
:any
,extensionId
:string
,assets
:Asset
[]):any
set the selected assets
any
the guest connection
string
the extension id of the content select content add ons, this id will be used to identify the content select content add ons
Asset
[]
the selected assets
any
static
selectContentExtensionSync(guestConnection
:any
):Promise
<{selectedAssets
:Asset
[];selectionLimit
:number
; }>
sync the selected assets
any
the guest connection
Promise
<{ selectedAssets
: Asset
[]; selectionLimit
: number
; }>
the selected assets and the total count of left assets