UIActivityItemProvider Class
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 subtyped, can be a proxy for the data of a UIActivity.
[Foundation.Register("UIActivityItemProvider", true)]
public class UIActivityItemProvider : Foundation.NSOperation, IDisposable, UIKit.IUIActivityItemSource
[<Foundation.Register("UIActivityItemProvider", true)>]
type UIActivityItemProvider = class
inherit NSOperation
interface IUIActivityItemSource
interface INativeObject
interface IDisposable
- Inheritance
- Attributes
- Implements
Remarks
This class can be used to provide lightweight proxy data to a UIActivityViewController. Difference services represented by UIActivity classes might require additional processing of the data being sent (for example, one service might take text wrapped in HTML tags while another might require straight text, a service might require images to be converted to a certain format or size, etc.). Rather than perform all that potentially expensive processing for every possible service, a UIActivityItemProvider can be used. Once a the particular service is chosen, the Item property is accessed and the needed processing can be performed by the application.
If processing is minimal, application developers may choose to implement UIActivityItemSource rather than subclass UIActivityItemProvider.
The members of this class can be used from a background thread.
Constructors
| Name | Description |
|---|---|
| UIActivityItemProvider(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| UIActivityItemProvider(NSObject) | |
| UIActivityItemProvider(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| Name | Description |
|---|---|
| AccessibilityAttributedUserInputLabels | (Inherited from NSObject) |
| AccessibilityRespondsToUserInteraction | (Inherited from NSObject) |
| AccessibilityTextualContext | (Inherited from NSObject) |
| AccessibilityUserInputLabels | (Inherited from NSObject) |
| ActivityType | |
| Asynchronous | (Inherited from NSOperation) |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. |
| CompletionBlock | (Inherited from NSOperation) |
| DebugDescription | (Inherited from NSObject) |
| Dependencies | (Inherited from NSOperation) |
| Description | (Inherited from NSObject) |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| IsCancelled |
Whether this NSOperation has been cancelled. (Inherited from NSOperation) |
| IsConcurrent |
Whether this operation runs asynchronously. (Inherited from NSOperation) |
| IsDirectBinding | (Inherited from NSObject) |
| IsExecuting |
Whether this operation is currently executing. (Inherited from NSOperation) |
| IsFinished |
Whether this operation is done executing. (Inherited from NSOperation) |
| IsProxy | (Inherited from NSObject) |
| IsReady |
Whether this operation can be performed now. (Inherited from NSOperation) |
| Item | |
| Name | (Inherited from NSOperation) |
| PlaceholderItem | |
| QualityOfService | (Inherited from NSOperation) |
| QueuePriority | (Inherited from NSOperation) |
| RetainCount | (Inherited from NSObject) |
| Self | (Inherited from NSObject) |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| ThreadPriority | (Inherited from NSOperation) |
| Zone | (Inherited from NSObject) |