iOS Guides | Samples

UIKit.UIActivityItemSource Class

Abstract class that, when implemented, provides data for use by a UIActivityViewController

See Also: UIActivityItemSource


[Foundation.Register("UIActivityItemSource", false)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public abstract class UIActivityItemSource : NSObject, IDisposable, IUIActivityItemSource


This class should not be used for complex processing, as it is called on the main UI thread. Applications that require complex processing of data before passing it to UIActivity objects should implement UIActivityItemProvider.

Related content


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

The members of UIKit.UIActivityItemSource are listed below.

See Also: NSObject

Protected Constructors

Default constructor, initializes a new instance of this class.
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 Methods

GetDataTypeIdentifierForActivity(UIActivityViewController, NSString) : String
If the specified activityType provides NSData, this method returns the Uniform Type Identifier (UTI) of the item.
GetItemForActivity(UIActivityViewController, NSString) : NSObject
The data object to be acted upon for the specified activityType .
GetPlaceholderData(UIActivityViewController) : NSObject
The placeholder object for the data.
GetSubjectForActivity(UIActivityViewController, NSString) : String
Returns the subject for the specified activityType .
GetThumbnailImageForActivity(UIActivityViewController, NSString, CGSize) : UIImage
Returns the preview image for the specified activityType.