objc

Instance Methods
<NetworkTimeDelegate> Protocol Reference

Protocol for receiving network time update events. More...

#import <Network/Network.h>

Instance Methods

(BOOL- networkTimeShouldUpdate:
 Called when a network time is received. More...
 

Detailed Description

Protocol for receiving network time update events.

Classes conforming to this protocol receive callbacks for network time updates: one invocation per time update. The delegate should return YES if the system time should be updated.

Examples:
examples/Network/ntp/main.m.

Definition at line 24 of file NetworkTimeDelegate+Protocol.h.

Method Documentation

◆ networkTimeShouldUpdate:()

- (BOOL) networkTimeShouldUpdate: (NXDate *)  time

Called when a network time is received.

Parameters
timeThe received network time.
Returns
YES if the system time should be updated, NO otherwise.

The documentation for this protocol was generated from the following file: