MonoTouch.UIKit.UIActivityType Class
Identifiers for iOS-provided activities.

See Also: UIActivityType Members

Syntax

[MonoTouch.ObjCRuntime.Availability(Introduced=MonoTouch.ObjCRuntime.Platform.iOS_6_0)]
public static class UIActivityType

See Also

UIActivity
UIActivityViewController

Remarks

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

They are typically used as values for the UIActivity.Type or as parameters in the constructor for 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