Edit in GitHubLog an issue

External module: "index"

API used to integrate as solution web application with the unified shell of the Adobe Experience Cloud.

Index#

Interfaces#

Functions#

Functions#

init#

init(bootstrap: function): void

Initializes a solution web application by invoking the bootstrap callback once the runtime is ready.

  1. if the module is already defined, start to bootstrap
  2. otherwise define the global callback that will be called when runtime is ready.

Example:

Copied to your clipboard
1import React from 'react';
2import ReactDOM from 'react-dom';
3import runtime, {init} from '@exc/runtime';
4
5init(() => {
6 ReactDOM.render(<MainComponent runtime={runtime()} />, document.querySelector('#main'));
7});

Parameters:

bootstrap: function

Callback used to bootstrap a solution. The runtime object is passed in as a parameter to this callback.

▸ (runtime: Runtime): void

Parameters:

NameType
runtimeRuntime

Returns: void


runtime#

runtime(): Runtime

Get the runtime object which contains all unified-shell APIs.

Example:

Copied to your clipboard
1import React from 'react';
2import ReactDOM from 'react-dom';
3import excApp from '@exc/runtime';
4
5export class MyComponent extends React.Component {
6 constructor(props) {
7 this.runtime = excApp();
8 }
9}

Returns: Runtime

The runtime object.

  • Privacy
  • Terms of Use
  • Do not sell my personal information
  • AdChoices
Copyright © 2022 Adobe. All rights reserved.