errorDomain
TypeScriptstatic get errorDomain(): stringSwift declarationclass let errorDomain: Stringclass · iOS 8.0+ · SDK 27.1
class NSItemProviderstatic get errorDomain(): stringSwift declarationclass let errorDomain: StringcanLoadObject(aClass: string): booleanSwift declarationfunc canLoadObject(ofClass aClass: any NSItemProviderReading.Type) -> BoolhasItemConformingToTypeIdentifier(typeIdentifier: string): booleanSwift declarationfunc hasItemConformingToTypeIdentifier(_ typeIdentifier: String) -> BoolhasRepresentationConforming(typeIdentifier: string, fileOptions?: NSItemProviderFileOptions): booleanSwift declarationfunc hasRepresentationConforming(toTypeIdentifier typeIdentifier: String, fileOptions: NSItemProviderFileOptions = []) -> Boolstatic init(): NSItemProviderSwift declarationinit()static initContentsOf(fileURL?: (string) | null): (NSItemProvider) | nullSwift declarationconvenience init?(contentsOf fileURL: URL!)static initItemTypeIdentifier(item?: (SDKHandle) | null, typeIdentifier?: (string) | null): NSItemProviderSwift declarationinit(item: (any NSSecureCoding)?, typeIdentifier: String?)static initObject(object: SDKHandle): NSItemProviderSwift declarationconvenience init(object: any NSItemProviderWriting)loadDataRepresentation(typeIdentifier: string, completionHandler: ((arg0: (ArrayBuffer) | null, arg1: (NativeError) | null) => void)): ProgressSwift declarationfunc loadDataRepresentation(forTypeIdentifier typeIdentifier: String, completionHandler: @escaping @Sendable (Data?, (any Error)?) -> Void) -> ProgressloadFileRepresentation(typeIdentifier: string, completionHandler: ((arg0: (string) | null, arg1: (NativeError) | null) => void)): ProgressSwift declarationfunc loadFileRepresentation(forTypeIdentifier typeIdentifier: String, completionHandler: @escaping @Sendable (URL?, (any Error)?) -> Void) -> ProgressloadInPlaceFileRepresentation(typeIdentifier: string, completionHandler: ((arg0: (string) | null, arg1: boolean, arg2: (NativeError) | null) => void)): ProgressSwift declarationfunc loadInPlaceFileRepresentation(forTypeIdentifier typeIdentifier: String, completionHandler: @escaping @Sendable (URL?, Bool, (any Error)?) -> Void) -> ProgressloadItem(typeIdentifier: string, options?: (NativeMap<unknown, unknown>) | null, completionHandler?: (((arg0: (SDKHandle) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc loadItem(forTypeIdentifier typeIdentifier: String, options: [AnyHashable : Any]? = nil) async throws -> any NSSecureCodingloadObject(aClass: string, completionHandler: ((arg0: (SDKHandle) | null, arg1: (NativeError) | null) => void)): ProgressSwift declarationfunc loadObject(ofClass aClass: any NSItemProviderReading.Type, completionHandler: @escaping @Sendable ((any NSItemProviderReading)?, (any Error)?) -> Void) -> ProgressloadPreviewImage(options?: (NativeMap<unknown, unknown>) | null, completionHandler?: (((arg0: (SDKHandle) | null, arg1: (NativeError) | null) => void)) | null): voidSwift declarationfunc loadPreviewImage(options: [AnyHashable : Any]! = [:]) async throws -> any NSSecureCodingregisterItem(typeIdentifier: string, loadHandler: ((arg0: (((arg0: (SDKHandle) | null, arg1: (NativeError) | null) => Promise<void>)) | null, arg1: (string) | null, arg2: (NativeMap<unknown, unknown>) | null) => void)): voidSwift declarationfunc registerItem(forTypeIdentifier typeIdentifier: String, loadHandler: @escaping NSItemProvider.LoadHandler)registerObject(object: SDKHandle, visibility: NSItemProviderRepresentationVisibility): voidSwift declarationfunc registerObject(_ object: any NSItemProviderWriting, visibility: NSItemProviderRepresentationVisibility)registeredTypeIdentifiersFileOptions(fileOptions?: NSItemProviderFileOptions): Array<string>Swift declarationfunc registeredTypeIdentifiers(fileOptions: NSItemProviderFileOptions = []) -> [String]get previewImageHandler(): (((arg0: (((arg0: (SDKHandle) | null, arg1: (NativeError) | null) => void)) | null, arg1: (string) | null, arg2: (NativeMap<unknown, unknown>) | null) => Promise<void>)) | nullSwift declarationvar previewImageHandler: NSItemProvider.LoadHandler? { get set }set previewImageHandler(value: (((arg0: (((arg0: (SDKHandle) | null, arg1: (NativeError) | null) => Promise<void>)) | null, arg1: (string) | null, arg2: (NativeMap<unknown, unknown>) | null) => void)) | null)Swift declarationvar previewImageHandler: NSItemProvider.LoadHandler? { get set }get registeredTypeIdentifiers(): Array<string>Swift declarationvar registeredTypeIdentifiers: [String] { get }get suggestedName(): (string) | nullSwift declarationvar suggestedName: String? { get set }set suggestedName(value: (string) | null)Swift declarationvar suggestedName: String? { get set }6 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
NSItemProvider.registerObject(ofClass:visibility:loadHandler:)
Passing a Swift type itself is not supported.
NSItemProvider.canLoadObject(ofClass:)
Passing a Swift type itself is not supported.
NSItemProvider.loadObject(ofClass:completionHandler:)
Passing a Swift type itself is not supported.
NSItemProvider.registerDataRepresentation(forTypeIdentifier:visibility:loadHandler:)
callback cannot propagate synchronous failure
NSItemProvider.registerFileRepresentation(forTypeIdentifier:fileOptions:visibility:loadHandler:)
callback cannot propagate synchronous failure
NSItemProvider.registerObject(ofClass:visibility:loadHandler:)
callback cannot propagate synchronous failure