UIDragDropSessionExtensions.LoadObjects<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Loads objects of the specified type from the drop session and invokes the completion handler when done.
public static Foundation.NSProgress LoadObjects<T>(this UIKit.IUIDropSession session, Action<T[]> completion) where T : Foundation.NSObject, Foundation.INSItemProviderReading;
public static Foundation.NSProgress LoadObjects<T>(this UIKit.IUIDropSession session, Action<T[]?> completion) where T : Foundation.NSObject, Foundation.INSItemProviderReading;
static member LoadObjects : UIKit.IUIDropSession * Action<'T[]> -> Foundation.NSProgress (requires 'T :> Foundation.NSObject and 'T :> Foundation.INSItemProviderReading)
Type Parameters
- T
The type of objects to load from the drop session.
Parameters
- session
- IUIDropSession
The drop session to load objects from.
- completion
- Action<T[]>
The completion handler to invoke with the loaded objects.
Returns
An NSProgress object that can be used to track the loading progress.