objc

Instance Methods
<WirelessDelegate> Protocol Reference

Protocol for receiving wireless scan events. More...

#import <Network/Network.h>

Instance Methods

(void) - scanDidDiscoverNetwork:
 Called when a wireless network is discovered during a scan. More...
 
(void) - scanDidComplete
 Called once when the current scan completes (successfully or not). More...
 
(void) - connectDidStart:
 Called when a connection attempt starts. More...
 
(void) - connectionFailed:withError:
 Called if the connection fails. More...
 
(void) - connected:
 Called when a connection is established. More...
 
(void) - disconnected:
 Called after disconnecting from a network. More...
 

Detailed Description

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.

Method Documentation

◆ connectDidStart:()

- (void) connectDidStart: (NXWirelessNetwork *)  network
optional

Called when a connection attempt starts.

Parameters
networkThe target network.

◆ connected:()

- (void) connected: (NXWirelessNetwork *)  network
optional

Called when a connection is established.

Parameters
networkThe connected network.

◆ connectionFailed:withError:()

- (void) connectionFailed: (NXWirelessNetwork *)  network
withError: (NXWirelessError error 
optional

Called if the connection fails.

Parameters
networkThe target network.
errorThe error code describing the failure.

◆ disconnected:()

- (void) disconnected: (NXWirelessNetwork *)  network
optional

Called after disconnecting from a network.

Parameters
networkThe network that was disconnected.

◆ scanDidComplete()

- (void) scanDidComplete
optional

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:()

- (void) scanDidDiscoverNetwork: (NXWirelessNetwork *)  network
optional

Called when a wireless network is discovered during a scan.

Parameters
networkThe 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: