iOS Guides | Samples

Foundation.NSItemProvider Class

Coordinates the data used by an NSExtensionItem and its NSExtensionItem.Properties.

See Also: NSItemProvider

Syntax

[Foundation.Register("NSItemProvider", true)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public class NSItemProvider : NSObject, INSCopying, IDisposable

Related content

Requirements

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

The members of Foundation.NSItemProvider are listed below.

See Also: NSObject

Public Constructors

Default constructor, initializes a new instance of this class.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
static
ErrorDomainNSString. Represents the value associated with the constant NSItemProviderErrorDomain
[read-only]
static
PreferredImageSizeKeyNSString. Represents the value associated with the constant NSItemProviderPreferredImageSizeKey
PreferredPresentationSizeCGSize.
PreferredPresentationStyleUIPreferredPresentationStyle.
[read-only]
RegisteredTypeIdentifiersString[].
SuggestedNameString.
TeamDataNSData.

Public Methods

CanLoadObject(Class) : Boolean
CanLoadObject(Type) : Boolean
Copy(NSZone) : NSObject
Performs a copy of the underlying Objective-C object.
GetRegisteredTypeIdentifiers(NSItemProviderFileOptions) : String[]
HasConformingRepresentation(String, NSItemProviderFileOptions) : Boolean
HasItemConformingTo(String) : Boolean
LoadDataRepresentation(String, Action<NSData, NSError>) : NSProgress
LoadDataRepresentationAsync(String) : System.Threading.Tasks.Task<NSData>
LoadDataRepresentationAsync(String, out NSProgress) : System.Threading.Tasks.Task<NSData>
LoadFileRepresentation(String, Action<NSUrl, NSError>) : NSProgress
LoadFileRepresentationAsync(String) : System.Threading.Tasks.Task<NSUrl>
LoadFileRepresentationAsync(String, out NSProgress) : System.Threading.Tasks.Task<NSUrl>
LoadInPlaceFileRepresentation(String, LoadInPlaceFileRepresentationHandler) : NSProgress
LoadInPlaceFileRepresentationAsync(String) : System.Threading.Tasks.Task<LoadInPlaceResult>
LoadInPlaceFileRepresentationAsync(String, out NSProgress) : System.Threading.Tasks.Task<LoadInPlaceResult>
LoadItem(String, NSDictionary, Action<NSObject, NSError>)
LoadItemAsync(String, NSDictionary) : System.Threading.Tasks.Task<NSObject>
LoadObject(Class, Action<INSItemProviderReading, NSError>) : NSProgress
LoadObject<T>(Action<T, NSError>) : NSProgress
LoadObjectAsync(Class) : System.Threading.Tasks.Task<INSItemProviderReading>
LoadObjectAsync(Class, out NSProgress) : System.Threading.Tasks.Task<INSItemProviderReading>
LoadObjectAsync<T>() : System.Threading.Tasks.Task<T>
LoadObjectAsync<T>(out NSProgress) : System.Threading.Tasks.Task<T>
LoadPreviewImage(NSDictionary, Action<NSObject, NSError>)
LoadPreviewImageAsync(NSDictionary) : System.Threading.Tasks.Task<NSObject>
RegisterDataRepresentation(String, NSItemProviderRepresentationVisibility, RegisterDataRepresentationLoadHandler)
RegisterFileRepresentation(String, NSItemProviderFileOptions, NSItemProviderRepresentationVisibility, RegisterFileRepresentationLoadHandler)
RegisterItemForTypeIdentifier(String, NSItemProviderLoadHandler)
RegisterObject(INSItemProviderWriting, NSItemProviderRepresentationVisibility)
RegisterObject(Class, NSItemProviderRepresentationVisibility, RegisterObjectRepresentationLoadHandler)
RegisterObject(Type, NSItemProviderRepresentationVisibility, RegisterObjectRepresentationLoadHandler)
SetPreviewImageHandler(NSItemProviderLoadHandler)