|
26 | 26 | @interface SystemServices : NSObject |
27 | 27 |
|
28 | 28 | // Shared Manager |
29 | | -+ (id)sharedServices; |
| 29 | ++ (_Nonnull id)sharedServices; |
30 | 30 |
|
31 | 31 | // Parent ID for a certain PID |
32 | 32 | - (int)parentPIDForProcess:(int)pid; |
33 | 33 |
|
34 | 34 | // Properties |
35 | 35 |
|
36 | 36 | /* All System Information in Dictionary Format */ |
37 | | -@property (nonatomic, readonly) NSDictionary *allSystemInformation; |
| 37 | +@property (nonatomic, readonly, nullable) NSDictionary *allSystemInformation; |
38 | 38 |
|
39 | 39 | /* Hardware Information */ |
40 | 40 |
|
41 | 41 | // System Uptime (dd hh mm) |
42 | | -@property (nonatomic, readonly) NSString *systemsUptime; |
| 42 | +@property (nonatomic, readonly, nullable) NSString *systemsUptime; |
43 | 43 |
|
44 | 44 | // Model of Device |
45 | | -@property (nonatomic, readonly) NSString *deviceModel; |
| 45 | +@property (nonatomic, readonly, nullable) NSString *deviceModel; |
46 | 46 |
|
47 | 47 | // Device Name |
48 | | -@property (nonatomic, readonly) NSString *deviceName; |
| 48 | +@property (nonatomic, readonly, nullable) NSString *deviceName; |
49 | 49 |
|
50 | 50 | // System Name |
51 | | -@property (nonatomic, readonly) NSString *systemName; |
| 51 | +@property (nonatomic, readonly, nullable) NSString *systemName; |
52 | 52 |
|
53 | 53 | // System Version |
54 | | -@property (nonatomic, readonly) NSString *systemsVersion; |
| 54 | +@property (nonatomic, readonly, nullable) NSString *systemsVersion; |
55 | 55 |
|
56 | 56 | // System Device Type (Not Formatted = iPhone1,0) |
57 | | -@property (nonatomic, readonly) NSString *systemDeviceTypeNotFormatted; |
| 57 | +@property (nonatomic, readonly, nullable) NSString *systemDeviceTypeNotFormatted; |
58 | 58 |
|
59 | 59 | // System Device Type (Formatted = iPhone 1) |
60 | | -@property (nonatomic, readonly) NSString *systemDeviceTypeFormatted; |
| 60 | +@property (nonatomic, readonly, nullable) NSString *systemDeviceTypeFormatted; |
61 | 61 |
|
62 | 62 | // Get the Screen Width (X) |
63 | 63 | @property (nonatomic, readonly) NSInteger screenWidth; |
|
111 | 111 | @property (nonatomic, readonly) NSInteger numberAttachedAccessories; |
112 | 112 |
|
113 | 113 | // Name of attached accessory/accessories (seperated by , comma's) |
114 | | -@property (nonatomic, readonly) NSString *nameAttachedAccessories; |
| 114 | +@property (nonatomic, readonly, nullable) NSString *nameAttachedAccessories; |
115 | 115 |
|
116 | 116 | /* Carrier Information */ |
117 | 117 |
|
118 | 118 | // Carrier Name |
119 | | -@property (nonatomic, readonly) NSString *carrierName; |
| 119 | +@property (nonatomic, readonly, nullable) NSString *carrierName; |
120 | 120 |
|
121 | 121 | // Carrier Country |
122 | | -@property (nonatomic, readonly) NSString *carrierCountry; |
| 122 | +@property (nonatomic, readonly, nullable) NSString *carrierCountry; |
123 | 123 |
|
124 | 124 | // Carrier Mobile Country Code |
125 | | -@property (nonatomic, readonly) NSString *carrierMobileCountryCode; |
| 125 | +@property (nonatomic, readonly, nullable) NSString *carrierMobileCountryCode; |
126 | 126 |
|
127 | 127 | // Carrier ISO Country Code |
128 | | -@property (nonatomic, readonly) NSString *carrierISOCountryCode; |
| 128 | +@property (nonatomic, readonly, nullable) NSString *carrierISOCountryCode; |
129 | 129 |
|
130 | 130 | // Carrier Mobile Network Code |
131 | | -@property (nonatomic, readonly) NSString *carrierMobileNetworkCode; |
| 131 | +@property (nonatomic, readonly, nullable) NSString *carrierMobileNetworkCode; |
132 | 132 |
|
133 | 133 | // Carrier Allows VOIP |
134 | 134 | @property (nonatomic, readonly) BOOL carrierAllowsVOIP; |
|
194 | 194 | @property (nonatomic, readonly) int processID; |
195 | 195 |
|
196 | 196 | // Process Name |
197 | | -@property (nonatomic, readonly) NSString *processName; |
| 197 | +@property (nonatomic, readonly, nullable) NSString *processName; |
198 | 198 |
|
199 | 199 | // Process Status |
200 | 200 | @property (nonatomic, readonly) int processStatus; |
|
203 | 203 | @property (nonatomic, readonly) int parentPID; |
204 | 204 |
|
205 | 205 | // List of process information including PID's, Names, PPID's, and Status' |
206 | | -@property (nonatomic, readonly) NSMutableArray *processesInformation; |
| 206 | +@property (nonatomic, readonly, nullable) NSMutableArray *processesInformation; |
207 | 207 |
|
208 | 208 | /* Disk Information */ |
209 | 209 |
|
210 | 210 | // Total Disk Space |
211 | | -@property (nonatomic, readonly) NSString *diskSpace; |
| 211 | +@property (nonatomic, readonly, nullable) NSString *diskSpace; |
212 | 212 |
|
213 | 213 | // Total Free Disk Space (Raw) |
214 | | -@property (nonatomic, readonly) NSString *freeDiskSpaceinRaw; |
| 214 | +@property (nonatomic, readonly, nullable) NSString *freeDiskSpaceinRaw; |
215 | 215 |
|
216 | 216 | // Total Free Disk Space (Percentage) |
217 | | -@property (nonatomic, readonly) NSString *freeDiskSpaceinPercent; |
| 217 | +@property (nonatomic, readonly, nullable) NSString *freeDiskSpaceinPercent; |
218 | 218 |
|
219 | 219 | // Total Used Disk Space (Raw) |
220 | | -@property (nonatomic, readonly) NSString *usedDiskSpaceinRaw; |
| 220 | +@property (nonatomic, readonly, nullable) NSString *usedDiskSpaceinRaw; |
221 | 221 |
|
222 | 222 | // Total Used Disk Space (Percentage) |
223 | | -@property (nonatomic, readonly) NSString *usedDiskSpaceinPercent; |
| 223 | +@property (nonatomic, readonly, nullable) NSString *usedDiskSpaceinPercent; |
224 | 224 |
|
225 | 225 | // Get the total disk space in long format |
226 | 226 | @property (nonatomic, readonly) long long longDiskSpace; |
|
277 | 277 | /* Localization Information */ |
278 | 278 |
|
279 | 279 | // Country |
280 | | -@property (nonatomic, readonly) NSString *country; |
| 280 | +@property (nonatomic, readonly, nullable) NSString *country; |
281 | 281 |
|
282 | 282 | // Language |
283 | | -@property (nonatomic, readonly) NSString *language; |
| 283 | +@property (nonatomic, readonly, nullable) NSString *language; |
284 | 284 |
|
285 | 285 | // TimeZone |
286 | | -@property (nonatomic, readonly) NSString *timeZoneSS; |
| 286 | +@property (nonatomic, readonly, nullable) NSString *timeZoneSS; |
287 | 287 |
|
288 | 288 | // Currency Symbol |
289 | | -@property (nonatomic, readonly) NSString *currency; |
| 289 | +@property (nonatomic, readonly, nullable) NSString *currency; |
290 | 290 |
|
291 | 291 | /* Application Information */ |
292 | 292 |
|
293 | 293 | // Application Version |
294 | | -@property (nonatomic, readonly) NSString *applicationVersion; |
| 294 | +@property (nonatomic, readonly, nullable) NSString *applicationVersion; |
295 | 295 |
|
296 | 296 | // Clipboard Content |
297 | | -@property (nonatomic, readonly) NSString *clipboardContent; |
| 297 | +@property (nonatomic, readonly, nullable) NSString *clipboardContent; |
298 | 298 |
|
299 | 299 | /* Universal Unique Identifiers */ |
300 | 300 |
|
301 | 301 | // Unique ID |
302 | | -@property (nonatomic, readonly) NSString *uniqueID; |
| 302 | +@property (nonatomic, readonly, nullable) NSString *uniqueID; |
303 | 303 |
|
304 | 304 | // Device Signature |
305 | | -@property (nonatomic, readonly) NSString *deviceSignature; |
| 305 | +@property (nonatomic, readonly, nullable) NSString *deviceSignature; |
306 | 306 |
|
307 | 307 | // CFUUID |
308 | | -@property (nonatomic, readonly) NSString *cfuuid; |
| 308 | +@property (nonatomic, readonly, nullable) NSString *cfuuid; |
309 | 309 |
|
310 | 310 | // CPU Usage |
311 | 311 | @property (nonatomic, readonly) float cpuUsage; |
|
0 commit comments