Okto Embedded WalletBuilt in UI Screens
Show UI Screen via Code
Learn how to manage theme and UI using the Okto SDK.
Methods Overview
Methods | Description |
---|---|
showWidgetModal | Displays the widget modal |
closeModal | Closes the currently open modal |
getTheme | Retrieves the current UI theme |
setTheme | Sets 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 Name | Type | Description |
---|---|---|
result | void | No successful response returned |
Close modal
closeModal()
closes the currently open modal.
Parameters
There are no parameters for this function.
Response
Success Response
Field Name | Type | Description |
---|---|---|
result | void | No successful response returned |
Get theme
getTheme()
retrieves the current UI theme.
Parameters
There are no parameters for this function.
Response
Success Response
Field Name | Type | Description |
---|---|---|
result | Theme | No successful response returned |
Set theme
setTheme(theme)
sets the UI theme based on the provided theme object.
Parameters
Parameter | Type | Description |
---|---|---|
theme | Partial<Theme> | Theme provided to set |
Response
Success Response
Field Name | Type | Description |
---|---|---|
result | void | No successful response returned |