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.