cleandocs

addOnUISdk.app.devFlags

This object contains flags which can be used to simulate certain behavior during development.

addOnUISdk.app.devFlags are provided for testing purposes only, and thus can only be used during the development phase.

Methods

simulateFreeUser

Simulate APIs as a free user.

Signature

simulateFreeUser: boolean

Return Value

boolean representing the current value of the flag.

Example

import addOnUISdk from "https://new.express.adobe.com/static/add-on-sdk/sdk.js";

addOnUISdk.ready.then(async () => {
  addOnUISdk.app.devFlags.simulateFreeUser = true;
});

See this export content use case example, which uses this flag for more details.