iOS Guides | Samples

MonoTouch.UIKit.UIActivityItemSource Class

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

See Also: UIActivityItemSource


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


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: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions:

The members of MonoTouch.UIKit.UIActivityItemSource are listed below.

See Also: NSObject

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.
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, SizeF) : UIImage
Returns the preview image for the specified activityType.