Companion

object Companion

Functions

loadAsDeviceInfo
Link copied to clipboard
fun <ERROR CLASS>.loadAsDeviceInfo(json: <ERROR CLASS> = DeviceInfoManager.format): DeviceInfo

加载一个设备信息. 若文件不存在或为空则随机并创建一个设备信息保存.

random
Link copied to clipboard
fun random(): DeviceInfo

生成随机 DeviceInfo

fun random(random: Random): DeviceInfo

使用特定随机数生成器生成 DeviceInfo