Platforms to show: All Mac Windows Linux Cross-Platform
CWWiFiClientMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Network | MBS MacFrameworks Plugin | 18.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Provides access to all Wi-Fi interfaces and allows Wi-Fi clients to setup event notifications.
CWWiFiClientMBS objects are heavy objects, therefore, clients of the CoreWLAN framework should use a single, long-running instance rather than creating several short-lived instances.
The CWWiFiClientMBS object should be used to instantiate CWInterfaceMBS objects rather than using a CWInterfaceMBS initializer directly.
MBS Plugin make sure that all events are routed to main thread.
Available on MacOS 10.10 or newer.
- 12 events
- event bssidDidChangeForWiFiInterfaceWithName(interfaceName as String)
- event clientConnectionInterrupted
- event clientConnectionInvalidated
- event countryCodeDidChangeForWiFiInterfaceWithName(interfaceName as String)
- event linkDidChangeForWiFiInterfaceWithName(interfaceName as String)
- event linkQualityDidChangeForWiFiInterfaceWithName(interfaceName as String, rssi as Integer, transmitRate as double)
- event modeDidChangeForWiFiInterfaceWithName(interfaceName as String)
- event powerStateDidChangeForWiFiInterfaceWithName(interfaceName as String)
- event rangingReportEventForWiFiInterfaceWithName(interfaceName as String, rangingData() as Dictionary, error as NSErrorMBS)
- event scanCacheUpdatedForWiFiInterfaceWithName(interfaceName as String)
- event ssidDidChangeForWiFiInterfaceWithName(interfaceName as String)
- event virtualInterfaceStateChangedForWiFiInterfaceWithName(interfaceName as String)
- 2 properties
- property CWInterface as CWInterfaceMBS
- property Handle as Integer
- 7 methods
- method Constructor
- method Destructor
- method interfaces as CWInterfaceMBS()
- method interfaceWithName(name as string) as CWInterfaceMBS
- method startMonitoring(EventType as integer, byref error as NSErrorMBS) as boolean
- method stopMonitoring(EventType as integer, byref error as NSErrorMBS) as boolean
- method stopMonitoringAllEvents(byref error as NSErrorMBS) as boolean
- 2 shared methods
- shared method available as boolean
- shared method interfaceNames as String()
- 11 constants
Event Types
Constant | Value | Description |
---|---|---|
CWEventTypeBSSIDDidChange | 3 |
Posted when the current BSSID of any Wi-Fi interface changes. |
CWEventTypeCountryCodeDidChange | 4 |
Posted when the adopted country code of any Wi-Fi interface changes. |
CWEventTypeLinkDidChange | 5 |
Posted when the link state for any Wi-Fi interface changes. |
CWEventTypeLinkQualityDidChange | 6 |
Posted when the RSSI or transmit rate for any Wi-Fi interface changes. |
CWEventTypeModeDidChange | 7 |
Posted when the operating mode of any Wi-Fi interface changes. |
CWEventTypeNone | 0 |
No event type specified. |
CWEventTypePowerDidChange | 1 |
Posted when the power state of any Wi-Fi interface changes. |
CWEventTypeRangingReportEvent | 10 |
Posted when WiFi ranging measurement completed. |
CWEventTypeScanCacheUpdated | 8 |
Posted when the scan cache of any Wi-Fi interface is updated with new scan results. |
CWEventTypeSSIDDidChange | 2 |
Posted when the current SSID of any Wi-Fi interface changes. |
CWEventTypeVirtualInterfaceStateChanged | 9 |
Posted when any state of any Wi-Fi virtual interface changes. |
This class has no sub classes.
Some examples using this class:
Blog Entries
- MonkeyBread Software Releases the MBS Xojo Plugins in version 18.2
- MBS Xojo Plugins, version 18.2pr6
Xojo Developer Magazine
Videos
Release notes
- Version 18.2
- Added CWWiFiClientMBS class for MacOS to watch for Wifi changes.
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
CWNetworkProfileMBS - CXCallDirectoryManagerMBS