iOS Guides | Samples

MonoTouch.UIKit.IUIActivityItemSource

Interface representing the required methods (if any) of the protocol UIActivityItemSource.

See Also: IUIActivityItemSource

Syntax

[MonoTouch.Foundation.Protocol(Name="UIActivityItemSource", WrapperType=typeof(MonoTouch.UIKit.UIActivityItemSourceWrapper))]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetPlaceholderData", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.Foundation.NSObject), Selector="activityViewControllerPlaceholderItem:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetItemForActivity", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.Foundation.NSObject), Selector="activityViewController:itemForActivityType:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetDataTypeIdentifierForActivity", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.String), Selector="activityViewController:dataTypeIdentifierForActivityType:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetSubjectForActivity", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.String), Selector="activityViewController:subjectForActivityType:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetThumbnailImageForActivity", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.UIKit.UIImage), Selector="activityViewController:thumbnailImageForActivityType:suggestedSize:")]
[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 interface IUIActivityItemSource : INativeObject, IDisposable

Remarks

This interface contains the required methods (if any) from the protocol defined by UIActivityItemSource.

If developers create classes that implement this interface, the implementation methods will automatically be exported to Objective-C with the matching signature from the method defined in the UIActivityItemSource protocol.

Optional methods (if any) are provided by the UIActivityItemSource_Extensions class as extension methods to the interface, allowing developers to invoke any optional methods on the protocol.

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

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

Public Methods

GetItemForActivity(UIActivityViewController, NSString) : NSObject
The data to be acted upon by the specified actitivtyType.
GetPlaceholderData(UIActivityViewController) : NSObject
Returns data that can be used as a placeholder for real data.