Login Functions
Overview
Login functions control the native LoginHandler object used by the launcher. They are rarely needed in scripts.
Functions
setLogin()
setLogin(platformID, mac, rid, wk, ltoken)
- Description: Forward five login values to the native LoginHandler.
- Parameters:
platformID: integer- Numeric platform identifiermac: string- Device MAC valuerid: string- Login rid valuewk: string- Login wk valueltoken: string- Login ltoken value
- Returns:
- None
- Note:
- The parameter names come from the signature string embedded in the native library (
setLogin ([platformID], [mac], [rid], [wk], [ltoken])). The launcher passes these values during its own login flow.
- The parameter names come from the signature string embedded in the native library (
setLoginEnabled()
setLoginEnabled(enabled)
- Description: Enable or disable the native LoginHandler.
- Parameters:
enabled: boolean- New enabled state
- Returns:
- None
- Example:lua
setLoginEnabled(true)