IUIActivityItemSource Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Abstract class that, when implemented, provides data for use by a UIActivityViewController
[Foundation.Protocol(Name="UIActivityItemSource", WrapperType=typeof(UIKit.UIActivityItemSourceWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetPlaceholderData", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIActivityViewController) }, ReturnType=typeof(Foundation.NSObject), Selector="activityViewControllerPlaceholderItem:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetItemForActivity", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIActivityViewController), typeof(Foundation.NSString) }, ReturnType=typeof(Foundation.NSObject), Selector="activityViewController:itemForActivityType:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetDataTypeIdentifierForActivity", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIActivityViewController), typeof(Foundation.NSString) }, ReturnType=typeof(System.String), Selector="activityViewController:dataTypeIdentifierForActivityType:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetSubjectForActivity", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIActivityViewController), typeof(Foundation.NSString) }, ReturnType=typeof(System.String), Selector="activityViewController:subjectForActivityType:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetThumbnailImageForActivity", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIActivityViewController), typeof(Foundation.NSString), typeof(CoreGraphics.CGSize) }, ReturnType=typeof(UIKit.UIImage), Selector="activityViewController:thumbnailImageForActivityType:suggestedSize:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetLinkMetadata", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIActivityViewController) }, ReturnType=typeof(LinkPresentation.LPLinkMetadata), Selector="activityViewControllerLinkMetadata:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetShareRecipients", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIActivityViewController) }, ReturnType=typeof(Intents.INPerson[]), Selector="activityViewControllerShareRecipients:")]
public interface IUIActivityItemSource : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="UIActivityItemSource", WrapperType=typeof(UIKit.UIActivityItemSourceWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetPlaceholderData", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIActivityViewController) }, ReturnType=typeof(Foundation.NSObject), Selector="activityViewControllerPlaceholderItem:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetItemForActivity", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIActivityViewController), typeof(Foundation.NSString) }, ReturnType=typeof(Foundation.NSObject), Selector="activityViewController:itemForActivityType:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetDataTypeIdentifierForActivity", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIActivityViewController), typeof(Foundation.NSString) }, ReturnType=typeof(System.String), Selector="activityViewController:dataTypeIdentifierForActivityType:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetSubjectForActivity", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIActivityViewController), typeof(Foundation.NSString) }, ReturnType=typeof(System.String), Selector="activityViewController:subjectForActivityType:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetThumbnailImageForActivity", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIActivityViewController), typeof(Foundation.NSString), typeof(CoreGraphics.CGSize) }, ReturnType=typeof(UIKit.UIImage), Selector="activityViewController:thumbnailImageForActivityType:suggestedSize:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetLinkMetadata", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIActivityViewController) }, ReturnType=typeof(LinkPresentation.LPLinkMetadata), Selector="activityViewControllerLinkMetadata:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetShareRecipients", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIActivityViewController) }, ReturnType=typeof(Intents.INPerson[]), Selector="activityViewControllerShareRecipients:")>]
type IUIActivityItemSource = interface
interface INativeObject
interface IDisposable
- Derived
- Attributes
- Implements
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.
Properties
| Name | Description |
|---|---|
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from INativeObject) |
Methods
| Name | Description |
|---|---|
| GetDataTypeIdentifierForActivity(UIActivityViewController, NSString) |
If the specified provides NSData, this method returns the Uniform Type Identifier (UTI) of the item. |
| GetItemForActivity(UIActivityViewController, NSString) |
The data to be acted upon by the specified actitivtyType. |
| GetLinkMetadata(UIActivityViewController) | |
| GetPlaceholderData(UIActivityViewController) |
Returns data that can be used as a placeholder for real data. |
| GetShareRecipients(UIActivityViewController) | |
| GetSubjectForActivity(UIActivityViewController, NSString) |
Returns the subject for the specified . |
| GetThumbnailImageForActivity(UIActivityViewController, NSString, CGSize) |
Returns the preview image for the specified . |
Extension Methods
| Name | Description |
|---|---|
| GetHandle(INativeObject) | |
| GetNonNullHandle(INativeObject, String) | |
| GetDataTypeIdentifierForActivity(IUIActivityItemSource, UIActivityViewController, NSString) |
If the specified provides NSData, this method returns the Uniform Type Identifier (UTI) of the item. |
| GetLinkMetadata(IUIActivityItemSource, UIActivityViewController) | |
| GetShareRecipients(IUIActivityItemSource, UIActivityViewController) | |
| GetSubjectForActivity(IUIActivityItemSource, UIActivityViewController, NSString) |
Returns the subject for the specified . |
| GetThumbnailImageForActivity(IUIActivityItemSource, UIActivityViewController, NSString, CGSize) |
Returns the preview image for the specified . |