init
TypeScriptstatic initResolvingAliasFileAtOptions(url: string, options?: NSURL_BookmarkResolutionOptions): NSURLSwift declarationconvenience init(resolvingAliasFileAt url: URL, options: NSURL.BookmarkResolutionOptions = []) throwsclass · SDK 27.1
class NSURLstatic initResolvingAliasFileAtOptions(url: string, options?: NSURL_BookmarkResolutionOptions): NSURLSwift declarationconvenience init(resolvingAliasFileAt url: URL, options: NSURL.BookmarkResolutionOptions = []) throwsstatic absoluteURLWithDataRepresentationRelativeTo(data: ArrayBuffer, baseURL?: (string) | null): stringSwift declarationclass func absoluteURL(withDataRepresentation data: Data, relativeTo baseURL: URL?) -> URLstatic bookmarkDataWithContentsOf(bookmarkFileURL: string): ArrayBufferSwift declarationclass func bookmarkData(withContentsOf bookmarkFileURL: URL) throws -> Datastatic fileURLWithFileSystemRepresentationIsDirectoryRelativeTo(path: SDKHandle, isDir: boolean, baseURL?: (string) | null): stringSwift declarationclass func fileURL(withFileSystemRepresentation path: UnsafePointer<CChar>, isDirectory isDir: Bool, relativeTo baseURL: URL?) -> URLstatic fileURLWithPath(path: string): stringSwift declarationclass func fileURL(withPath path: String) -> URLstatic fileURLWithPathIsDirectory(path: string, isDir: boolean): stringSwift declarationclass func fileURL(withPath path: String, isDirectory isDir: Bool) -> URLstatic fileURLWithPathIsDirectoryRelativeTo(path: string, isDir: boolean, baseURL?: (string) | null): stringSwift declarationclass func fileURL(withPath path: String, isDirectory isDir: Bool, relativeTo baseURL: URL?) -> URLstatic fileURLWithPathRelativeTo(path: string, baseURL?: (string) | null): stringSwift declarationclass func fileURL(withPath path: String, relativeTo baseURL: URL?) -> URLstatic fileURLWithPathComponents(components: Array<string>): (string) | nullSwift declarationclass func fileURL(withPathComponents components: [String]) -> URL?static resourceValuesForKeysFromBookmarkData(keys: Array<URLResourceKey>, bookmarkData: ArrayBuffer): (NativeMap<URLResourceKey, unknown>) | nullSwift declarationclass func resourceValues(forKeys keys: [URLResourceKey], fromBookmarkData bookmarkData: Data) -> [URLResourceKey : Any]?static writeBookmarkData(bookmarkData: ArrayBuffer, bookmarkFileURL: string, options: number): voidSwift declarationclass func writeBookmarkData(_ bookmarkData: Data, to bookmarkFileURL: URL, options: NSURL.BookmarkFileCreationOptions) throwsappendingPathComponent(pathComponent: string): (string) | nullSwift declarationfunc appendingPathComponent(_ pathComponent: String) -> URL?appendingPathComponentIsDirectory(pathComponent: string, isDirectory: boolean): (string) | nullSwift declarationfunc appendingPathComponent(_ pathComponent: String, isDirectory: Bool) -> URL?appendingPathExtension(pathExtension: string): (string) | nullSwift declarationfunc appendingPathExtension(_ pathExtension: String) -> URL?bookmarkDataOptionsIncludingResourceValuesForKeysRelativeTo(options?: NSURL_BookmarkCreationOptions, keys?: (Array<URLResourceKey>) | null, relativeURL?: (string) | null): ArrayBufferSwift declarationfunc bookmarkData(options: NSURL.BookmarkCreationOptions = [], includingResourceValuesForKeys keys: [URLResourceKey]?, relativeTo relativeURL: URL?) throws -> DatacheckPromisedItemIsReachableAndReturnError(): { $ret: boolean; $out: { "error": (NSError) | null } }Swift declarationfunc checkPromisedItemIsReachableAndReturnError(_ error: NSErrorPointer) -> BoolOmit the output parameters from the call. The result contains $ret and $out, with error inside $out.
checkResourceIsReachableAndReturnError(): { $ret: boolean; $out: { "error": (NSError) | null } }Swift declarationfunc checkResourceIsReachableAndReturnError(_ error: NSErrorPointer) -> BoolOmit the output parameters from the call. The result contains $ret and $out, with error inside $out.
fileReferenceURL(): (string) | nullSwift declarationfunc fileReferenceURL() -> URL?getFileSystemRepresentation(buffer: SDKHandle, maxBufferLength: number): booleanSwift declarationfunc getFileSystemRepresentation(_ buffer: UnsafeMutablePointer<CChar>, maxLength maxBufferLength: Int) -> BoolgetPromisedItemResourceValue(key: URLResourceKey): { $ret: null; $out: { "value": (unknown) | null } }Swift declarationfunc getPromisedItemResourceValue(_ value: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey key: URLResourceKey) throwsOmit the output parameters from the call. The result contains $ret and $out, with value inside $out.
getResourceValue(key: URLResourceKey): { $ret: null; $out: { "value": (unknown) | null } }Swift declarationfunc getResourceValue(_ value: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey key: URLResourceKey) throwsOmit the output parameters from the call. The result contains $ret and $out, with value inside $out.
static initAbsoluteURLWithDataRepresentationRelativeTo(data: ArrayBuffer, baseURL?: (string) | null): NSURLSwift declarationinit(absoluteURLWithDataRepresentation data: Data, relativeTo baseURL: URL?)static initResolvingBookmarkDataOptionsRelativeToBookmarkDataIsStale(bookmarkData: ArrayBuffer, options?: NSURL_BookmarkResolutionOptions, relativeURL?: (string) | null): { $ret: NSURL; $out: { "isStale": boolean } }Swift declarationconvenience init(resolvingBookmarkData bookmarkData: Data, options: NSURL.BookmarkResolutionOptions = [], relativeTo relativeURL: URL?, bookmarkDataIsStale isStale: UnsafeMutablePointer<ObjCBool>?) throwsOmit the output parameters from the call. The result contains $ret and $out, with isStale inside $out.
static initFileURLWithFileSystemRepresentationIsDirectoryRelativeTo(path: SDKHandle, isDir: boolean, baseURL?: (string) | null): NSURLSwift declarationinit(fileURLWithFileSystemRepresentation path: UnsafePointer<CChar>, isDirectory isDir: Bool, relativeTo baseURL: URL?)static initFileURLWithPath(path: string): NSURLSwift declarationinit(fileURLWithPath path: String)static initFileURLWithPathIsDirectory(path: string, isDir: boolean): NSURLSwift declarationinit(fileURLWithPath path: String, isDirectory isDir: Bool)static initFileURLWithPathIsDirectoryRelativeTo(path: string, isDir: boolean, baseURL?: (string) | null): NSURLSwift declarationinit(fileURLWithPath path: String, isDirectory isDir: Bool, relativeTo baseURL: URL?)static initFileURLWithPathRelativeTo(path: string, baseURL?: (string) | null): NSURLSwift declarationinit(fileURLWithPath path: String, relativeTo baseURL: URL?)static initDataRepresentationRelativeTo(data: ArrayBuffer, baseURL?: (string) | null): NSURLSwift declarationinit(dataRepresentation data: Data, relativeTo baseURL: URL?)static initSchemeHostPath(scheme: string, host: (string) | null, path: string): (NSURL) | nullSwift declarationconvenience init?(scheme: String, host: String?, path: String)static initString(URLString: string): (NSURL) | nullSwift declarationconvenience init?(string URLString: String)static initStringEncodingInvalidCharacters(URLString: string, encodingInvalidCharacters: boolean): (NSURL) | nullSwift declarationconvenience init?(string URLString: String, encodingInvalidCharacters: Bool)static initStringRelativeTo(URLString: string, baseURL?: (string) | null): (NSURL) | nullSwift declarationinit?(string URLString: String, relativeTo baseURL: URL?)isFileReferenceURL(): booleanSwift declarationfunc isFileReferenceURL() -> BoolpromisedItemResourceValues(keys: Array<URLResourceKey>): NativeMap<URLResourceKey, unknown>Swift declarationfunc promisedItemResourceValues(forKeys keys: [URLResourceKey]) throws -> [URLResourceKey : Any]removeAllCachedResourceValues(): voidSwift declarationfunc removeAllCachedResourceValues()removeCachedResourceValue(key: URLResourceKey): voidSwift declarationfunc removeCachedResourceValue(forKey key: URLResourceKey)resourceValuesForKeys(keys: Array<URLResourceKey>): NativeMap<URLResourceKey, unknown>Swift declarationfunc resourceValues(forKeys keys: [URLResourceKey]) throws -> [URLResourceKey : Any]setResourceValue(value: (unknown) | null, key: URLResourceKey): voidSwift declarationfunc setResourceValue(_ value: Any?, forKey key: URLResourceKey) throwssetResourceValues(keyedValues: NativeMap<URLResourceKey, unknown>): voidSwift declarationfunc setResourceValues(_ keyedValues: [URLResourceKey : Any]) throwssetTemporaryResourceValue(value: (SDKHandle) | null, key: URLResourceKey): voidSwift declarationfunc setTemporaryResourceValue(_ value: (any Sendable)?, forKey key: URLResourceKey)startAccessingSecurityScopedResource(): booleanSwift declarationfunc startAccessingSecurityScopedResource() -> BoolstopAccessingSecurityScopedResource(): voidSwift declarationfunc stopAccessingSecurityScopedResource()get deletingLastPathComponent(): (string) | nullSwift declarationvar deletingLastPathComponent: URL? { get }get deletingPathExtension(): (string) | nullSwift declarationvar deletingPathExtension: URL? { get }get resolvingSymlinksInPath(): (string) | nullSwift declarationvar resolvingSymlinksInPath: URL? { get }get standardizingPath(): (string) | nullSwift declarationvar standardizingPath: URL? { get }get absoluteString(): (string) | nullSwift declarationvar absoluteString: String? { get }get absoluteURL(): (string) | nullSwift declarationvar absoluteURL: URL? { get }get baseURL(): (string) | nullSwift declarationvar baseURL: URL? { get }get dataRepresentation(): ArrayBufferSwift declarationvar dataRepresentation: Data { get }get filePathURL(): (string) | nullSwift declarationvar filePathURL: URL? { get }get fileSystemRepresentation(): SDKHandleSwift declarationvar fileSystemRepresentation: UnsafePointer<CChar> { get }get isFileURL(): booleanSwift declarationvar isFileURL: Bool { get }get fragment(): (string) | nullSwift declarationvar fragment: String? { get }get hasDirectoryPath(): booleanSwift declarationvar hasDirectoryPath: Bool { get }get host(): (string) | nullSwift declarationvar host: String? { get }get lastPathComponent(): (string) | nullSwift declarationvar lastPathComponent: String? { get }get parameterString(): (string) | nullSwift declarationvar parameterString: String? { get }get password(): (string) | nullSwift declarationvar password: String? { get }get path(): (string) | nullSwift declarationvar path: String? { get }get pathComponents(): (Array<string>) | nullSwift declarationvar pathComponents: [String]? { get }get pathExtension(): (string) | nullSwift declarationvar pathExtension: String? { get }get port(): (NSNumber) | nullSwift declaration@NSCopying var port: NSNumber? { get }get query(): (string) | nullSwift declarationvar query: String? { get }get relativePath(): (string) | nullSwift declarationvar relativePath: String? { get }get relativeString(): stringSwift declarationvar relativeString: String { get }get resourceSpecifier(): (string) | nullSwift declarationvar resourceSpecifier: String? { get }get scheme(): (string) | nullSwift declarationvar scheme: String? { get }get standardized(): (string) | nullSwift declarationvar standardized: URL? { get }get user(): (string) | nullSwift declarationvar user: String? { get }get customPlaygroundQuickLook(): SDKHandleSwift declarationvar customPlaygroundQuickLook: PlaygroundQuickLook { get }A custom playground Quick Look for this instance. If this type has value semantics, the `PlaygroundQuickLook` instance should be unaffected by subsequent mutations.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
NSURL.init()
inherited init: cannot prove legal (class declares 23 custom initializers)