Instance Method

canLoadObjects(ofClass:)

Returns a Boolean value that indicates whether at least one drag item in the session can create an instance of the specified class.

Required. Default implementation provided.

Declaration

func canLoadObjects(ofClass aClass: NSItemProviderReading.Type) -> Bool

Parameters

ofClass

A class conforming to the NSItemProviderReading protocol.

Return Value

true if at least one drag item in the session can create an instance of the specified class; otherwise, false.

Default Implementations

UIDragDropSession Implementations

See Also

Checking for Drag Items

func hasItemsConforming(toTypeIdentifiers: [String]) -> Bool

Returns a Boolean value that indicates whether at least one drag item in the session conforms to at least one of the specified UTIs.

Required.

var items: [UIDragItem]

An array of drag items in the drag session or drop session.

Required.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software