Skip to main content

Class Shell

Less than 1 minute

Class Shell

Declared in packages/sdk/client/dist/types/src/services/shell.d.ts:33

Interface for controlling the shell.

Constructors

constructor(options)

Returns: Shell

Arguments:

options: ShellParams

Properties

Methods

initializeIdentity([options])

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])

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 the shell with the given layout.

Returns: Promise<void>

Arguments:

layout: ShellLayout

options: Omit<LayoutRequest, "layout">

shareIdentity()

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

Returns: Promise<ShareIdentityResult>

Arguments: none

shareSpace(options)

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