Protocol for receiving wireless scan events.
More...
#import <Network/Network.h>
Protocol for receiving wireless scan events.
Classes conforming to this protocol receive callbacks for scan progress: one invocation per network discovered and a final notification on completion. Implementations should return quickly and avoid heavy work on the callback thread.
- Examples:
- examples/Network/ntp/main.m, and examples/Network/scan/main.m.
Definition at line 24 of file WirelessDelegate+Protocol.h.
◆ connectDidStart:()
Called when a connection attempt starts.
- Parameters
-
network | The target network. |
◆ connected:()
Called when a connection is established.
- Parameters
-
network | The connected network. |
◆ connectionFailed:withError:()
Called if the connection fails.
- Parameters
-
network | The target network. |
error | The error code describing the failure. |
◆ disconnected:()
Called after disconnecting from a network.
- Parameters
-
network | The network that was disconnected. |
◆ scanDidComplete()
Called once when the current scan completes (successfully or not).
No further scanDidDiscoverNetwork: callbacks will be delivered after this method for the corresponding scan operation.
◆ scanDidDiscoverNetwork:()
Called when a wireless network is discovered during a scan.
- Parameters
-
network | The network information for the discovered access point. This object may be short‑lived; copy fields you need to retain beyond the scope of this callback. |
The documentation for this protocol was generated from the following file: