NSObject
The root class of most Foundation class hierarchies.
class NSObject
The root class of most Foundation class hierarchies.
class NSObject
import Foundation
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol NSObjectProtocol : AnyObject
The NSObjectProtocol
groups methods that are fundamental to all Foundation objects.
init()
Implemented by subclasses to initialize a new object immediately after memory for it has been allocated.
class var superclass: AnyClass? { get }
class func classFallbacksForKeyedArchiver() -> [String]
Overridden to return the names of classes that can be used to decode objects if their class is unavailable.
class func classForKeyedUnarchiver() -> AnyClass
Overridden by subclasses to substitute a new class during keyed unarchiving.
class func isSubclass(of aClass: AnyClass) -> Bool
Returns a Boolean value that indicates whether the receiving class is a subclass of, or identical to, a given class.
var classForCoder: AnyClass { get }
Overridden by subclasses to substitute a class other than its own during coding.
var classForKeyedArchiver: AnyClass? { get }
Subclasses to substitute a new class for instances during keyed archiving.
var debugDescription: String { get }
Returns a string that describes the contents of the instance for presentation in the debugger.
var description: String { get }
Returns a string that describes the contents of the instance.
var hash: Int { get }
final var hashValue: Int { get }
The hash value.
static func == (lhs: NSObject, rhs: NSObject) -> Bool
func copy() -> Any
Returns the object returned by copy(with:)
.
final func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
func isEqual(_ object: Any?) -> Bool
Returns a Boolean value that indicates whether the instance is equal to another given object.
func isKind(of aClass: AnyClass) -> Bool
func isMember(of aClass: AnyClass) -> Bool
func isProxy() -> Bool
func mutableCopy() -> Any
Returns the object returned by mutableCopy(with:)
where the zone is nil.
func replacementObject(for archiver: NSKeyedArchiver) -> Any?
Overridden by subclasses to substitute another object for itself during keyed archiving.
func replacementObject(for aCoder: NSCoder) -> Any?
Overridden by subclasses to substitute another object for itself during encoding.
func `self`() -> Self
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
class Bundle
class FileHandle
class Formatter
class Host
class JSONSerialization
class NSAffineTransform
class NSArray
class NSAttributedString
class NSCache<KeyType, ObjectType> where KeyType : AnyObject, ObjectType : AnyObject
class NSCalendar
class NSCharacterSet
class NSCoder
The NSCoder
abstract class declares the interface used by concrete subclasses to transfer objects and other values between memory and some other format. This capability provides the basis for archiving (where objects and data items are stored on disk) and distribution (where objects and data items are copied between different processes or threads). The concrete subclasses provided by Foundation for these purposes are NSKeyedArchiver
and NSKeyedUnarchiver
. Concrete subclasses of NSCoder
are referred to in general as coder classes, and instances of these classes as coder objects (or simply coders). A coder object that can only encode values is referred to as an encoder object, and one that can only decode values as a decoder object.
class NSCondition
class NSConditionLock
class NSData
class NSDate
class NSDateComponents
class NSDateInterval
class NSDecimalNumberHandler
********* A class for defining common behaviors ******
class NSDictionary
class NSEnumerator
class NSError
class NSIndexPath
class NSIndexSet
class NSLocale
class NSLock
class NSMeasurement
class NSNotification
class NSNull
class NSOrderedSet
class NSPersonNameComponents
class NSPredicate
class NSRecursiveLock
class NSRegularExpression
class NSSet
class NSSortDescriptor
class NSString
class NSTextCheckingResult
class NSTimeZone
class NSURL
class NSURLComponents
class NSURLQueryItem
class NSUUID
class NSValue
class NotificationCenter
class NotificationQueue
class Operation
class OperationQueue
class Pipe
class Port
class PortMessage
class Process
class Progress
Progress
is used to report the amount of work done, and provides a way to allow the user to cancel that work.
class PropertyListSerialization
class RunLoop
class Scanner
class Stream
class Thread
class Timer
class Unit
class UnitConverter
class UserDefaults
class NSExpression
class NSOrthography
import FoundationNetworking
class CachedURLResponse
class HTTPCookie
HTTPCookie
represents an http cookie.
class HTTPCookieStorage
class NSURLRequest
An NSURLRequest
object represents a URL load request in a manner independent of protocol and URL scheme.
class URLAuthenticationChallenge
class URLCache
class URLCredential
class URLCredentialStorage
class URLProtectionSpace
class URLProtocol
class URLResponse
An URLResponse
object represents a URL load response in a manner independent of protocol and URL scheme.
class URLSession
class URLSessionConfiguration
Configuration options for an URLSession.
class URLSessionTask
A cancelable object that refers to the lifetime of processing a given request.
class URLSessionTaskMetrics
class URLSessionTaskTransactionMetrics
import FoundationXML
class XMLNode
class XMLParser
import Alamofire
class SessionDelegate
Class which implements the various URLSessionDelegate
methods to connect various Alamofire features.