objc2_core_wlan/generated/
CWInterface.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7#[cfg(feature = "objc2-security")]
8use objc2_security::*;
9#[cfg(feature = "objc2-security-foundation")]
10use objc2_security_foundation::*;
11
12use crate::*;
13
14extern_class!(
15    /// Control and query a Wi-Fi interface on OS X.
16    ///
17    ///
18    /// All actions performed by a CWInterface object are executed on the Wi-Fi device with the corresponding interface name.
19    ///
20    /// See also [Apple's documentation](https://developer.apple.com/documentation/corewlan/cwinterface?language=objc)
21    #[unsafe(super(NSObject))]
22    #[derive(Debug, PartialEq, Eq, Hash)]
23    pub struct CWInterface;
24);
25
26extern_conformance!(
27    unsafe impl NSObjectProtocol for CWInterface {}
28);
29
30impl CWInterface {
31    extern_methods!(
32        /// Returns the BSD name of the Wi-Fi interface (e.g. "en0").
33        #[unsafe(method(interfaceName))]
34        #[unsafe(method_family = none)]
35        pub unsafe fn interfaceName(&self) -> Option<Retained<NSString>>;
36
37        /// Returns: YES if the Wi-Fi interface is on, NO otherwise.
38        ///
39        ///
40        /// Indicates the Wi-Fi interface power state.
41        ///
42        ///
43        /// Returns NO if an error occurs.
44        #[unsafe(method(powerOn))]
45        #[unsafe(method_family = none)]
46        pub unsafe fn powerOn(&self) -> bool;
47
48        #[cfg(feature = "CWChannel")]
49        /// Returns: An NSSet of CWChannel objects.
50        ///
51        ///
52        /// Returns the set of channels supported by the Wi-Fi interface for the currently adopted country code.
53        ///
54        ///
55        /// Returns nil if an error occurs.
56        #[unsafe(method(supportedWLANChannels))]
57        #[unsafe(method_family = none)]
58        pub unsafe fn supportedWLANChannels(&self) -> Option<Retained<NSSet<CWChannel>>>;
59
60        #[cfg(feature = "CWChannel")]
61        /// Returns the current channel of the Wi-Fi interface.
62        ///
63        ///
64        /// Returns nil if an error occurs.
65        #[unsafe(method(wlanChannel))]
66        #[unsafe(method_family = none)]
67        pub unsafe fn wlanChannel(&self) -> Option<Retained<CWChannel>>;
68
69        #[cfg(feature = "CoreWLANTypes")]
70        /// Returns the currently active physical layer (PHY) mode of the Wi-Fi interface.
71        ///
72        ///
73        /// Returns kCWPHYModeNone if an error occurs.
74        #[unsafe(method(activePHYMode))]
75        #[unsafe(method_family = none)]
76        pub unsafe fn activePHYMode(&self) -> CWPHYMode;
77
78        /// Returns the current service set identifier (SSID) of the Wi-Fi interface, encoded as a string.
79        ///
80        ///
81        /// Returns nil if an error occurs, or if the interface is not participating in a Wi-Fi network,
82        /// or if the SSID can not be encoded as a valid UTF-8 or WinLatin1 string.
83        ///
84        ///
85        /// Note: SSID information is not available unless Location Services is enabled and the user has authorized the calling app to use location services.
86        ///
87        ///
88        /// See also: CLLocationManager
89        #[unsafe(method(ssid))]
90        #[unsafe(method_family = none)]
91        pub unsafe fn ssid(&self) -> Option<Retained<NSString>>;
92
93        /// Returns the current service set identifier (SSID) for the interface, encapsulated in an NSData object.
94        ///
95        ///
96        /// Returns nil if an error occurs, or if the interface is not participating in a Wi-Fi network.
97        ///
98        ///
99        /// Note: SSID information is not available unless Location Services is enabled and the user has authorized the calling app to use location services.
100        ///
101        ///
102        /// See also: CLLocationManager
103        #[unsafe(method(ssidData))]
104        #[unsafe(method_family = none)]
105        pub unsafe fn ssidData(&self) -> Option<Retained<NSData>>;
106
107        /// Returns the current basic service set identifier (BSSID) of the Wi-Fi interface, returned as an UTF-8 string.
108        ///
109        ///
110        /// Returns a UTF-8 string using hexadecimal characters formatted as XX:XX:XX:XX:XX:XX.
111        /// Returns nil if an error occurred, or if the interface is not participating in a Wi-Fi network.
112        ///
113        ///
114        /// Note: BSSID information is not available unless Location Services is enabled and the user has authorized the calling app to use location services.
115        ///
116        ///
117        /// See also: CLLocationManager
118        #[unsafe(method(bssid))]
119        #[unsafe(method_family = none)]
120        pub unsafe fn bssid(&self) -> Option<Retained<NSString>>;
121
122        /// Returns the current received signal strength indication (RSSI) measurement (dBm) for the Wi-Fi interface.
123        ///
124        ///
125        /// Returns 0 if an error occurs, or if the interface is not participating in a Wi-Fi network.
126        #[unsafe(method(rssiValue))]
127        #[unsafe(method_family = none)]
128        pub unsafe fn rssiValue(&self) -> NSInteger;
129
130        /// Returns the current noise measurement (dBm) for the Wi-Fi interface.
131        ///
132        ///
133        /// Returns 0 if an error occurs, or if the interface is not participating in a Wi-Fi network.
134        #[unsafe(method(noiseMeasurement))]
135        #[unsafe(method_family = none)]
136        pub unsafe fn noiseMeasurement(&self) -> NSInteger;
137
138        #[cfg(feature = "CoreWLANTypes")]
139        /// Returns the current security type of the Wi-Fi interface.
140        ///
141        ///
142        /// Returns kCWSecurityUnknown if an error occurs, or if the interface is not participating in a Wi-Fi network.
143        #[unsafe(method(security))]
144        #[unsafe(method_family = none)]
145        pub unsafe fn security(&self) -> CWSecurity;
146
147        /// Returns the current transmit rate (Mbps) for the Wi-Fi interface.
148        ///
149        ///
150        /// Returns 0 if an error occurs, or if the interface is not participating in a Wi-Fi network.
151        #[unsafe(method(transmitRate))]
152        #[unsafe(method_family = none)]
153        pub unsafe fn transmitRate(&self) -> c_double;
154
155        /// Returns the currently adopted country code (ISO/IEC 3166-1:1997) for the Wi-Fi interface.
156        ///
157        ///
158        /// Returns nil if an error occurs, or if the Wi-Fi interface is off.
159        ///
160        ///
161        /// Note: Country code information is not available unless Location Services is enabled and the user has authorized the calling app to use location services.
162        ///
163        ///
164        /// See also: CLLocationManager
165        #[unsafe(method(countryCode))]
166        #[unsafe(method_family = none)]
167        pub unsafe fn countryCode(&self) -> Option<Retained<NSString>>;
168
169        #[cfg(feature = "CoreWLANTypes")]
170        /// Returns the current operating mode for the Wi-Fi interface.
171        ///
172        ///
173        /// Returns kCWInterfaceModeNone if an error occurs, or if the interface is not participating in a Wi-Fi network.
174        #[unsafe(method(interfaceMode))]
175        #[unsafe(method_family = none)]
176        pub unsafe fn interfaceMode(&self) -> CWInterfaceMode;
177
178        /// Returns the current transmit power (mW) for the Wi-Fi interface.
179        ///
180        ///
181        /// Returns 0 if an error occurs.
182        #[unsafe(method(transmitPower))]
183        #[unsafe(method_family = none)]
184        pub unsafe fn transmitPower(&self) -> NSInteger;
185
186        /// Returns the hardware media access control (MAC) address for the Wi-Fi interface, returned as an UTF-8 string.
187        ///
188        ///
189        /// The standard format for printing a MAC-48 address XX:XX:XX:XX:XX:XX is used to represent
190        /// the MAC address as a string.
191        /// Returns nil if an error occurs.
192        #[unsafe(method(hardwareAddress))]
193        #[unsafe(method_family = none)]
194        pub unsafe fn hardwareAddress(&self) -> Option<Retained<NSString>>;
195
196        /// Returns: YES if the corresponding network service is active, NO otherwise.
197        ///
198        ///
199        /// Indicates the network service state of the Wi-Fi interface.
200        ///
201        ///
202        /// Returns NO if an error occurs.
203        #[unsafe(method(serviceActive))]
204        #[unsafe(method_family = none)]
205        pub unsafe fn serviceActive(&self) -> bool;
206
207        #[cfg(feature = "CWNetwork")]
208        /// Returns: An NSSet of CWNetwork objects.
209        ///
210        ///
211        /// Returns the scan results currently in the scan cache for the Wi-Fi interface.
212        ///
213        ///
214        /// Returns nil if an error occurs.
215        #[unsafe(method(cachedScanResults))]
216        #[unsafe(method_family = none)]
217        pub unsafe fn cachedScanResults(&self) -> Option<Retained<NSSet<CWNetwork>>>;
218
219        #[cfg(feature = "CWConfiguration")]
220        /// Returns the current configuration for the Wi-Fi interface.
221        ///
222        ///
223        /// Returns nil if an error occurs.
224        #[unsafe(method(configuration))]
225        #[unsafe(method_family = none)]
226        pub unsafe fn configuration(&self) -> Option<Retained<CWConfiguration>>;
227
228        /// Returns: An NSSet of NSString objects.
229        ///
230        ///
231        /// Returns the list of available Wi-Fi interface names (e.g. "en0").
232        ///
233        ///
234        /// Returns an empty NSArray object if no Wi-Fi interfaces exist.
235        /// Returns nil if an error occurs.
236        #[deprecated = "Use -[CWWiFiClient interfaceNames] instead"]
237        #[unsafe(method(interfaceNames))]
238        #[unsafe(method_family = none)]
239        pub unsafe fn interfaceNames() -> Option<Retained<NSSet<NSString>>>;
240
241        /// Convenience method for getting a CWInterface object for the default Wi-Fi interface.
242        #[deprecated = "Use -[CWWiFiClient interface] instead"]
243        #[unsafe(method(interface))]
244        #[unsafe(method_family = none)]
245        pub unsafe fn interface() -> Retained<Self>;
246
247        /// Parameter `name`: The name of an available Wi-Fi interface.
248        ///
249        ///
250        /// Convenience method for getting a CWInterface object bound to the Wi-Fi interface with a specific interface name.
251        ///
252        ///
253        /// Use +[CWInterface interfaceNames] to get a list of available Wi-Fi interface names.
254        /// Returns a CWInterface object for the default Wi-Fi interface if no interface name is specified.
255        #[deprecated = "Use -[CWWiFiClient interfaceWithName:] instead"]
256        #[unsafe(method(interfaceWithName:))]
257        #[unsafe(method_family = none)]
258        pub unsafe fn interfaceWithName(name: Option<&NSString>) -> Retained<Self>;
259
260        /// Parameter `name`: The name of an available Wi-Fi interface.
261        ///
262        ///
263        /// Initializes a CWInterface object, binding to the Wi-Fi interface with a specific interface name.
264        ///
265        ///
266        /// Use +[CWInterface interfaceNames] to get a list of available Wi-Fi interface names.
267        /// Returns a CWInterface object for the default Wi-Fi interface if no interface name is specified.
268        #[deprecated = "Use -[CWWiFiClient interfaceWithName:] instead"]
269        #[unsafe(method(initWithInterfaceName:))]
270        #[unsafe(method_family = init)]
271        pub unsafe fn initWithInterfaceName(
272            this: Allocated<Self>,
273            name: Option<&NSString>,
274        ) -> Retained<Self>;
275
276        /// Parameter `power`: A BOOL value indicating Wi-Fi power state. Specify YES to turn on the Wi-Fi interface.
277        ///
278        ///
279        /// Parameter `error`: An NSError object passed by reference, which upon return will contain the error if an error occurs.
280        /// This parameter is optional.
281        ///
282        ///
283        /// Returns: Returns YES upon success, or NO if an error occurred.
284        ///
285        ///
286        /// Sets the Wi-Fi interface power state.
287        #[unsafe(method(setPower:error:_))]
288        #[unsafe(method_family = none)]
289        pub unsafe fn setPower_error(&self, power: bool) -> Result<(), Retained<NSError>>;
290
291        #[cfg(feature = "CWChannel")]
292        /// Parameter `channel`: A CWChannel object.
293        ///
294        ///
295        /// Parameter `error`: An NSError object passed by reference, which upon return will contain the error if an error occurs.
296        /// This parameter is optional.
297        ///
298        ///
299        /// Returns: Returns YES upon success, or NO if an error occurred.
300        ///
301        ///
302        /// Sets the Wi-Fi interface channel.
303        ///
304        ///
305        /// Setting the channel while the interface is associated to a Wi-Fi network is not permitted.
306        #[unsafe(method(setWLANChannel:error:_))]
307        #[unsafe(method_family = none)]
308        pub unsafe fn setWLANChannel_error(
309            &self,
310            channel: &CWChannel,
311        ) -> Result<(), Retained<NSError>>;
312
313        /// Parameter `key`: An NSData object containing the pairwise master key (PMK).
314        /// Passing nil clear the PMK for the Wi-Fi interface.
315        ///
316        ///
317        /// Parameter `error`: An NSError object passed by reference, which upon return will contain the error if an error occurs.
318        /// This parameter is optional.
319        ///
320        ///
321        /// Returns: Returns YES upon success, or NO if an error occurred.
322        ///
323        ///
324        /// Sets the Wi-Fi interface pairwise master key (PMK).
325        ///
326        ///
327        /// The specified key must be exactly 32 octets.
328        #[unsafe(method(setPairwiseMasterKey:error:_))]
329        #[unsafe(method_family = none)]
330        pub unsafe fn setPairwiseMasterKey_error(
331            &self,
332            key: Option<&NSData>,
333        ) -> Result<(), Retained<NSError>>;
334
335        #[cfg(feature = "CoreWLANTypes")]
336        /// Parameter `key`: An NSData object containing the WEP key.
337        /// Passing nil clears the WEP key for the Wi-Fi interface.
338        ///
339        ///
340        /// Parameter `flags`: A bitmask indicating which CWCipherKeyFlags to use for the specified WEP key.
341        ///
342        ///
343        /// Parameter `index`: An NSInteger indicating which default key index (1-4) to use for the specified key.
344        ///
345        ///
346        /// Parameter `error`: An NSError object passed by reference, which upon return will contain the error if an error occurs.
347        /// This parameter is optional.
348        ///
349        ///
350        /// Returns: Returns YES upon success, or NO if an error occurred.
351        ///
352        ///
353        /// Sets the Wi-Fi interface WEP key.
354        #[unsafe(method(setWEPKey:flags:index:error:_))]
355        #[unsafe(method_family = none)]
356        pub unsafe fn setWEPKey_flags_index_error(
357            &self,
358            key: Option<&NSData>,
359            flags: CWCipherKeyFlags,
360            index: NSInteger,
361        ) -> Result<(), Retained<NSError>>;
362
363        #[cfg(feature = "CWNetwork")]
364        /// Parameter `ssid`: Probe request SSID.
365        /// Pass an SSID to perform a directed scan for hidden Wi-Fi networks.
366        /// This parameter is optional.
367        ///
368        ///
369        /// Parameter `error`: An NSError object passed by reference, which upon return will contain the error if an error occurs.
370        /// This parameter is optional.
371        ///
372        ///
373        /// Returns: An NSSet of CWNetwork objects, or nil if an error occurs.
374        ///
375        ///
376        /// Performs a scan for Wi-Fi networks and returns scan results to the caller.
377        ///
378        ///
379        /// This method will block for the duration of the scan.
380        ///
381        ///
382        /// Note: Returned networks will not contain BSSID information unless Location Services is enabled and the user has authorized the calling app to use location services.
383        ///
384        ///
385        /// See also: CLLocationManager
386        #[unsafe(method(scanForNetworksWithSSID:error:_))]
387        #[unsafe(method_family = none)]
388        pub unsafe fn scanForNetworksWithSSID_error(
389            &self,
390            ssid: Option<&NSData>,
391        ) -> Result<Retained<NSSet<CWNetwork>>, Retained<NSError>>;
392
393        #[cfg(feature = "CWNetwork")]
394        /// Parameter `ssid`: Probe request SSID.
395        /// Pass an SSID to perform a directed scan for hidden Wi-Fi networks.
396        /// This parameter is optional.
397        ///
398        ///
399        /// Parameter `includeHidden`: Indicate whether or not hidden networks should not be filtered from the returned scan results.
400        ///
401        ///
402        /// Parameter `error`: An NSError object passed by reference, which upon return will contain the error if an error occurs.
403        /// This parameter is optional.
404        ///
405        ///
406        /// Returns: An NSSet of CWNetwork objects, or nil if an error occurs.
407        ///
408        ///
409        /// Performs a scan for Wi-Fi networks and returns scan results to the caller.
410        ///
411        ///
412        /// This method will block for the duration of the scan.
413        ///
414        ///
415        /// Note: Returned networks will not contain BSSID information unless Location Services is enabled and the user has authorized the calling app to use location services.
416        ///
417        ///
418        /// See also: CLLocationManager
419        #[unsafe(method(scanForNetworksWithSSID:includeHidden:error:_))]
420        #[unsafe(method_family = none)]
421        pub unsafe fn scanForNetworksWithSSID_includeHidden_error(
422            &self,
423            ssid: Option<&NSData>,
424            include_hidden: bool,
425        ) -> Result<Retained<NSSet<CWNetwork>>, Retained<NSError>>;
426
427        #[cfg(feature = "CWNetwork")]
428        /// Parameter `networkName`: Probe request SSID, encoded as an UTF-8 string.
429        /// Pass a networkName to perform a directed scan for hidden Wi-Fi networks.
430        /// This parameter is optional.
431        ///
432        ///
433        /// Parameter `error`: An NSError object passed by reference, which upon return will contain the error if an error occurs.
434        /// This parameter is optional.
435        ///
436        ///
437        /// Returns: An NSSet of CWNetwork objects, or nil if an error occurs.
438        ///
439        ///
440        /// Performs a scan for Wi-Fi networks and returns scan results to the caller.
441        ///
442        ///
443        /// This method will block for the duration of the scan.
444        ///
445        ///
446        /// Note: Returned networks will not contain BSSID information unless Location Services is enabled and the user has authorized the calling app to use location services.
447        ///
448        ///
449        /// See also: CLLocationManager
450        #[unsafe(method(scanForNetworksWithName:error:_))]
451        #[unsafe(method_family = none)]
452        pub unsafe fn scanForNetworksWithName_error(
453            &self,
454            network_name: Option<&NSString>,
455        ) -> Result<Retained<NSSet<CWNetwork>>, Retained<NSError>>;
456
457        #[cfg(feature = "CWNetwork")]
458        /// Parameter `networkName`: Probe request SSID, encoded as an UTF-8 string.
459        /// Pass a networkName to perform a directed scan for hidden Wi-Fi networks.
460        /// This parameter is optional.
461        ///
462        ///
463        /// Parameter `includeHidden`: Indicate whether or not hidden networks should not be filtered from the returned scan results.
464        ///
465        ///
466        /// Parameter `error`: An NSError object passed by reference, which upon return will contain the error if an error occurs.
467        /// This parameter is optional.
468        ///
469        ///
470        /// Returns: An NSSet of CWNetwork objects, or nil if an error occurs.
471        ///
472        ///
473        /// Performs a scan for Wi-Fi networks and returns scan results to the caller.
474        ///
475        ///
476        /// This method will block for the duration of the scan.
477        ///
478        ///
479        /// Note: Returned networks will not contain BSSID information unless Location Services is enabled and the user has authorized the calling app to use location services.
480        ///
481        ///
482        /// See also: CLLocationManager
483        #[unsafe(method(scanForNetworksWithName:includeHidden:error:_))]
484        #[unsafe(method_family = none)]
485        pub unsafe fn scanForNetworksWithName_includeHidden_error(
486            &self,
487            network_name: Option<&NSString>,
488            include_hidden: bool,
489        ) -> Result<Retained<NSSet<CWNetwork>>, Retained<NSError>>;
490
491        #[cfg(feature = "CWNetwork")]
492        /// Parameter `network`: The network to which the Wi-Fi interface will associate.
493        ///
494        ///
495        /// Parameter `password`: The network passphrase or key. Required for association to WEP, WPA Personal, and WPA2 Personal networks.
496        ///
497        ///
498        /// Parameter `error`: An NSError object passed by reference, which upon return will contain the error if an error occurs.
499        /// This parameter is optional.
500        ///
501        ///
502        /// Returns: Returns YES upon success, or NO if an error occurred.
503        ///
504        ///
505        /// Associates to a W-Fi network using the specified passphrase.
506        ///
507        ///
508        /// This method will block for the duration of the association.
509        #[unsafe(method(associateToNetwork:password:error:_))]
510        #[unsafe(method_family = none)]
511        pub unsafe fn associateToNetwork_password_error(
512            &self,
513            network: &CWNetwork,
514            password: Option<&NSString>,
515        ) -> Result<(), Retained<NSError>>;
516
517        /// Disassociates from the current Wi-Fi network.
518        #[unsafe(method(disassociate))]
519        #[unsafe(method_family = none)]
520        pub unsafe fn disassociate(&self);
521
522        #[cfg(all(feature = "CWNetwork", feature = "objc2-security"))]
523        /// Parameter `network`: The network to which the Wi-Fi interface will associate.
524        ///
525        ///
526        /// Parameter `username`: The username to use for 802.1X authentication.
527        ///
528        ///
529        /// Parameter `password`: The password to use for 802.1X authentication.
530        ///
531        ///
532        /// Parameter `identity`: The identity to use for IEEE 802.1X authentication. Holds the corresponding client certificate.
533        ///
534        ///
535        /// Parameter `error`: An NSError object passed by reference, which upon return will contain the error if an error occurs.
536        /// This parameter is optional.
537        ///
538        ///
539        /// Returns: Returns YES upon success, or NO if an error occurred.
540        ///
541        ///
542        /// Associates to an enterprise W-Fi network using the specified 802.1X credentials.
543        ///
544        ///
545        /// This method will block for the duration of the association.
546        #[unsafe(method(associateToEnterpriseNetwork:identity:username:password:error:_))]
547        #[unsafe(method_family = none)]
548        pub unsafe fn associateToEnterpriseNetwork_identity_username_password_error(
549            &self,
550            network: &CWNetwork,
551            identity: Option<&SecIdentity>,
552            username: Option<&NSString>,
553            password: Option<&NSString>,
554        ) -> Result<(), Retained<NSError>>;
555
556        #[cfg(feature = "CoreWLANTypes")]
557        /// Parameter `ssidData`: The SSID to use for the IBSS network.
558        /// Pass nil to use the machine name as the IBSS network name.
559        ///
560        ///
561        /// Parameter `security`: The CWIBSSModeSecurity type.
562        ///
563        ///
564        /// Parameter `channel`: The channel on which the IBSS network will be created.
565        ///
566        ///
567        /// Parameter `password`: The password to be used. This paramter is required for kCWIBSSModeSecurityWEP40 or kCWIBSSModeSecurityWEP104 security types.
568        ///
569        ///
570        /// Parameter `error`: An NSError object passed by reference, which upon return will contain the error if an error occurs.
571        /// This parameter is optional.
572        ///
573        ///
574        /// Returns: Returns YES upon success, or NO if an error occurred.
575        ///
576        ///
577        /// Creates a computer-to-computer (IBSS) network.
578        #[deprecated]
579        #[unsafe(method(startIBSSModeWithSSID:security:channel:password:error:_))]
580        #[unsafe(method_family = none)]
581        pub unsafe fn startIBSSModeWithSSID_security_channel_password_error(
582            &self,
583            ssid_data: &NSData,
584            security: CWIBSSModeSecurity,
585            channel: NSUInteger,
586            password: Option<&NSString>,
587        ) -> Result<(), Retained<NSError>>;
588
589        #[cfg(all(feature = "CWConfiguration", feature = "objc2-security-foundation"))]
590        /// Parameter `configuration`: The Wi-Fi configuration to commit to disk.
591        ///
592        ///
593        /// Parameter `authorization`: An SFAuthorization object to use for authorizing the commit.
594        /// This parameter is optional.
595        ///
596        ///
597        /// Parameter `error`: An NSError object passed by reference, which upon return will contain the error if an error occurs.
598        /// This parameter is optional.
599        ///
600        ///
601        /// Returns: Returns YES upon success, or NO if an error occurred.
602        ///
603        ///
604        /// Commits a CWConfiguration for the given Wi-Fi interface.
605        ///
606        ///
607        /// This method requires the caller have root privileges
608        /// or obtain administrator privileges using the SFAuthorization API.
609        #[unsafe(method(commitConfiguration:authorization:error:_))]
610        #[unsafe(method_family = none)]
611        pub unsafe fn commitConfiguration_authorization_error(
612            &self,
613            configuration: &CWConfiguration,
614            authorization: Option<&SFAuthorization>,
615        ) -> Result<(), Retained<NSError>>;
616    );
617}
618
619/// Methods declared on superclass `NSObject`.
620impl CWInterface {
621    extern_methods!(
622        #[unsafe(method(init))]
623        #[unsafe(method_family = init)]
624        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
625
626        #[unsafe(method(new))]
627        #[unsafe(method_family = new)]
628        pub unsafe fn new() -> Retained<Self>;
629    );
630}