跳到主要内容

bn.getAppBaseInfo

getAppBaseInfo(): AppBaseInfo

description The api to get app info

remark supported jssdk >= 4.0.0

example

const appBaseInfo = bn.getAppBaseInfo()
console.log(appBaseInfo.SDKVersion)
console.log(appBaseInfo.enableDebug)
console.log(appBaseInfo.host)
console.log(appBaseInfo.language)
console.log(appBaseInfo.version)

Returns

AppBaseInfo

AppBaseInfo


AppBaseInfo

Ƭ AppBaseInfo: Object

Type declaration

NameTypeDescription
SDKVersionstringsdk version
hostHostInfohost app info
languagestringbinance app language
versionstringbinance app version
theme?ThemeNot supported in mg

HostInfo

Ƭ HostInfo: Object

Type declaration

NameTypeDescription
appIdstringhost appid
hostAppIdstringhost app id
hostAppNamestringhost app name
hostAppVersionstringhost app version
mpVersionstringmp version
routeUrlstringhost app route url

Theme

Ƭ Theme: "light" | "dark"