admin
2022-09-04 fa05f89529e05078b29606e4beda3de5cfdce485
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
//
//  BUDeviceHelper.h
//  BUSDKProject
//
//  Created by ranny_90 on 2017/5/20.
//  Copyright © 2017年 ranny_90. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
 
NS_ASSUME_NONNULL_BEGIN
 
@interface BUDeviceHelper : NSObject
 
/// 判断设备是否越狱
+ (BOOL)bu_isJailBroken;
 
/// 获取idfv
+ (NSString *)bu_idfvString;
 
/// 获取uuid
+ (NSString *)bu_uuid;
 
/// 获取系统版本号
+ (float)bu_OSVersionNumber;
 
 /// 获取当前语言种类
+ (nullable NSString *)currentLanguage;
 
///是否锁屏
+ (BOOL)is_screen_off;
 
///电池状态
+ (UIDeviceBatteryState)batteryState;
 
///电池电量
+ (float)battery_remaining_pct;
 
///ATT状态
+ (NSUInteger)trackingAuthorizationStatus;
 
/// iOS 系统版本
+ (NSString *)systemVersion;
 
@end
 
 
@interface BUDeviceHelper (Hardware)
 
/// 返回设备平台信息
+ (NSString *)platform;
 
/// 返回设备Model
+ (NSString *)model;
 
/// 返回设备type:iphone/ipad/ipod/apple tv等
+ (NSString *)bu_platformTypeString;
 
/// 具体到型号,如iPhone1,1
+ (NSString *)bu_platformString;
 
/// 返回硬盘空闲空间
+ (NSNumber *)freeDiskSpace;
 
/// 设备的总内存 单位MB
+ (NSInteger)totolDeviceMemory;
 
/// APP已使用的内存 单位MB
+ (NSInteger)usedAPPMemory;
 
// 是否是低端机型
// 1. 非iPhone机型不是低端机型
// 2. iPhone5s及以下是低端机型
+ (BOOL)lowEndMode;
 
/// 获取系统编译版本号
+ (NSString *)bu_buildVersionNumber;
 
@end
 
 
@interface BUDeviceHelper (ProcessesAdditions)
 
/// 获取当前设备的进程,仅适用于(iOS9以下)
+ (nullable NSArray *)runningProcesses;
 
@end
 
NS_ASSUME_NONNULL_END