iOS Guides | Samples

MonoTouch.UIKit.UIActivityType Class

Identifiers for iOS-provided activities.

See Also: UIActivityType

Syntax

[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 static class UIActivityType

See Also

Remarks

These identifiers correspond to the UIActivity.Type property of the iOS-provided UIActivitys.

They are typically used as values for the UIActivity.Type or as parameters in the constructor for UIKit.UIActivityViewController.

c# Example

//
// 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)

Requirements

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

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

See Also: Object

Public Properties

[read-only]
static
AddToReadingListNSString. This activity adds a URL to the Safari Reading List.
[read-only]
static
AirDropNSString. Makes the provided object available over AirDrop.
[read-only]
static
AssignToContactNSString. Assigns a UIImage to a contact.
[read-only]
static
CopyToPasteboardNSString. Makes the object available on the pasteboard.
[read-only]
static
MailNSString. Sends the provided content by email.
[read-only]
static
MessageNSString. Represents the value associated with the constant UIActivityTypeMessage
[read-only]
static
OpenInIBooksNSString. Indicates the activity of opening a document in iBooks.
[read-only]
static
PostToFacebookNSString. Represents the value associated with the constant UIActivityTypePostToFacebook
[read-only]
static
PostToFlickrNSString. Represents the value associated with the constant UIActivityTypePostToFlickr
[read-only]
static
PostToTencentWeiboNSString. Represents the value associated with the constant UIActivityTypePostToTencentWeibo
[read-only]
static
PostToTwitterNSString. Represents the value associated with the constant UIActivityTypePostToTwitter
[read-only]
static
PostToVimeoNSString. Represents the value associated with the constant UIActivityTypePostToVimeo
[read-only]
static
PostToWeiboNSString. Represents the value associated with the constant UIActivityTypePostToWeibo
[read-only]
static
PrintNSString. Used to print the provided object.
[read-only]
static
SaveToCameraRollNSString. Represents the value associated with the constant UIActivityTypeSaveToCameraRoll