UtilAPI class

Constructors

UtilAPI()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

log(String log) → void
记录Flutter日志到本地
moveTaskToBack() → void
APP退出到桌面
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
xcAesDecryptToHexString(String str, String key, {bool bSecureRandomKey = false}) Future<String>
网络接口 解密 body str 需要解密内容 key 通过xcServerKeyFilter获得的key
xcAesEncryptToHexString(String str, String key, {bool bSecureRandomKey = false}) Future<String>
网络接口 加密 body str 需要加密内容 key 通过xcServerKeyFilter获得的key
xcCacheBluetoothInfo({required String deviceId, required String deviceIp, int devicePort = 34567}) → void
设置蓝牙设备信息到本地缓存
xcCheckPermissionLocationNet() Future<bool>
检测本地网络权限
xcDecryptDevInfo(String str) Future<String>
设备信息解密
xcDecryptScanQrDevInfo(String str) Future<String>
通用二维码解密
xcEncryptDevInfo(String str) Future<String>
设备信息加密xcServerKeyFilter
xcMD5Encode({required String encodeStr}) Future<String>
MD5 加密

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance UtilAPI
no setter