Android Classes
Last updated
Last updated
properties
Type
Description
context
android.content.Context
dapp application context
appKey
String
unique id assigned to each dapp, contact us
userId
String
the unique user id in dapp server side, recommend to use uuid
dappName
String
dapp name
dappIcon
String
dapp icon logo, no small than 144x144px
disableInstall(default false)
boolean
Whether to disable the default install page when MYKEY is not installed
callback
String
Deeplink MYKEY callback to dapp,defined in AndroidManifest.xml, e.g. customscheme://customhost/custompath
showUpgradeTip(default false)
boolean
Toast tip when MYKEY is not the latest version
mykeyServer
String
Environment URL endpoint of MYKEY server
properties
Type
Description
context
android.content.Context
dapp application context
dappName
String
dapp name
dappIcon
String
dapp icon logo, no small than 144x144px
disableInstall(default false)
boolean
Whether to disable the default install page when MYKEY is not installed
callback
String
Deeplink MYKEY callback to dapp,defined in AndroidManifest.xml, e.g. customscheme://customhost/custompath
properties
Type
Description
userName
String
Optional, Custom user name
callBackUrl(optional)
String
Optional, Callback endpoint url of dapp server,MYKEY will callback to dapp server after authorize request success at first, then wake up mobile client
info
String
Info, Semantic description of MYKEY display to the user for authorization page
properties
Type
Description
from
String
From account
to
String
To account
amount
String
Amount, e.g "1.0000"
symbol
String
Symbol, e.g. "EOS"
contractName
String
contract code name, e.g. "eosio.token"
decimal
String
Decimal
memo
String
Memo
info
String
Semantic description of MYKEY display to the user about this action
orderId
String
The order id from dapp, optional, can be null e.g. "20190606001"
callbackUrl(optional)
String
Optional, callback endpoint url of dapp server,MYKEY will callback to dapp server after transfer request success at first, then wake up mobile client
properties
Type
Description
orderId
String
The order id from dapp, optional, can be null
info
String
Semantic description of MYKEY display to the user about this action
callbackUrl(optional)
String
Optional, callback endpoint url of dapp server,MYKEY will callback to dapp server after contract request success at first, then wake up mobile client
actions
List of contract actions
properties
Type
Description
account
String
contract code name
name
String
contract action name
info
String
Semantic description of MYKEY display to the user about this action
data
Object
The parameter object passed according to the contract abi definition e.g. {key1: value1, key2: value2 }
properties
Type
Description
account
String
contract code name
name
String
contract action name, use "transfer"
info
String
Semantic description of MYKEY display to the user about this action
transferObj
Transfer info object
properties
Type
Description
from
String
From account name
to
String
To account name
quantity
String
Amount and Symbol
memo
String
Memo
properties
Type
Description
message
String
Unsigned messages
callbackUrl
String
Optional, callback endpoint url of dapp server,MYKEY will callback to dapp server after sign request success at first, then wake up mobile client
methods
Description
onSuccess
Success Callback
onError
Failure Callback, errorCode list
onCancel
Cancel Callback