setTabBarBadge
Requires:
MiniKit≥1.0.0@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
Method signature
setTabBarBadge(params: )Description
Add text to the top-right corner of a tabBar item
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
index | number | Yes | Which tabBar item, counting from the left |
text | string | Yes | Text to display; if longer than 4 characters, it shows as ... |
complete | () => void | No | Completion callback (executed on both success and failure) |
success | () => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None