UIDragDropSessionExtensions.LoadObjects<T> Method

Definition

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.

Applies to