objc

Instance Methods | Class Methods
NXNetworkTime Class Reference

A class for managing network time synchronization. More...

#import <Network/Network.h>

Inheritance diagram for NXNetworkTime:
Inheritance graph
[legend]
Collaboration diagram for NXNetworkTime:
Collaboration graph
[legend]

Instance Methods

(id< NetworkTimeDelegate >) - delegate
 Gets the current network time delegate. More...
 
(void) - setDelegate:
 Sets the network time delegate. More...
 
- Instance Methods inherited from NXObject
(id- retain
 Increases the retain count of the receiver. More...
 
(void) - release
 Decreases the retain count of the receiver. More...
 
(id- autorelease
 Adds the receiver to the autorelease pool.
 
- Instance Methods inherited from Object
(void) - dealloc
 Free resources for an existing instance.
 
(id- init
 Initialize the instance, after allocation. More...
 
(Class- class
 Returns the class of the instance. More...
 
(Class- superclass
 Returns the superclass of the instance. More...
 
(BOOL- isEqual:
 Compares the receiver to another object for equality. More...
 
(BOOL- isKindOfClass:
 Returns a Boolean value that indicates whether the receiver is an instance of a given class. More...
 
(BOOL- conformsTo:
 Checks if the receiver's class conforms to a protocol. More...
 
(NXString *) - description
 Returns a string that represents the instance. More...
 
- Instance Methods inherited from <ObjectProtocol>
(BOOL- respondsToSelector:
 Checks if the receiver responds to a selector. More...
 

Class Methods

(id+ sharedInstance
 A shared instance of the network time manager. More...
 
- Class Methods inherited from NXObject
(id+ allocWithZone:
 Allocates a new instance of an object in a specific memory zone. More...
 
- Class Methods inherited from Object
(void) + initialize
 Performs one-time initialization for the class. More...
 
(id+ alloc
 Allocate a new class instance. More...
 
(Class+ class
 Returns the class object. More...
 
(Class+ superclass
 Returns the superclass of the class. More...
 
(const char *) + name
 Returns the name of the class. More...
 
(BOOL+ conformsTo:
 Checks if the class conforms to a protocol. More...
 
(NXString *) + description
 Returns a string that represents the class. More...
 

Additional Inherited Members

- Protected Attributes inherited from NXObject
id _zone
 The memory zone where the object is allocated.
 
unsigned short _retain
 The retain count of the object.
 
id _next
 The next object in an autorelease pool.
 
- Protected Attributes inherited from Object
Class isa
 A pointer to the object's class structure. More...
 

Detailed Description

A class for managing network time synchronization.

Definition at line 19 of file NXNetworkTime.h.

Method Documentation

◆ delegate()

- (id<NetworkTimeDelegate>) delegate

Gets the current network time delegate.

Returns
The current network time delegate, or nil if no delegate is set.

This method returns the object that serves as the network time delegate.

◆ setDelegate:()

- (void) setDelegate: (id< NetworkTimeDelegate >)  delegate

Sets the network time delegate.

Parameters
delegateThe object to set as the network time delegate, or nil to remove the current delegate.

The delegate object will receive network time-related callbacks when the time is updated from the network. The delegate should conform to the NetworkTimeDelegate protocol.

◆ sharedInstance()

+ (id) sharedInstance

A shared instance of the network time manager.

This variable holds the current network time manager instance that is being used. It is automatically set when a network time manager is created.


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