iOS Guides | Samples

UIKit.IUIDropSession

Interface for accessing drop session state and loading drag items.

See Also: IUIDropSession

Syntax

[Foundation.Protocol(Name="UIDropSession", WrapperType=typeof(UIKit.UIDropSessionWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="LoadObjects", ParameterBlockProxy=Mono.Cecil.CustomAttributeArgument[], ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(Foundation.NSProgress), Selector="loadObjectsOfClass:completion:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="localDragSession", IsProperty=true, IsRequired=true, IsStatic=false, Name="LocalDragSession", PropertyType=typeof(UIKit.IUIDragSession), Selector="localDragSession")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="progressIndicatorStyle", IsProperty=true, IsRequired=true, IsStatic=false, Name="ProgressIndicatorStyle", PropertyType=typeof(UIKit.UIDropSessionProgressIndicatorStyle), Selector="progressIndicatorStyle", SetterSelector="setProgressIndicatorStyle:")]
[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 IUIDropSession : INSProgressReporting, IDisposable, IUIDragDropSession

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of UIKit.IUIDropSession are listed below.

Public Properties

[read-only]
LocalDragSessionIUIDragSession. The local in-app drag session for the drop session.
ProgressIndicatorStyleUIDropSessionProgressIndicatorStyle. Gets or sets the style of the drop indicator.

Public Methods

LoadObjects(Class, Action<Foundation.INSItemProviderReading[]>) : NSProgress
When implemented by the developer, instantiates every object in the drop session that has the type that is specified by the parameter.