@adobe/genstudio-extensibility-sdk
@adobe/genstudio-extensibility-sdk / FragmentSwapExtensionService
Manages swap field extension functionality for swapping field content
new FragmentSwapExtensionService():
FragmentSwapExtensionService
staticgetExperience(connection:any):Promise<Experience>
Gets the current field context from the host
any
The guest connection to the host
Promise<Experience>
Promise
Error if connection is missing
staticgetGenerationContext(connection:any):Promise<GenerationContext>
Gets the generation context from the host
any
The guest connection to the host
Promise<GenerationContext>
Promise
Error if connection is missing
staticsetSwapValue(connection:any,value:string):void
Sets the swap value for the field content
any
The guest connection to the host
string
The new value to write into the field
void
Error if connection is missing