summaryrefslogtreecommitdiff
path: root/CocoaSharp/UIKit/UIActivity.cs
diff options
context:
space:
mode:
Diffstat (limited to 'CocoaSharp/UIKit/UIActivity.cs')
-rw-r--r--CocoaSharp/UIKit/UIActivity.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/CocoaSharp/UIKit/UIActivity.cs b/CocoaSharp/UIKit/UIActivity.cs
index 76c0d05d..6ba82fb0 100644
--- a/CocoaSharp/UIKit/UIActivity.cs
+++ b/CocoaSharp/UIKit/UIActivity.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIActivity class is an abstract class that you subclass in order to implement application-specific services. A service takes data that is passed to it, does something to that data, and returns the results. For example, an social media service might take whatever text, images, or other content is provided to it and post them to the user’s account. Activity objects are used in conjunction with a UIActivityViewController object, which is responsible for presenting services to the user. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIActivity_Class/index.html#//apple_ref/occ/cl/UIActivity"/> [iOSVersion(6)] public class UIActivity : NSObject//, AnyObject, NSObjectProtocol { public UIActivity() { } /// <summary> /// Returns the category of the activity, which may be used to group activities in the UI. /// </summary> [iOSVersion(7)] [Export("activityCategory")] public static UIActivityCategory ActivityCategory() { return default(UIActivityCategory); } /// <summary> /// An identifier for the type of service being provided. /// </summary> [iOSVersion(6)] [Export("activityType")] public virtual string ActivityType() { return default(string); } /// <summary> /// A user-readable string describing the service. /// </summary> [iOSVersion(6)] [Export("activityTitle")] public virtual string ActivityTitle() { return default(string); } /// <summary> /// An image that identifies the service to the user. /// </summary> [iOSVersion(6)] [Export("activityImage")] public virtual UIImage ActivityImage() { return default(UIImage); } /// <summary> /// Returns a Boolean indicating whether the service can act on the specified data items. /// </summary> /// <param name="activityItems">An array of objects of varying types. These are the data objects on which the service would act.</param> [iOSVersion(6)] [Export("canPerformWithActivityItems")] public virtual bool CanPerformWithActivityItems(AnyObject[] activityItems) { return default(bool); } /// <summary> /// Prepares your service to act on the specified data. /// </summary> /// <param name="activityItems">An array of objects of varying types. These are the data objects on which to act.</param> [iOSVersion(6)] [Export("prepareWithActivityItems")] public virtual void PrepareWithActivityItems(AnyObject[] activityItems) { } /// <summary> /// Returns the view controller to present to the user. /// </summary> [iOSVersion(6)] [Export("activityViewController")] public virtual UIViewController ActivityViewController() { return default(UIViewController); } /// <summary> /// Performs the service when no custom view controller is provided. /// </summary> [iOSVersion(6)] [Export("performActivity")] public virtual void PerformActivity() { } /// <summary> /// Notifies the system that your activity object has completed its work. /// </summary> /// <param name="completed">Specify true if the service executed to completion or false if the service was canceled or did not finish because of an error.</param> [iOSVersion(6)] [Export("activityDidFinish")] public virtual void ActivityDidFinish(bool completed) { } } /// <summary> /// Activities have a defined category, and the activity UI may show activities grouped by category. /// </summary> [iOSVersion(7)] public enum UIActivityCategory { /// <summary> /// Activities whose primary purpose is to take an action on the selected item. For example, copying an image, or saving it to the camera roll. /// </summary> [iOSVersion(7)] Action, /// <summary> /// Activities whose primary purpose is to share the selected item. For example, sending an image by email. /// </summary> [iOSVersion(7)] Share, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIActivity class is an abstract class that you subclass in order to implement application-specific services. A service takes data that is passed to it, does something to that data, and returns the results. For example, an social media service might take whatever text, images, or other content is provided to it and post them to the user’s account. Activity objects are used in conjunction with a UIActivityViewController object, which is responsible for presenting services to the user. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIActivity_Class/index.html#//apple_ref/occ/cl/UIActivity"/> [iOSVersion(6)] [Export("")] public class UIActivity : NSObject//, AnyObject, CVarArgType, Equatable, Hashable, NSObjectProtocol, Printable { public UIActivity() { } /// <summary> /// Returns the category of the activity, which may be used to group activities in the UI. /// </summary> [iOSVersion(7)] [Export("activityCategory")] public static UIActivityCategory ActivityCategory() { return default(UIActivityCategory); } /// <summary> /// An identifier for the type of service being provided. /// </summary> [iOSVersion(6)] [Export("activityType")] [return:Optional] public virtual string ActivityType() { return default(string); } /// <summary> /// A user-readable string describing the service. /// </summary> [iOSVersion(6)] [Export("activityTitle")] [return:Optional] public virtual string ActivityTitle() { return default(string); } /// <summary> /// An image that identifies the service to the user. /// </summary> [iOSVersion(6)] [Export("activityImage")] [return:Optional] public virtual UIImage ActivityImage() { return default(UIImage); } /// <summary> /// Returns a Boolean indicating whether the service can act on the specified data items. /// </summary> /// <param name="activityItems">An array of objects of varying types. These are the data objects on which the service would act.</param> [iOSVersion(6)] [Export("canPerformWithActivityItems")] public virtual bool CanPerformWithActivityItems(AnyObject[] activityItems) { return default(bool); } /// <summary> /// Prepares your service to act on the specified data. /// </summary> /// <param name="activityItems">An array of objects of varying types. These are the data objects on which to act.</param> [iOSVersion(6)] [Export("prepareWithActivityItems")] public virtual void PrepareWithActivityItems(AnyObject[] activityItems) { } /// <summary> /// Returns the view controller to present to the user. /// </summary> [iOSVersion(6)] [Export("activityViewController")] [return:Optional] public virtual UIViewController ActivityViewController() { return default(UIViewController); } /// <summary> /// Performs the service when no custom view controller is provided. /// </summary> [iOSVersion(6)] [Export("performActivity")] public virtual void PerformActivity() { } /// <summary> /// Notifies the system that your activity object has completed its work. /// </summary> /// <param name="completed">Specify true if the service executed to completion or false if the service was canceled or did not finish because of an error.</param> [iOSVersion(6)] [Export("activityDidFinish")] public virtual void ActivityDidFinish(bool completed) { } } /// <summary> /// Activities have a defined category, and the activity UI may show activities grouped by category. /// </summary> public enum UIActivityCategory { /// <summary> /// Activities whose primary purpose is to take an action on the selected item. For example, copying an image, or saving it to the camera roll. /// </summary> [iOSVersion(7)] Action, /// <summary> /// Activities whose primary purpose is to share the selected item. For example, sending an image by email. /// </summary> [iOSVersion(7)] Share, } } \ No newline at end of file
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback