Get localized name by bundle id (app.localized_name)
Declaration
name = app.localized_name(bid)
Parameters
- bid
String. App bundle identifier. You can find it inXXT App -> More -> App List
.
Returns
- name
String | nil. Localized name of the app, or nil if the app does not exist.
Example
local name = app.localized_name("com.tencent.xin")
sys.alert(name) -- shows "微信"
Note: uses non-chapter API sys.alert
.