UIKit.UIActivityType Class
Identifiers for iOS-provided activities.

See Also: UIActivityType Members

Syntax

[ObjCRuntime.Availability(Introduced=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 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: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0