Contents

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 : NSItemProviderReading

See Also

Loading the provider’s contents