Okto Embedded WalletBuilt in UI Screens

Show UI Screen via Code

Learn how to manage theme and UI using the Okto SDK.

Methods Overview

MethodsDescription
showWidgetModalDisplays the widget modal
closeModalCloses the currently open modal
getThemeRetrieves the current UI theme
setThemeSets the UI theme based on the provided theme object

Show modal

showWidgetModal() displays the widget modal.

Parameters

There are no parameters for this function.

Response

Success Response

Field NameTypeDescription
resultvoidNo successful response returned

Close modal

closeModal() closes the currently open modal.

Parameters

There are no parameters for this function.

Response

Success Response

Field NameTypeDescription
resultvoidNo successful response returned

Get theme

getTheme() retrieves the current UI theme.

Parameters

There are no parameters for this function.

Response

Success Response

Field NameTypeDescription
resultThemeNo successful response returned

Set theme

setTheme(theme) sets the UI theme based on the provided theme object.

Parameters

ParameterTypeDescription
theme Partial<Theme>Theme provided to set

Response

Success Response

Field NameTypeDescription
resultvoidNo successful response returned

On this page