Skip to main content

Class Shell

Less than 1 minute

Class Shell

Declared in packages/sdk/client/src/services/shell.ts:46open in new window

Interface for controlling the shell.

Constructors

constructor(options)open in new window

Returns: Shell

Arguments:

options: ShellParams

Properties

Methods

initializeIdentity(options)open in new window

Create a new identity. Opens the shell and starts the identity creation flow based on the given options.

Returns: Promise<InitializeIdentityResult>

Arguments:

options: object

joinSpace(options)open in new window

Join an existing space. Opens the shell and starts the space join flow based on the given options.

Returns: Promise<JoinSpaceResult>

Arguments:

options: object

open(layout, options)open in new window

Open the shell with the given layout.

Returns: Promise<void>

Arguments:

layout: ShellLayout

options: Omit<LayoutRequest, "layout">

shareIdentity()open in new window

Invite a new device to join the current identity. Opens the shell and presents a device invitation.

Returns: Promise<ShareIdentityResult>

Arguments: none

shareSpace(options)open in new window

Invite new members to join the current space. Opens the shell to the specified space, showing current members and allowing new members to be invited.

Returns: Promise<ShareSpaceResult>

Arguments:

options: object