iOS Guides | Samples

UIKit.UIActivityItemSource Class

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

See Also: UIActivityItemSource

Syntax

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

Remarks

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

Requirements

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

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.
abstract
GetItemForActivity(UIActivityViewController, NSString) : NSObject
The data object to be acted upon for the specified activityType .
abstract
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.