loadObject(ofClass:completionHandler:)
Asynchronously loads an object of a specified class to an item provider, returning a progress object.
Declaration
@preconcurrency func loadObject<T>(ofClass: T.Type, completionHandler: @escaping @Sendable (T?, (any Error)?) -> Void) -> Progress where T : _ObjectiveCBridgeable, T._ObjectiveCType : NSItemProviderReadingSee Also
Loading the provider’s contents
loadItem(forTypeIdentifier:options:completionHandler:)loadDataRepresentation(forTypeIdentifier:completionHandler:)loadDataRepresentation(for:completionHandler:)loadFileRepresentation(forTypeIdentifier:completionHandler:)loadFileRepresentation(for:openInPlace:completionHandler:)loadInPlaceFileRepresentation(forTypeIdentifier:completionHandler:)loadObject(ofClass:completionHandler:)loadTransferable(type:completionHandler:)