@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
openSelectContentDialog(guestConnection
:any
,appExtensionId
:string
):Promise
<{Assets
:Asset
[];remainingSelectionCount
:number
; }>
open the content select content add ons dialog
any
the guest connection
string
the app extension id
Promise
<{ Assets
: Asset
[]; remainingSelectionCount
: number
; }>
the selected assets and the total count of left assets
static
setSelectContentSelectedAssets(guestConnection
:any
,assets
:Asset
[],extensionId
:string
):any
set the selected assets
any
the guest connection
Asset
[]
the selected assets
string
the extension id of the content select content add ons, this id will be used to identify the content select content add ons
any