1313
1414namespace XamCore . CoreBluetooth {
1515
16- #if ! MONOMAC
16+ [ Mac ( 10 , 13 ) ]
17+ [ Watch ( 4 , 0 ) ]
1718 [ iOS ( 10 , 0 ) ]
1819 [ Native ]
1920 public enum CBManagerState : nint {
20- #else
21- internal enum CBManagerState {
22- #endif
2321 Unknown = 0 ,
2422 Resetting ,
2523 Unsupported ,
@@ -31,6 +29,7 @@ internal enum CBManagerState {
3129 // NSInteger -> CBCentralManager.h
3230 [ Introduced ( PlatformName . iOS , 5 , 0 ) ]
3331 [ Deprecated ( PlatformName . iOS , 10 , 0 , message : "Use 'CBManagerState' instead." ) ]
32+ [ NoWatch ]
3433 [ Native ]
3534 public enum CBCentralManagerState : nint {
3635 Unknown = CBManagerState . Unknown ,
@@ -44,6 +43,7 @@ public enum CBCentralManagerState : nint {
4443 // NSInteger -> CBPeripheralManager.h
4544 [ Introduced ( PlatformName . iOS , 6 , 0 ) ]
4645 [ Deprecated ( PlatformName . iOS , 10 , 0 , message : "Use 'CBManagerState' instead." ) ]
46+ [ NoWatch ]
4747 [ Native ]
4848 public enum CBPeripheralManagerState : nint {
4949 Unknown = CBManagerState . Unknown ,
@@ -55,16 +55,19 @@ public enum CBPeripheralManagerState : nint {
5555 }
5656
5757 // NSInteger -> CBPeripheralManager.h
58+ [ Watch ( 4 , 0 ) ]
5859 [ Native ]
5960 public enum CBPeripheralState : nint {
6061 Disconnected ,
6162 Connecting ,
6263 Connected ,
63- Disconnecting
64+ [ iOS ( 9 , 0 ) ] [ Mac ( 10 , 13 ) ]
65+ Disconnecting ,
6466 }
6567
6668#if ! XAMCORE_4_0
6769 // NSInteger -> CBPeripheralManager.h
70+ [ Watch ( 4 , 0 ) ]
6871 [ Native ]
6972 public enum CBPeripheralManagerAuthorizationStatus : nint {
7073 NotDetermined ,
@@ -75,6 +78,7 @@ public enum CBPeripheralManagerAuthorizationStatus : nint {
7578#endif
7679
7780 // NSUInteger -> CBCharacteristic.h
81+ [ Watch ( 4 , 0 ) ]
7882 [ Flags ]
7983 [ Native ]
8084 public enum CBCharacteristicProperties : nuint_compat_int {
@@ -86,10 +90,13 @@ public enum CBCharacteristicProperties : nuint_compat_int {
8690 Indicate = 32 ,
8791 AuthenticatedSignedWrites = 64 ,
8892 ExtendedProperties = 128 ,
93+ [ Mac ( 10 , 9 ) ]
8994 NotifyEncryptionRequired = 0x100 ,
95+ [ Mac ( 10 , 9 ) ]
9096 IndicateEncryptionRequired = 0x200
9197 }
9298
99+ [ Watch ( 4 , 0 ) ]
93100 [ ErrorDomain ( "CBErrorDomain" ) ]
94101 [ Native ] // NSInteger -> CBError.h
95102 public enum CBError : nint {
@@ -104,12 +111,15 @@ public enum CBError : nint {
104111 PeripheralDisconnected ,
105112 UUIDNotAllowed ,
106113 AlreadyAdvertising ,
107- // iOS7.1
114+ [ iOS ( 7 , 1 ) ] [ Mac ( 10 , 13 ) ]
108115 ConnectionFailed ,
109- // iOS 9
110- ConnectionLimitReached
116+ [ iOS ( 9 , 0 ) ] [ Mac ( 10 , 13 ) ]
117+ ConnectionLimitReached ,
118+ [ iOS ( 11 , 0 ) ] [ TV ( 11 , 0 ) ] [ Mac ( 10 , 13 ) ]
119+ UnknownDevice ,
111120 }
112121
122+ [ Watch ( 4 , 0 ) ]
113123 [ ErrorDomain ( "CBATTErrorDomain" ) ]
114124 [ Native ] // NSInteger -> CBError.h
115125 public enum CBATTError : nint {
@@ -134,13 +144,16 @@ public enum CBATTError : nint {
134144 }
135145
136146 // NSInteger -> CBPeripheral.h
147+ [ Watch ( 4 , 0 ) ]
137148 [ Native ]
138149 public enum CBCharacteristicWriteType : nint {
139150 WithResponse ,
140151 WithoutResponse
141152 }
142153
143154 // NSUInteger -> CBCharacteristic.h
155+ [ Mac ( 10 , 9 ) ]
156+ [ Watch ( 4 , 0 ) ]
144157 [ Flags ]
145158 [ Native ]
146159 public enum CBAttributePermissions : nuint_compat_int {
@@ -151,6 +164,7 @@ public enum CBAttributePermissions : nuint_compat_int {
151164 }
152165
153166 // NSInteger -> CBPeripheralManager.h
167+ [ Watch ( 4 , 0 ) ]
154168 [ Native ]
155169 public enum CBPeripheralManagerConnectionLatency : nint {
156170 Low = 0 ,
0 commit comments