mirai
2.13.4
jvmBase
mirai-core-api
/
net.mamoe.mirai.utils
/
DeviceInfo
/
Companion
/
loadAsDeviceInfo
load
As
Device
Info
jvmBase
@
JvmOverloads
@
JvmStatic
@
JvmName
(
name
=
"from"
)
fun
File
.
loadAsDeviceInfo
(
json
:
<Error class: unknown class>
=
DeviceInfoManager.format
)
:
DeviceInfo
Content copied to clipboard
加载一个设备信息. 若文件不存在或为空则随机并创建一个设备信息保存.