UIActivityType
UIActivityType
Class
Definition
Identifiers for iOS-provided activities.
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static class UIActivityType
type UIActivityType = class
- Inheritance
- Attributes
Remarks
These identifiers correspond to the Type property of the iOS-provided UIActivitys.
They are typically used as values for the Type or as parameters in the constructor for UIActivityViewController.
//
// Share an image
//
var imageToShare = UIImage.FromFile ("demo.png");
var activityItems = new NSObject[] { imageToShare };
var controller = new UIActivityViewController (activityItems, null);
this.PresentViewController(controller, true, null)
//
// Now share the image, but explicitly exclude posting as a message
//
controller = new UIActivityViewController (activityItems, null) {
ExcludedActivityTypes = new NSString[] {
UIActivityType.PostToWeibo,
UIActivityType.Message
}
};
this.PresentViewController(controller, true, null)
Properties
AddToReadingList AddToReadingList |
This activity adds a URL to the Safari Reading List. |
AirDrop AirDrop |
Makes the provided object available over AirDrop. |
AssignToContact AssignToContact |
Assigns a UIImage to a contact. |
CopyToPasteboard CopyToPasteboard |
Makes the object available on the pasteboard. |
Mail Mail |
Sends the provided content by email. |
MarkupAsPdf MarkupAsPdf | |
Message Message |
Represents the value associated with the constant UIActivityTypeMessage |
OpenInIBooks OpenInIBooks |
Indicates the activity of opening a document in iBooks. |
PostToFacebook PostToFacebook |
Represents the value associated with the constant UIActivityTypePostToFacebook |
PostToFlickr PostToFlickr |
Represents the value associated with the constant UIActivityTypePostToFlickr |
PostToTencentWeibo PostToTencentWeibo |
Represents the value associated with the constant UIActivityTypePostToTencentWeibo |
PostToTwitter PostToTwitter |
Represents the value associated with the constant UIActivityTypePostToTwitter |
PostToVimeo PostToVimeo |
Represents the value associated with the constant UIActivityTypePostToVimeo |
PostToWeibo PostToWeibo |
Represents the value associated with the constant UIActivityTypePostToWeibo |
Print Print |
Used to print the provided object. |
SaveToCameraRoll SaveToCameraRoll |
Represents the value associated with the constant UIActivityTypeSaveToCameraRoll |
Applies to
See also
Feedback
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.
Loading feedback...