deviceSettings
Device settings
It is recommended to modify only one property when using it, as it needs to be confirmed on the device.
const result = await HardwareSDK.deviceSettings(connectId, params);
Params
language
— optionalstring
Device language, ISO 639-1 codeslabel
— optionalstring
Device nameusePassphrase
— optionalboolean
Open passphrase or nothomescreen
— optionalstring
Change homescreen by hex stringautoLockDelayMs
— optionalnumber
Auto lock time in msdisplayRotation
— optionalnumber
In degrees from NorthpassphraseAlwaysOnDevice
— optionalboolean
Do not prompt for passphrase, enforce device entrysafetyChecks
— optionalstring
Safety check level, set to Prompt to limit path namespace enforcement0: Strict 1: PromptAlways 2: PromptTemporarily
experimentalFeatures
— optionalboolean
Enable experimental message types
Example
HardwareSDK.deviceSettings(connectId, {
label: 'My OneKey Wallet'
});
Result
{
success: true,
payload: {
message: string
}
}
Error
{
success: false,
payload: {
error: string, // error message
code: number // error code
}
}
Last updated
Was this helpful?