UIDevice(TuSDKTSDeviceExtend) Category Reference

Declared in TuSDKTSDevice+Extend.h

Overview

硬件设备扩展

+ lsqName

设备名称

+ (NSString *)lsqName

Return Value

设备名称 e.g. “My iPhone”

Declared In

TuSDKTSDevice+Extend.h

+ lsqSystemName

系统名称

+ (NSString *)lsqSystemName

Return Value

系统名称 e.g. @“iOS”

Declared In

TuSDKTSDevice+Extend.h

+ lsqSystemFloatVersion

系统版本号

+ (CGFloat)lsqSystemFloatVersion

Return Value

系统版本号 e.g. @“4.0”

Declared In

TuSDKTSDevice+Extend.h

+ lsqSystemVersion

系统版本号

+ (NSString *)lsqSystemVersion

Return Value

系统版本号 e.g. @“4.0.2”

Declared In

TuSDKTSDevice+Extend.h

+ lsqModel

硬件型号

+ (NSString *)lsqModel

Return Value

硬件型号 e.g. @“iPhone”, @“iPod touch”

Declared In

TuSDKTSDevice+Extend.h

+ lsqLocalizedModel

本地化硬件型号

+ (NSString *)lsqLocalizedModel

Return Value

本地化硬件型号

Declared In

TuSDKTSDevice+Extend.h

+ lsqAppName

获取应用名称

+ (NSString *)lsqAppName

Return Value

应用名称

Declared In

TuSDKTSDevice+Extend.h

+ lsqAppVersion

获取应用版本

+ (NSString *)lsqAppVersion

Return Value

应用版本

Declared In

TuSDKTSDevice+Extend.h

+ lsqAppBuild

应用编译版本

+ (NSString *)lsqAppBuild

Return Value

应用编译版本

Declared In

TuSDKTSDevice+Extend.h

+ lsqAppIdentifier

应用 Bundle Identifier

+ (NSString *)lsqAppIdentifier

Return Value

应用 Bundle Identifier

Declared In

TuSDKTSDevice+Extend.h

+ lsqAdIdentifier

ad AdIdentifier;

+ (NSString *)lsqAdIdentifier

Return Value

应用

Declared In

TuSDKTSDevice+Extend.h

+ lsqOpenAppSettings

开启应用设置页面

+ (void)lsqOpenAppSettings

Declared In

TuSDKTSDevice+Extend.h

+ lsqGetWifiIpAddress

获取WIFI IP地址

+ (NSString *)lsqGetWifiIpAddress

Return Value

WIFI IP地址

Declared In

TuSDKTSDevice+Extend.h

+ lsqFileSizeAtPath:

获取文件大小 BYTE

+ (long long)lsqFileSizeAtPath:(NSString *)filePath

Parameters

filePath

文件路径

Return Value

文件大小 BYTE

Declared In

TuSDKTSDevice+Extend.h

+ lsqSpaceMemory

获取当前应用可用内存(单位:MB)

+ (double)lsqSpaceMemory

Return Value

当前应用可用内存(单位:MB)

Declared In

TuSDKTSDevice+Extend.h

+ lsqUsedMemory

获取当前应用所占用的内存(单位:MB)

+ (double)lsqUsedMemory

Return Value

当前应用所占用的内存(单位:MB)

Declared In

TuSDKTSDevice+Extend.h

+ lsqLogMemory:

打印内存使用情况

+ (void)lsqLogMemory:(NSString *)tag

Parameters

tag

标签

Declared In

TuSDKTSDevice+Extend.h

+ lsqPerformance

硬件性能

+ (NSUInteger)lsqPerformance

Return Value

2-5

Declared In

TuSDKTSDevice+Extend.h

+ lsqDevicePlatform

获取手机型号

+ (TuSDKDevicePlatform)lsqDevicePlatform

Return Value

TuSDKDevicePlatform 手机型号枚举

Declared In

TuSDKTSDevice+Extend.h

+ lsqIsDeviceiPhoneX

判断当前手机是否为iPhoneX

+ (BOOL)lsqIsDeviceiPhoneX

Declared In

TuSDKTSDevice+Extend.h

+ lsqUuid

Universally Unique Identifier 通用唯一识别码

+ (NSString *)lsqUuid

Return Value

通用唯一识别码

Declared In

TuSDKTSDevice+Extend.h

– lsqPlatform

硬件名称

- (NSString *)lsqPlatform

Return Value

硬件名称

Declared In

TuSDKTSDevice+Extend.h

– lsqIsDevice:

是否为指定设备

- (BOOL)lsqIsDevice:(NSString *)device

Parameters

device

设备名称

Return Value

是否为指定设备

Declared In

TuSDKTSDevice+Extend.h

– lsqHwmodel

硬件类型

- (NSString *)lsqHwmodel

Return Value

硬件类型

Declared In

TuSDKTSDevice+Extend.h

– lsqCpuFrequency

CPU频率

- (NSUInteger)lsqCpuFrequency

Return Value

CPU频率

Declared In

TuSDKTSDevice+Extend.h

– lsqBusFrequency

系统总线频率

- (NSUInteger)lsqBusFrequency

Return Value

系统总线频率

Declared In

TuSDKTSDevice+Extend.h

– lsqCpuCount

CPU核心数

- (NSUInteger)lsqCpuCount

Return Value

CPU核心数

Declared In

TuSDKTSDevice+Extend.h

– lsqTotalMemory

合计内存

- (NSUInteger)lsqTotalMemory

Return Value

合计内存

Declared In

TuSDKTSDevice+Extend.h

– lsqUserMemory

已使用内存

- (NSUInteger)lsqUserMemory

Return Value

已使用内存

Declared In

TuSDKTSDevice+Extend.h

– lsqSapceMemory

空闲内存

- (NSUInteger)lsqSapceMemory

Return Value

空闲内存

Declared In

TuSDKTSDevice+Extend.h

– lsqTotalDiskSpace

总存储空间

- (NSNumber *)lsqTotalDiskSpace

Return Value

总存储空间

Declared In

TuSDKTSDevice+Extend.h

– lsqFreeDiskSpace

可使用存储空间

- (NSNumber *)lsqFreeDiskSpace

Return Value

可使用存储空间

Declared In

TuSDKTSDevice+Extend.h

– lsqMacaddress

网络Mac地址

- (NSString *)lsqMacaddress

Return Value

网络Mac地址

Declared In

TuSDKTSDevice+Extend.h

+ lsqGetRotationByOrient:

根据设备方向获取旋转角度

+ (CGFloat)lsqGetRotationByOrient:(UIDeviceOrientation)orient

Parameters

orient

设备旋转方向

Return Value

旋转角度

Declared In

TuSDKTSDevice+Extend.h

+ lsqCurrentLanguage

获取设备当前语言

+ (NSString *)lsqCurrentLanguage

Declared In

TuSDKTSDevice+Extend.h

+ lsqCNLanguage

判断当前是否为中文环境

+ (Boolean)lsqCNLanguage

Declared In

TuSDKTSDevice+Extend.h