]> git.saurik.com Git - apple/security.git/blob - keychain/ot/OTDeviceInformationAdapter.h
Security-59754.60.13.tar.gz
[apple/security.git] / keychain / ot / OTDeviceInformationAdapter.h
1
2 #import <Foundation/Foundation.h>
3
4 NS_ASSUME_NONNULL_BEGIN
5
6 @protocol OTDeviceInformationNameUpdateListener
7 - (void)deviceNameUpdated;
8 @end
9
10 @protocol OTDeviceInformationAdapter
11
12 /* Returns a string like "iPhone3,5" */
13 - (NSString*)modelID;
14
15 /* Returns the user-entered name for this device */
16 - (NSString* _Nullable)deviceName;
17
18 /* Returns a string describing the current os version */
19 - (NSString*)osVersion;
20
21 /* Returns the serial number as a string. */
22 - (NSString* _Nullable)serialNumber;
23
24 /* register for deviceName updates */
25 - (void)registerForDeviceNameUpdates:(id<OTDeviceInformationNameUpdateListener>)listener;
26
27 @end
28
29 @interface OTDeviceInformationActualAdapter : NSObject <OTDeviceInformationAdapter>
30
31 @end
32
33 NS_ASSUME_NONNULL_END