Szerkesztés

Megosztás a következőn keresztül:


IUIDragDropSession Interface

Definition

Interface for querying drag-and-drop capabilities and state.

[Foundation.Protocol(Name="UIDragDropSession", WrapperType=typeof(UIKit.UIDragDropSessionWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public interface IUIDragDropSession : IDisposable, ObjCRuntime.INativeObject
type IUIDragDropSession = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Properties

AllowsMoveOperation

Gets a Boolean value that tells whether the session can move items within a single app.

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)
Items

Gets the drag items that are in the session.

RestrictedToDraggingApplication

Gets a Boolean value that tells whether the drag activity is confined to the originating app.

Methods

CanLoadObjects(Class)

Returns a Boolean value that tells whether the session can load objects of the specified class.

HasConformingItems(String[])

TReturns a Boolean value that tells whether the session contains at least one item that is described by any of the specified type identifiers.

LocationInView(UIView)

Returns the location of the drag-drop activity in the coordinate frame of the specified view.

Extension Methods

CanLoadObjects(IUIDragDropSession, Type)

Returns true if the specified session can instantiate items of the specified type.

Applies to