summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatthewsotoudeh <matthewsot@outlook.com>2014-08-30 16:35:36 -0700
committermatthewsotoudeh <matthewsot@outlook.com>2014-08-30 16:35:36 -0700
commitc79b072f56dfffb9d5e7c9ae4bd357e59cac5b61 (patch)
tree6d284405dd46915cb07f75c20cdf8d239b0a6b28
parent37a8d06495a50ab986c129d1d6141eb653cec6c6 (diff)
Fixed UIKit
-rw-r--r--CocoaSharp/UIKit/Additions/NSIndexPath.cs21
-rw-r--r--CocoaSharp/UIKit/Additions/NSObject.cs21
-rw-r--r--CocoaSharp/UIKit/Additions/NSValue.cs21
-rw-r--r--CocoaSharp/UIKit/Constants.cs2
-rw-r--r--CocoaSharp/UIKit/DataTypes.cs2
-rw-r--r--CocoaSharp/UIKit/NSFileProviderExtension.cs2
-rw-r--r--CocoaSharp/UIKit/NSLayoutConstraint.cs2
-rw-r--r--CocoaSharp/UIKit/NSObject.cs1
-rw-r--r--CocoaSharp/UIKit/NSParagraphStyle.cs2
-rw-r--r--CocoaSharp/UIKit/NSTextTab.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/NSLayoutManagerDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/NSTextStorageDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIActionSheetDelegate.cs1
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIAdaptivePresentationControllerDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIAlertViewDelegate.cs1
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIApplicationDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIBarPositioningDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UICollectionViewDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UICollectionViewDelegateFlowLayout.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UICollisionBehaviorDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIDocumentInteractionControllerDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIDocumentMenuDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIDocumentPickerDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIDynamicAnimatorDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIGestureRecognizerDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIGuidedAccessRestrictionDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIImagePickerControllerDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UINavigationBarDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UINavigationControllerDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIPageViewControllerDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIPickerViewAccessibilityDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIPickerViewDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIPopoverControllerDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIPopoverPresentationControllerDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIPrintInteractionControllerDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIPrinterPickerControllerDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIScrollViewAccessibilityDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIScrollViewDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UISearchBarDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UISearchControllerDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UISearchDisplayDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UISplitViewControllerDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UITabBarControllerDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UITabBarDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UITableViewDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UITextFieldDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UITextViewDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIVideoEditorControllerDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIViewControllerTransitioningDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/Delegates/UIWebViewDelegate.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/UIAccessibility.cs29
-rw-r--r--CocoaSharp/UIKit/Protocols/UIAccessibilityContainer.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/UIAccessibilityFocus.cs3
-rw-r--r--CocoaSharp/UIKit/Protocols/UIActivityItemSource.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/UIBarPositioning.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/UICollectionViewDataSource.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/UIContentContainer.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/UICoordinateSpace.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/UIDynamicItem.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/UIInputViewAudioFeedback.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/UILayoutSupport.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/UIPageViewControllerDataSource.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/UIResponderStandardEditActions.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/UIStateRestoring.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/UITableViewDataSource.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/UITextDocumentProxy.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/UITextInput.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/UITraitEnvironment.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/UIViewControllerAnimatedTransitioning.cs2
-rw-r--r--CocoaSharp/UIKit/Protocols/UIViewControllerInteractiveTransitioning.cs2
-rw-r--r--CocoaSharp/UIKit/UIAccelerometer.cs2
-rw-r--r--CocoaSharp/UIKit/UIActionSheet.cs1
-rw-r--r--CocoaSharp/UIKit/UIActivity.cs2
-rw-r--r--CocoaSharp/UIKit/UIActivityViewController.cs2
-rw-r--r--CocoaSharp/UIKit/UIAlertView.cs1
-rw-r--r--CocoaSharp/UIKit/UIApplication.cs2
-rw-r--r--CocoaSharp/UIKit/UIAttachmentBehavior.cs2
-rw-r--r--CocoaSharp/UIKit/UIButton.cs2
-rw-r--r--CocoaSharp/UIKit/UICollectionView.cs2
-rw-r--r--CocoaSharp/UIKit/UICollectionViewLayout.cs2
-rw-r--r--CocoaSharp/UIKit/UIColor.cs2
-rw-r--r--CocoaSharp/UIKit/UIControl.cs2
-rw-r--r--CocoaSharp/UIKit/UIDevice.cs2
-rw-r--r--CocoaSharp/UIKit/UIFont.cs2
-rw-r--r--CocoaSharp/UIKit/UIFontDescriptor.cs2
-rw-r--r--CocoaSharp/UIKit/UIImage.cs2
-rw-r--r--CocoaSharp/UIKit/UIImagePickerController.cs2
-rw-r--r--CocoaSharp/UIKit/UIKit.csproj6
-rw-r--r--CocoaSharp/UIKit/UILocalizedIndexedCollation.cs2
-rw-r--r--CocoaSharp/UIKit/UIManagedDocument.cs2
-rw-r--r--CocoaSharp/UIKit/UIMenuController.cs2
-rw-r--r--CocoaSharp/UIKit/UIPasteboard.cs11
-rw-r--r--CocoaSharp/UIKit/UIPopoverBackgroundView.cs2
-rw-r--r--CocoaSharp/UIKit/UIPrintInteractionController.cs2
-rw-r--r--CocoaSharp/UIKit/UIPrintPaper.cs2
-rw-r--r--CocoaSharp/UIKit/UIPrinterPickerController.cs2
-rw-r--r--CocoaSharp/UIKit/UIReferenceLibraryViewController.cs2
-rw-r--r--CocoaSharp/UIKit/UIRefreshControl.cs2
-rw-r--r--CocoaSharp/UIKit/UIResponder.cs2
-rw-r--r--CocoaSharp/UIKit/UIScreen.cs2
-rw-r--r--CocoaSharp/UIKit/UITextChecker.cs2
-rw-r--r--CocoaSharp/UIKit/UITextInputMode.cs2
-rw-r--r--CocoaSharp/UIKit/UIVideoEditorController.cs2
-rw-r--r--CocoaSharp/UIKit/UIView.cs2
-rw-r--r--CocoaSharp/UIKit/UIViewController.cs2
-rw-r--r--CocoaSharp/UIKit/UIWindow.cs2
-rw-r--r--CocoaSharp/UIKit/Unknowns/Unkown.cs9
-rw-r--r--StubGen/StubGen/Scrapers/Finals/MethodFinal.cs5
108 files changed, 204 insertions, 115 deletions
diff --git a/CocoaSharp/UIKit/Additions/NSIndexPath.cs b/CocoaSharp/UIKit/Additions/NSIndexPath.cs
index 8bc1fd93..e7ab5fdd 100644
--- a/CocoaSharp/UIKit/Additions/NSIndexPath.cs
+++ b/CocoaSharp/UIKit/Additions/NSIndexPath.cs
@@ -1,2 +1,19 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit //TODO: check this
-{ /// <summary> /// The UIKit framework adds programming interfaces to the NSIndexPath class of the Foundation framework to facilitate the identification of rows and sections in UITableView objects and the identification of items and sections in UICollectionView objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/NSIndexPath_UIKitAdditions/index.html#//apple_ref/doc/uid/TP40007175"/> [iOSVersion(2)] public class NSIndexPath//: { public NSIndexPath() { } } } \ No newline at end of file
+using ObjectiveC;
+using System;
+using SharpSwift.Attributes;
+using System.Collections.Generic;
+using Foundation;
+using CoreGraphics;
+
+namespace UIKit //TODO: check this
+{
+ /// <summary>
+ /// The UIKit framework adds programming interfaces to the NSIndexPath class of the Foundation framework to facilitate the identification of rows and sections in UITableView objects and the identification of items and sections in UICollectionView objects.
+ /// </summary>
+ /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/NSIndexPath_UIKitAdditions/index.html#//apple_ref/doc/uid/TP40007175"/>
+ [iOSVersion(2)]
+ public class NSIndexPath//:
+ {
+ public NSIndexPath() { }
+ }
+}
diff --git a/CocoaSharp/UIKit/Additions/NSObject.cs b/CocoaSharp/UIKit/Additions/NSObject.cs
index 60c08283..c71808ab 100644
--- a/CocoaSharp/UIKit/Additions/NSObject.cs
+++ b/CocoaSharp/UIKit/Additions/NSObject.cs
@@ -1,2 +1,19 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit //TODO: check this
-{ /// <summary> /// This category adds methods to the Foundation framework’s NSObject class. The method in this category provides support for loading nib files into your application. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/NSObject_UIKitAdditions/index.html#//apple_ref/doc/uid/TP40007486"/> [iOSVersion(2)] public class NSObject//: { public NSObject() { } } } \ No newline at end of file
+using ObjectiveC;
+using System;
+using SharpSwift.Attributes;
+using System.Collections.Generic;
+using Foundation;
+using CoreGraphics;
+
+namespace UIKit //TODO: check this
+{
+ /// <summary>
+ /// This category adds methods to the Foundation framework’s NSObject class. The method in this category provides support for loading nib files into your application.
+ /// </summary>
+ /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/NSObject_UIKitAdditions/index.html#//apple_ref/doc/uid/TP40007486"/>
+ [iOSVersion(2)]
+ public class NSObject//:
+ {
+ public NSObject() { }
+ }
+}
diff --git a/CocoaSharp/UIKit/Additions/NSValue.cs b/CocoaSharp/UIKit/Additions/NSValue.cs
index 988c70be..c439abe9 100644
--- a/CocoaSharp/UIKit/Additions/NSValue.cs
+++ b/CocoaSharp/UIKit/Additions/NSValue.cs
@@ -1,2 +1,19 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit //TODO: check this
-{ /// <summary> /// This category adds methods to the Foundation framework’s NSValue class. The methods in this category let you represent geometry-based data using an NSValue object. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/NSValue_UIKit_Additions/index.html#//apple_ref/doc/uid/TP40007293"/> [iOSVersion(2)] public class NSValue//: { public NSValue() { } } } \ No newline at end of file
+using ObjectiveC;
+using System;
+using SharpSwift.Attributes;
+using System.Collections.Generic;
+using Foundation;
+using CoreGraphics;
+
+namespace UIKit //TODO: check this
+{
+ /// <summary>
+ /// This category adds methods to the Foundation framework’s NSValue class. The methods in this category let you represent geometry-based data using an NSValue object.
+ /// </summary>
+ /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/NSValue_UIKit_Additions/index.html#//apple_ref/doc/uid/TP40007293"/>
+ [iOSVersion(2)]
+ public class NSValue//:
+ {
+ public NSValue() { }
+ }
+}
diff --git a/CocoaSharp/UIKit/Constants.cs b/CocoaSharp/UIKit/Constants.cs
index 24393fd9..b9d3c4b5 100644
--- a/CocoaSharp/UIKit/Constants.cs
+++ b/CocoaSharp/UIKit/Constants.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace { /// <summary> /// /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIKitConstantsReference/index.html#//apple_ref/doc/uid/TP40007526"/> public class UIKit Constants Reference//: { public UIKit Constants Reference() { } } /// <summary> /// Constants that specify the edges of a rectangle. /// </summary> [iOSVersion(7)] public enum UIRectEdge { /// <summary> /// No edge. /// </summary> [iOSVersion(7)] None, /// <summary> /// The top edge of the rectangle. /// </summary> [iOSVersion(7)] Top, /// <summary> /// The left edge of the rectangle. /// </summary> [iOSVersion(7)] Left, /// <summary> /// The bottom edge of the rectangle. /// </summary> [iOSVersion(7)] Bottom, /// <summary> /// The right edge of the rectangle. /// </summary> [iOSVersion(7)] Right, /// <summary> /// All edges of the rectangle. /// </summary> [iOSVersion(7)] All, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// Constants that specify the edges of a rectangle. /// </summary> [iOSVersion(7)] public enum UIRectEdge { /// <summary> /// No edge. /// </summary> [iOSVersion(7)] None, /// <summary> /// The top edge of the rectangle. /// </summary> [iOSVersion(7)] Top, /// <summary> /// The left edge of the rectangle. /// </summary> [iOSVersion(7)] Left, /// <summary> /// The bottom edge of the rectangle. /// </summary> [iOSVersion(7)] Bottom, /// <summary> /// The right edge of the rectangle. /// </summary> [iOSVersion(7)] Right, /// <summary> /// All edges of the rectangle. /// </summary> [iOSVersion(7)] All, } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/DataTypes.cs b/CocoaSharp/UIKit/DataTypes.cs
index d24e3f97..06cd55df 100644
--- a/CocoaSharp/UIKit/DataTypes.cs
+++ b/CocoaSharp/UIKit/DataTypes.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace { /// <summary> /// /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIKitDataTypesReference/index.html#//apple_ref/doc/uid/TP40007525"/> public class UIKit Data Types Reference//: { public UIKit Data Types Reference() { } /// <summary> /// Defines inset distances for views. /// </summary> [Export("top")] public CGFloat var left: CGFloat var bottom: CGFloat var right: CGFloat } Top { get; set; } /// <summary> /// Defines a structure that specifies an amount to offset a position. /// </summary> [Export("horizontal")] public CGFloat var vertical: CGFloat } Horizontal { get; set; } } /// <summary> /// Defines the stylistic appearance of different types of views. /// </summary> [iOSVersion(2)] public enum UIBarStyle { /// <summary> /// Use the default style normally associated with the given view. For example, navigation bars typically use a white background with dark content. /// </summary> [iOSVersion(2)] Default, /// <summary> /// Use a black background with light content. /// </summary> [iOSVersion(3)] Black, /// <summary> /// Deprecated. Use UIBarStyleBlack and set the translucent property to true instead. /// </summary> [iOSVersion(2)] [Obsolete] BlackTranslucent, } /// <summary> /// Defines the types of information that can be detected in text-based content. /// </summary> [iOSVersion(3)] public enum UIDataDetectorTypes { /// <summary> /// Detect strings formatted as phone numbers. /// </summary> [iOSVersion(3)] PhoneNumber, /// <summary> /// Detect strings formatted as URLs. /// </summary> [iOSVersion(3)] Link, /// <summary> /// Detect strings formatted as addresses. /// </summary> [iOSVersion(4)] Address, /// <summary> /// Detect strings formatted as calendar events. /// </summary> [iOSVersion(4)] CalendarEvent, /// <summary> /// Do no data detection. /// </summary> [iOSVersion(3)] None, /// <summary> /// Detect all available types of data. /// </summary> [iOSVersion(3)] All, } /// <summary> /// Defines the size class of a view. /// </summary> [iOSVersion(8)] public enum UIUserInterfaceSizeClass { /// <summary> /// Indicates the size class has not been specified. /// </summary> [iOSVersion(8)] Unspecified, /// <summary> /// Indicates a compact size class. /// </summary> [iOSVersion(8)] Compact, /// <summary> /// Indicates a regular size class. /// </summary> [iOSVersion(8)] Regular, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIKitDataTypesReference/index.html#//apple_ref/doc/uid/TP40007525"/> //public class DataTypes//: //{ // /// <summary> // /// Defines inset distances for views. // /// </summary> // //[Export("top")] // //public CGFloat var left: CGFloat var bottom: CGFloat var right: CGFloat } Top { get; set; } // /// <summary> // /// Defines a structure that specifies an amount to offset a position. // /// </summary> // //[Export("horizontal")] // //public CGFloat var vertical: CGFloat } Horizontal { get; set; } //} ///// <summary> ///// Defines the stylistic appearance of different types of views. ///// </summary> //[iOSVersion(2)] //public enum UIBarStyle //{ // /// <summary> // /// Use the default style normally associated with the given view. For example, navigation bars typically use a white background with dark content. // /// </summary> // [iOSVersion(2)] // Default, // /// <summary> // /// Use a black background with light content. // /// </summary> // [iOSVersion(3)] // Black, // /// <summary> // /// Deprecated. Use UIBarStyleBlack and set the translucent property to true instead. // /// </summary> // [iOSVersion(2)] // [Obsolete] // BlackTranslucent, //} ///// <summary> ///// Defines the types of information that can be detected in text-based content. ///// </summary> //[iOSVersion(3)] //public enum UIDataDetectorTypes //{ // /// <summary> // /// Detect strings formatted as phone numbers. // /// </summary> // [iOSVersion(3)] // PhoneNumber, // /// <summary> // /// Detect strings formatted as URLs. // /// </summary> // [iOSVersion(3)] // Link, // /// <summary> // /// Detect strings formatted as addresses. // /// </summary> // [iOSVersion(4)] // Address, // /// <summary> // /// Detect strings formatted as calendar events. // /// </summary> // [iOSVersion(4)] // CalendarEvent, // /// <summary> // /// Do no data detection. // /// </summary> // [iOSVersion(3)] // None, // /// <summary> // /// Detect all available types of data. // /// </summary> // [iOSVersion(3)] // All, //} ///// <summary> ///// Defines the size class of a view. ///// </summary> //[iOSVersion(8)] //public enum UIUserInterfaceSizeClass //{ // /// <summary> // /// Indicates the size class has not been specified. // /// </summary> // [iOSVersion(8)] // Unspecified, // /// <summary> // /// Indicates a compact size class. // /// </summary> // [iOSVersion(8)] // Compact, // /// <summary> // /// Indicates a regular size class. // /// </summary> // [iOSVersion(8)] // Regular, //} } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/NSFileProviderExtension.cs b/CocoaSharp/UIKit/NSFileProviderExtension.cs
index df6216e4..1ef3faf6 100644
--- a/CocoaSharp/UIKit/NSFileProviderExtension.cs
+++ b/CocoaSharp/UIKit/NSFileProviderExtension.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// NSFileProviderExtension is the principal class for the File Provider extension. The file provider acts as the back end for the Document Picker extension. It ensures that all the URLs returned by the document picker are backed by files on disk. It can respond to both coordinated-read and coordinated-write operations from the host app, letting you download and upload files as needed. You must provide a file provider if you want to support the open and move modes. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/NSFileProviderExtension_Class/index.html#//apple_ref/occ/cl/NSFileProviderExtension"/> [iOSVersion(8)] public class NSFileProviderExtension : NSObject//, AnyObject, NSObjectProtocol { public NSFileProviderExtension() { } /// <summary> /// Returns a placeholder URL for a given document URL. /// </summary> /// <param name="url">The document URL to be converted.</param> [iOSVersion(8)] [Export("placeholderURLForURL")] public virtual static NSURL PlaceholderURLForURL(NSURL url) { return default(NSURL); } /// <summary> /// Writes a document placeholder with the provided metadata. /// </summary> /// <param name="placeholderURL">The placeholder URL for the document. You can generate a placeholder URL from a document URL by calling placeholderURLForURL:.</param> /// <param name="withMetadata">The metadata for this document.</param> /// <param name="error">If an error occurs while writing the placeholder, the error parameter is set to an NSError object that describes the problem. If you are not interested in the error details, you may pass in NULL.</param> [iOSVersion(8)] [Export("writePlaceholderAtURL")] public virtual static bool WritePlaceholderAtURL(NSURL placeholderURL, Dictionary<NSObject, AnyObject> withMetadata, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the root URL for all shared documents. /// </summary> [iOSVersion(8)] [Export("documentStorageURL")] public virtual NSURL DocumentStorageURL() { return default(NSURL); } /// <summary> /// Provides a purpose identifier for coordinated reads and writes. /// </summary> [iOSVersion(8)] [Export("providerIdentifier")] public virtual string ProviderIdentifier() { return default(string); } /// <summary> /// Returns a unique identifier for the given URL. /// </summary> /// <param name="url">The URL of a shared document.</param> [iOSVersion(8)] [Export("persistentIdentifierForItemAtURL")] public virtual string PersistentIdentifierForItemAtURL(NSURL url) { return default(string); } /// <summary> /// Returns the URL for a given persistent identifier. /// </summary> /// <param name="identifier">The persistent identifier for a shared document.</param> [iOSVersion(8)] public virtual NSURL URLForItemWithPersistentIdentifier(string identifier) { return default(NSURL); } /// <summary> /// Tells the File Provider extension that a document has changed. /// </summary> /// <param name="url">The URL of a shared document.</param> [iOSVersion(8)] [Export("itemChangedAtURL")] public virtual void ItemChangedAtURL(NSURL url) { } /// <summary> /// Creates a placeholder for the given URL. /// </summary> /// <param name="url">The URL of a shared document.</param> /// <param name="completionHandler">A block that the system calls after the placeholder is created. /// The completion handler takes the following parameter: /// error /// If the placeholder was successfully written to disk, this value is nil. Otherwise, it holds an NSError object describing the error.</param> [iOSVersion(8)] [Export("providePlaceholderAtURL")] public virtual void ProvidePlaceholderAtURL(NSURL url, Action<NSError> completionHandler) { } /// <summary> /// Provides an actual file on disk for a placeholder. /// </summary> /// <param name="url">The URL of a shared document.</param> /// <param name="completionHandler">A block to be called as soon as the file is available. /// The completion handler takes the following parameter: /// error /// If the document was produced, this value is nil. Otherwise, it holds an NSError object describing the error.</param> [iOSVersion(8)] [Export("startProvidingItemAtURL")] public virtual void StartProvidingItemAtURL(NSURL url, Action<NSError> completionHandler) { } /// <summary> /// Tells the File Provider extension that a given document is no longer being accessed. /// </summary> /// <param name="url">The URL of a shared document.</param> [iOSVersion(8)] [Export("stopProvidingItemAtURL")] public virtual void StopProvidingItemAtURL(NSURL url) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// NSFileProviderExtension is the principal class for the File Provider extension. The file provider acts as the back end for the Document Picker extension. It ensures that all the URLs returned by the document picker are backed by files on disk. It can respond to both coordinated-read and coordinated-write operations from the host app, letting you download and upload files as needed. You must provide a file provider if you want to support the open and move modes. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/NSFileProviderExtension_Class/index.html#//apple_ref/occ/cl/NSFileProviderExtension"/> [iOSVersion(8)] public class NSFileProviderExtension : NSObject//, AnyObject, NSObjectProtocol { public NSFileProviderExtension() { } /// <summary> /// Returns a placeholder URL for a given document URL. /// </summary> /// <param name="url">The document URL to be converted.</param> [iOSVersion(8)] [Export("placeholderURLForURL")] public static NSURL PlaceholderURLForURL(NSURL url) { return default(NSURL); } /// <summary> /// Writes a document placeholder with the provided metadata. /// </summary> /// <param name="placeholderURL">The placeholder URL for the document. You can generate a placeholder URL from a document URL by calling placeholderURLForURL:.</param> /// <param name="withMetadata">The metadata for this document.</param> /// <param name="error">If an error occurs while writing the placeholder, the error parameter is set to an NSError object that describes the problem. If you are not interested in the error details, you may pass in NULL.</param> [iOSVersion(8)] [Export("writePlaceholderAtURL")] public static bool WritePlaceholderAtURL(NSURL placeholderURL, Dictionary<NSObject, AnyObject> withMetadata, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the root URL for all shared documents. /// </summary> [iOSVersion(8)] [Export("documentStorageURL")] public virtual NSURL DocumentStorageURL() { return default(NSURL); } /// <summary> /// Provides a purpose identifier for coordinated reads and writes. /// </summary> [iOSVersion(8)] [Export("providerIdentifier")] public virtual string ProviderIdentifier() { return default(string); } /// <summary> /// Returns a unique identifier for the given URL. /// </summary> /// <param name="url">The URL of a shared document.</param> [iOSVersion(8)] [Export("persistentIdentifierForItemAtURL")] public virtual string PersistentIdentifierForItemAtURL(NSURL url) { return default(string); } /// <summary> /// Returns the URL for a given persistent identifier. /// </summary> /// <param name="identifier">The persistent identifier for a shared document.</param> [iOSVersion(8)] public virtual NSURL URLForItemWithPersistentIdentifier(string identifier) { return default(NSURL); } /// <summary> /// Tells the File Provider extension that a document has changed. /// </summary> /// <param name="url">The URL of a shared document.</param> [iOSVersion(8)] [Export("itemChangedAtURL")] public virtual void ItemChangedAtURL(NSURL url) { } /// <summary> /// Creates a placeholder for the given URL. /// </summary> /// <param name="url">The URL of a shared document.</param> /// <param name="completionHandler">A block that the system calls after the placeholder is created. /// The completion handler takes the following parameter: /// error /// If the placeholder was successfully written to disk, this value is nil. Otherwise, it holds an NSError object describing the error.</param> [iOSVersion(8)] [Export("providePlaceholderAtURL")] public virtual void ProvidePlaceholderAtURL(NSURL url, Action<NSError> completionHandler) { } /// <summary> /// Provides an actual file on disk for a placeholder. /// </summary> /// <param name="url">The URL of a shared document.</param> /// <param name="completionHandler">A block to be called as soon as the file is available. /// The completion handler takes the following parameter: /// error /// If the document was produced, this value is nil. Otherwise, it holds an NSError object describing the error.</param> [iOSVersion(8)] [Export("startProvidingItemAtURL")] public virtual void StartProvidingItemAtURL(NSURL url, Action<NSError> completionHandler) { } /// <summary> /// Tells the File Provider extension that a given document is no longer being accessed. /// </summary> /// <param name="url">The URL of a shared document.</param> [iOSVersion(8)] [Export("stopProvidingItemAtURL")] public virtual void StopProvidingItemAtURL(NSURL url) { } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/NSLayoutConstraint.cs b/CocoaSharp/UIKit/NSLayoutConstraint.cs
index 8f03e997..dd3a5494 100644
--- a/CocoaSharp/UIKit/NSLayoutConstraint.cs
+++ b/CocoaSharp/UIKit/NSLayoutConstraint.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// A constraint defines a relationship between two attributes of user interface objects that must be satisfied by the constraint-based layout system. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/AppKit/Reference/NSLayoutConstraint_Class/index.html#//apple_ref/occ/cl/NSLayoutConstraint"/> [iOSVersion(6)] public class NSLayoutConstraint : NSObject//, AnyObject, NSObjectProtocol { public NSLayoutConstraint() { } /// <summary> /// Create constraints described by an ASCII art-like visual format string. /// </summary> /// <param name="format">The format specification for the constraints.</param> /// <param name="options">Options describing the attribute and the direction of layout for all objects in the visual format string.</param> /// <param name="metrics">A dictionary of constants that appear in the visual format string. The keys must be the string values used in the visual format string, and the values must be NSNumber objects.</param> /// <param name="views">A dictionary of views that appear in the visual format string. The keys must be the string values used in the visual format string, and the values must be the view objects.</param> [iOSVersion(6)] [Export("constraintsWithVisualFormat")] public virtual static AnyObject[] ConstraintsWithVisualFormat(string format, NSLayoutFormatOptions options, Dictionary<NSObject, AnyObject> metrics, Dictionary<NSObject, AnyObject> views) { return default(AnyObject[]); } /// <summary> /// Create a constraint of the form &quot;view1.attr1 <relation> view2.attr2 * multiplier + constant&quot;. /// </summary> /// <param name="item">The view for the left-hand side of the constraint.</param> /// <param name="attribute">The attribute of the view for the left-hand side of the constraint.</param> /// <param name="relatedBy">The relationship between the left-hand side of the constraint and the right-hand side of the constraint.</param> /// <param name="toItem">The view for the right-hand side of the constraint.</param> /// <param name="attribute">The attribute of the view for the right-hand side of the constraint.</param> /// <param name="multiplier">The constant multiplied with the attribute on the right-hand side of the constraint as part of getting the modified attribute.</param> /// <param name="constant">The constant added to the multiplied attribute value on the right-hand side of the constraint to yield the final modified attribute.</param> [iOSVersion(6)] [Export("convenience init")] public NSLayoutConstraint(AnyObject item, NSLayoutAttribute attribute, NSLayoutRelation relatedBy, AnyObject toItem, NSLayoutAttribute attribute, CGFloat multiplier, CGFloat constant) { } /// <summary> /// The priority of the constraint. /// </summary> [iOSVersion(6)] [Export("priority")] public UILayoutPriority Priority { get; set; } /// <summary> /// The first object participating in the constraint. /// </summary> [iOSVersion(6)] [Export("firstItem")] public AnyObject FirstItem { get; private set; } /// <summary> /// The attribute of the first object participating in the constraint. /// </summary> [iOSVersion(6)] [Export("firstAttribute")] public NSLayoutAttribute FirstAttribute { get; private set; } /// <summary> /// The relation between the two attributes in the constraint. /// </summary> [iOSVersion(6)] [Export("relation")] public NSLayoutRelation Relation { get; private set; } /// <summary> /// The second object participating in the constraint. /// </summary> [iOSVersion(6)] [Export("secondItem")] public AnyObject SecondItem { get; private set; } /// <summary> /// The attribute of the second object participating in the constraint. /// </summary> [iOSVersion(6)] [Export("secondAttribute")] public NSLayoutAttribute SecondAttribute { get; private set; } /// <summary> /// The multiplier applied to the second attribute participating in the constraint. /// </summary> [iOSVersion(6)] [Export("multiplier")] public CGFloat Multiplier { get; private set; } /// <summary> /// The constant added to the multiplied second attribute participating in the constraint. /// </summary> [iOSVersion(6)] [Export("constant")] public CGFloat Constant { get; set; } /// <summary> /// The name that identifies the constraint. /// </summary> [iOSVersion(7)] [Export("identifier")] public string Identifier { get; set; } /// <summary> /// Determines whether the constraint should be archived by its owning view. /// </summary> [iOSVersion(6)] [Export("shouldBeArchived")] public bool ShouldBeArchived { get; set; } } /// <summary> /// Describes the relation between the first attribute and the modified second attribute in a constraint. /// </summary> [iOSVersion(6)] public enum NSLayoutRelation { /// <summary> /// The constraint requires that the first attribute be less than or equal to the modified second attribute. /// </summary> [iOSVersion(6)] LessThanOrEqual, /// <summary> /// The constraint requires that the first attribute be exactly equal to the modified second attribute. /// </summary> [iOSVersion(6)] Equal, /// <summary> /// The constraint requires that the first attribute by greater than or equal to the modified second attribute. /// </summary> [iOSVersion(6)] GreaterThanOrEqual, } /// <summary> /// Layout attributes are used to specify the part of the object’s visual representation that should be used to get the value for the constraint. /// </summary> [iOSVersion(6)] public enum NSLayoutAttribute { /// <summary> /// The left side of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] Left, /// <summary> /// The right side of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] Right, /// <summary> /// The top of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] Top, /// <summary> /// The bottom of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] Bottom, /// <summary> /// The leading edge of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] Leading, /// <summary> /// The trailing edge of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] Trailing, /// <summary> /// The width of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] Width, /// <summary> /// The height of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] Height, /// <summary> /// The center along the x-axis of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] CenterX, /// <summary> /// The center along the y-axis of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] CenterY, /// <summary> /// The object’s baseline. /// </summary> [iOSVersion(6)] Baseline, /// <summary> /// /// </summary> FirstBaseline, /// <summary> /// /// </summary> LeftMargin, /// <summary> /// /// </summary> RightMargin, /// <summary> /// /// </summary> TopMargin, /// <summary> /// /// </summary> BottomMargin, /// <summary> /// /// </summary> LeadingMargin, /// <summary> /// /// </summary> TrailingMargin, /// <summary> /// /// </summary> CenterXWithinMargins, /// <summary> /// /// </summary> CenterYWithinMargins, /// <summary> /// The requested attribute does not exist. This result would be returned if you asked a constraint with no second object for the attribute of its second object. /// </summary> [iOSVersion(6)] NotAnAttribute, } /// <summary> /// A bit mask that specifies both a part of an interface element to align and a direction for the alignment between two interface elements. /// </summary> [iOSVersion(6)] public enum NSLayoutFormatOptions { /// <summary> /// Align all specified interface elements using NSLayoutAttributeLeft on each. /// </summary> [iOSVersion(6)] AlignAllLeft, /// <summary> /// Align all specified interface elements using NSLayoutAttributeRight on each. /// </summary> [iOSVersion(6)] AlignAllRight, /// <summary> /// Align all specified interface elements using NSLayoutAttributeTop on each. /// </summary> [iOSVersion(6)] AlignAllTop, /// <summary> /// Align all specified interface elements using NSLayoutAttributeBottom on each. /// </summary> [iOSVersion(6)] AlignAllBottom, /// <summary> /// Align all specified interface elements using NSLayoutAttributeLeading on each. /// </summary> [iOSVersion(6)] AlignAllLeading, /// <summary> /// Align all specified interface elements using NSLayoutAttributeTrailing on each. /// </summary> [iOSVersion(6)] AlignAllTrailing, /// <summary> /// Align all specified interface elements using NSLayoutAttributeCenterX on each. /// </summary> [iOSVersion(6)] AlignAllCenterX, /// <summary> /// Align all specified interface elements using NSLayoutAttributeCenterY on each. /// </summary> [iOSVersion(6)] AlignAllCenterY, /// <summary> /// Align all specified interface elements using NSLayoutAttributeBaseline on each. /// </summary> [iOSVersion(6)] AlignAllBaseline, /// <summary> /// /// </summary> AlignAllLastBaseline, /// <summary> /// /// </summary> AlignAllFirstBaseline, /// <summary> /// Bit mask that can be combined with a NSLayoutFormatOptions variable to yield only the alignment portion of the format options. /// </summary> [iOSVersion(6)] AlignmentMask, /// <summary> /// Arrange objects in order based on the normal text flow for the current user interface language. In English this results in the first object being placed farthest to the left, the next one to its right, and so on. In right to left languages this ordering is reversed. /// </summary> [iOSVersion(6)] DirectionLeadingToTrailing, /// <summary> /// Arrange objects in order from left to right. /// </summary> [iOSVersion(6)] DirectionLeftToRight, /// <summary> /// Arrange objects in order from right to left. /// </summary> [iOSVersion(6)] DirectionRightToLeft, /// <summary> /// Bit mask that can be combined with a NSLayoutFormatOptions variable to yield only the direction portion of the format options. /// </summary> [iOSVersion(6)] DirectionMask, } /// <summary> /// The layout priority is used to indicate to the constraint-based layout system which constraints are more important, allowing the system to make appropriate tradeoffs when satisfying the constraints of the system as a whole. /// </summary> [iOSVersion(6)] public struct UILayoutPriority { static public implicit operator UILayoutPriority(float value) { return default(UILayoutPriority); } static public implicit operator float(UILayoutPriority value) { return default(float); } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// A constraint defines a relationship between two attributes of user interface objects that must be satisfied by the constraint-based layout system. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/AppKit/Reference/NSLayoutConstraint_Class/index.html#//apple_ref/occ/cl/NSLayoutConstraint"/> [iOSVersion(6)] public class NSLayoutConstraint : NSObject//, AnyObject, NSObjectProtocol { public NSLayoutConstraint() { } /// <summary> /// Create constraints described by an ASCII art-like visual format string. /// </summary> /// <param name="format">The format specification for the constraints.</param> /// <param name="options">Options describing the attribute and the direction of layout for all objects in the visual format string.</param> /// <param name="metrics">A dictionary of constants that appear in the visual format string. The keys must be the string values used in the visual format string, and the values must be NSNumber objects.</param> /// <param name="views">A dictionary of views that appear in the visual format string. The keys must be the string values used in the visual format string, and the values must be the view objects.</param> [iOSVersion(6)] [Export("constraintsWithVisualFormat")] public static AnyObject[] ConstraintsWithVisualFormat(string format, NSLayoutFormatOptions options, Dictionary<NSObject, AnyObject> metrics, Dictionary<NSObject, AnyObject> views) { return default(AnyObject[]); } /// <summary> /// Create a constraint of the form &quot;view1.attr1 <relation> view2.attr2 * multiplier + constant&quot;. /// </summary> /// <param name="item">The view for the left-hand side of the constraint.</param> /// <param name="attribute">The attribute of the view for the left-hand side of the constraint.</param> /// <param name="relatedBy">The relationship between the left-hand side of the constraint and the right-hand side of the constraint.</param> /// <param name="toItem">The view for the right-hand side of the constraint.</param> /// <param name="attribute">The attribute of the view for the right-hand side of the constraint.</param> /// <param name="multiplier">The constant multiplied with the attribute on the right-hand side of the constraint as part of getting the modified attribute.</param> /// <param name="constant">The constant added to the multiplied attribute value on the right-hand side of the constraint to yield the final modified attribute.</param> [iOSVersion(6)] [Export("convenience init")] [RenameParameter("leftAttribute", "attribute")] [RenameParameter("rightAttribute", "attribute")] public NSLayoutConstraint(AnyObject item, NSLayoutAttribute leftAttribute, NSLayoutRelation relatedBy, AnyObject toItem, NSLayoutAttribute rightAttribute, CGFloat multiplier, CGFloat constant) { } /// <summary> /// The priority of the constraint. /// </summary> [iOSVersion(6)] [Export("priority")] public UILayoutPriority Priority { get; set; } /// <summary> /// The first object participating in the constraint. /// </summary> [iOSVersion(6)] [Export("firstItem")] public AnyObject FirstItem { get; private set; } /// <summary> /// The attribute of the first object participating in the constraint. /// </summary> [iOSVersion(6)] [Export("firstAttribute")] public NSLayoutAttribute FirstAttribute { get; private set; } /// <summary> /// The relation between the two attributes in the constraint. /// </summary> [iOSVersion(6)] [Export("relation")] public NSLayoutRelation Relation { get; private set; } /// <summary> /// The second object participating in the constraint. /// </summary> [iOSVersion(6)] [Export("secondItem")] public AnyObject SecondItem { get; private set; } /// <summary> /// The attribute of the second object participating in the constraint. /// </summary> [iOSVersion(6)] [Export("secondAttribute")] public NSLayoutAttribute SecondAttribute { get; private set; } /// <summary> /// The multiplier applied to the second attribute participating in the constraint. /// </summary> [iOSVersion(6)] [Export("multiplier")] public CGFloat Multiplier { get; private set; } /// <summary> /// The constant added to the multiplied second attribute participating in the constraint. /// </summary> [iOSVersion(6)] [Export("constant")] public CGFloat Constant { get; set; } /// <summary> /// The name that identifies the constraint. /// </summary> [iOSVersion(7)] [Export("identifier")] public string Identifier { get; set; } /// <summary> /// Determines whether the constraint should be archived by its owning view. /// </summary> [iOSVersion(6)] [Export("shouldBeArchived")] public bool ShouldBeArchived { get; set; } } /// <summary> /// Describes the relation between the first attribute and the modified second attribute in a constraint. /// </summary> [iOSVersion(6)] public enum NSLayoutRelation { /// <summary> /// The constraint requires that the first attribute be less than or equal to the modified second attribute. /// </summary> [iOSVersion(6)] LessThanOrEqual, /// <summary> /// The constraint requires that the first attribute be exactly equal to the modified second attribute. /// </summary> [iOSVersion(6)] Equal, /// <summary> /// The constraint requires that the first attribute by greater than or equal to the modified second attribute. /// </summary> [iOSVersion(6)] GreaterThanOrEqual, } /// <summary> /// Layout attributes are used to specify the part of the object’s visual representation that should be used to get the value for the constraint. /// </summary> [iOSVersion(6)] public enum NSLayoutAttribute { /// <summary> /// The left side of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] Left, /// <summary> /// The right side of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] Right, /// <summary> /// The top of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] Top, /// <summary> /// The bottom of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] Bottom, /// <summary> /// The leading edge of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] Leading, /// <summary> /// The trailing edge of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] Trailing, /// <summary> /// The width of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] Width, /// <summary> /// The height of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] Height, /// <summary> /// The center along the x-axis of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] CenterX, /// <summary> /// The center along the y-axis of the object’s alignment rectangle. /// </summary> [iOSVersion(6)] CenterY, /// <summary> /// The object’s baseline. /// </summary> [iOSVersion(6)] Baseline, /// <summary> /// /// </summary> FirstBaseline, /// <summary> /// /// </summary> LeftMargin, /// <summary> /// /// </summary> RightMargin, /// <summary> /// /// </summary> TopMargin, /// <summary> /// /// </summary> BottomMargin, /// <summary> /// /// </summary> LeadingMargin, /// <summary> /// /// </summary> TrailingMargin, /// <summary> /// /// </summary> CenterXWithinMargins, /// <summary> /// /// </summary> CenterYWithinMargins, /// <summary> /// The requested attribute does not exist. This result would be returned if you asked a constraint with no second object for the attribute of its second object. /// </summary> [iOSVersion(6)] NotAnAttribute, } /// <summary> /// A bit mask that specifies both a part of an interface element to align and a direction for the alignment between two interface elements. /// </summary> [iOSVersion(6)] public enum NSLayoutFormatOptions { /// <summary> /// Align all specified interface elements using NSLayoutAttributeLeft on each. /// </summary> [iOSVersion(6)] AlignAllLeft, /// <summary> /// Align all specified interface elements using NSLayoutAttributeRight on each. /// </summary> [iOSVersion(6)] AlignAllRight, /// <summary> /// Align all specified interface elements using NSLayoutAttributeTop on each. /// </summary> [iOSVersion(6)] AlignAllTop, /// <summary> /// Align all specified interface elements using NSLayoutAttributeBottom on each. /// </summary> [iOSVersion(6)] AlignAllBottom, /// <summary> /// Align all specified interface elements using NSLayoutAttributeLeading on each. /// </summary> [iOSVersion(6)] AlignAllLeading, /// <summary> /// Align all specified interface elements using NSLayoutAttributeTrailing on each. /// </summary> [iOSVersion(6)] AlignAllTrailing, /// <summary> /// Align all specified interface elements using NSLayoutAttributeCenterX on each. /// </summary> [iOSVersion(6)] AlignAllCenterX, /// <summary> /// Align all specified interface elements using NSLayoutAttributeCenterY on each. /// </summary> [iOSVersion(6)] AlignAllCenterY, /// <summary> /// Align all specified interface elements using NSLayoutAttributeBaseline on each. /// </summary> [iOSVersion(6)] AlignAllBaseline, /// <summary> /// /// </summary> AlignAllLastBaseline, /// <summary> /// /// </summary> AlignAllFirstBaseline, /// <summary> /// Bit mask that can be combined with a NSLayoutFormatOptions variable to yield only the alignment portion of the format options. /// </summary> [iOSVersion(6)] AlignmentMask, /// <summary> /// Arrange objects in order based on the normal text flow for the current user interface language. In English this results in the first object being placed farthest to the left, the next one to its right, and so on. In right to left languages this ordering is reversed. /// </summary> [iOSVersion(6)] DirectionLeadingToTrailing, /// <summary> /// Arrange objects in order from left to right. /// </summary> [iOSVersion(6)] DirectionLeftToRight, /// <summary> /// Arrange objects in order from right to left. /// </summary> [iOSVersion(6)] DirectionRightToLeft, /// <summary> /// Bit mask that can be combined with a NSLayoutFormatOptions variable to yield only the direction portion of the format options. /// </summary> [iOSVersion(6)] DirectionMask, } /// <summary> /// The layout priority is used to indicate to the constraint-based layout system which constraints are more important, allowing the system to make appropriate tradeoffs when satisfying the constraints of the system as a whole. /// </summary> [iOSVersion(6)] public struct UILayoutPriority { static public implicit operator UILayoutPriority(float value) { return default(UILayoutPriority); } static public implicit operator float(UILayoutPriority value) { return default(float); } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/NSObject.cs b/CocoaSharp/UIKit/NSObject.cs
deleted file mode 100644
index 7f5c39a4..00000000
--- a/CocoaSharp/UIKit/NSObject.cs
+++ /dev/null
@@ -1 +0,0 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace ObjectiveC { /// <summary> /// NSObject is the root class of most Objective-C class hierarchies. Through NSObject, objects inherit a basic interface to the runtime system and the ability to behave as Objective-C objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/index.html#//apple_ref/occ/cl/NSObject"/> [iOSVersion(2)] public class NSObject//: AnyObject, NSObjectProtocol { public NSObject() { } /// <summary> /// Initializes the class before it receives its first message. /// </summary> [iOSVersion(2)] [Export("initialize")] public virtual static void Initialize() { } /// <summary> /// Invoked whenever a class or category is added to the Objective-C runtime; implement this method to perform class-specific behavior upon loading. /// </summary> [iOSVersion(2)] [Export("load")] public virtual static void Load() { } /// <summary> /// Returns a new instance of the receiving class. /// </summary> [iOSVersion(2)] [Export("alloc")] public virtual static Alloc() { return default(); } /// <summary> /// Returns a new instance of the receiving class. /// </summary> /// <param name="zone">This parameter is ignored.</param> [iOSVersion(2)] [Export("allocWithZone")] public virtual static AllocWithZone(COpaquePointer zone) { return default(); } /// <summary> /// Implemented by subclasses to initialize a new object (the receiver) immediately after memory for it has been allocated. /// </summary> [iOSVersion(2)] public NSObject() { } /// <summary> /// Returns the object returned by copyWithZone:. /// </summary> [iOSVersion(2)] [Export("copy")] public virtual AnyObject Copy() { return default(AnyObject); } /// <summary> /// Returns the object returned by mutableCopyWithZone: where the zone is nil. /// </summary> [iOSVersion(2)] [Export("mutableCopy")] public virtual AnyObject MutableCopy() { return default(AnyObject); } /// <summary> /// Allocates a new instance of the receiving class, sends it an init message, and returns the initialized object. /// </summary> [iOSVersion(2)] public virtual static `new`() { return default(); } /// <summary> /// Returns the class object for the receiver’s superclass. /// </summary> [iOSVersion(2)] [Export("superclass")] public virtual static AnyClass Superclass() { return default(AnyClass); } /// <summary> /// Returns a Boolean value that indicates whether the receiving class is a subclass of, or identical to, a given class. /// </summary> /// <param name="aClass">A class object.</param> [iOSVersion(2)] [Export("isSubclassOfClass")] public virtual static bool IsSubclassOfClass(AnyClass aClass) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether instances of the receiver are capable of responding to a given selector. /// </summary> /// <param name="aSelector">A selector.</param> [iOSVersion(2)] [Export("instancesRespondToSelector")] public virtual static bool InstancesRespondToSelector(Selector aSelector) { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the receiver conforms to a given protocol. /// </summary> /// <param name="`aProtocol`"></param> [iOSVersion(2)] [Export("conformsToProtocol")] public virtual static bool ConformsToProtocol(Protocol `aProtocol`) { return default(bool); } /// <summary> /// Locates and returns the address of the receiver’s implementation of a method so it can be called as a function. /// </summary> /// <param name="aSelector">A selector that identifies the method for which to return the implementation address. The selector must be a valid and non-NULL. If in doubt, use the respondsToSelector: method to check before passing the selector to methodForSelector:.</param> [iOSVersion(2)] [Export("methodForSelector")] public virtual IMP MethodForSelector(Selector aSelector) { return default(IMP); } /// <summary> /// Locates and returns the address of the implementation of the instance method identified by a given selector. /// </summary> /// <param name="aSelector">A selector that identifies the method for which to return the implementation address. The selector must be non-NULL and valid for the receiver. If in doubt, use the respondsToSelector: method to check before passing the selector to methodForSelector:.</param> [iOSVersion(2)] [Export("instanceMethodForSelector")] public virtual static IMP InstanceMethodForSelector(Selector aSelector) { return default(IMP); } /// <summary> /// Returns the object to which unrecognized messages should first be directed. /// </summary> /// <param name="aSelector">A selector for a method that the receiver does not implement.</param> [iOSVersion(2)] [Export("forwardingTargetForSelector")] public virtual AnyObject ForwardingTargetForSelector(Selector aSelector) { return default(AnyObject); } /// <summary> /// Dynamically provides an implementation for a given selector for a class method. /// </summary> /// <param name="name">The name of a selector to resolve.</param> [iOSVersion(2)] [Export("resolveClassMethod")] public virtual static bool ResolveClassMethod(Selector name) { return default(bool); } /// <summary> /// Dynamically provides an implementation for a given selector for an instance method. /// </summary> /// <param name="name">The name of a selector to resolve.</param> [iOSVersion(2)] [Export("resolveInstanceMethod")] public virtual static bool ResolveInstanceMethod(Selector name) { return default(bool); } /// <summary> /// Handles messages the receiver doesn’t recognize. /// </summary> /// <param name="aSelector">A selector that identifies a method not implemented or recognized by the receiver.</param> [iOSVersion(2)] [Export("doesNotRecognizeSelector")] public virtual void DoesNotRecognizeSelector(Selector aSelector) { } /// <summary> /// The garbage collector invokes this method on the receiver before disposing of the memory it uses. /// </summary> [iOSVersion(2)] [Export("finalize")] public virtual void Finalize() { } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/NSParagraphStyle.cs b/CocoaSharp/UIKit/NSParagraphStyle.cs
index cbe47991..e7067553 100644
--- a/CocoaSharp/UIKit/NSParagraphStyle.cs
+++ b/CocoaSharp/UIKit/NSParagraphStyle.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The NSParagraphStyle class and its subclass NSMutableParagraphStyle encapsulate the paragraph or ruler attributes used by the NSAttributedString classes. Instances of these classes are often referred to as paragraph style objects or, when no confusion will result, paragraph styles. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/ApplicationKit/Classes/NSParagraphStyle_Class/index.html#//apple_ref/occ/cl/NSParagraphStyle"/> [iOSVersion(6)] public class NSParagraphStyle : NSObject//, AnyObject, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol { public NSParagraphStyle() { } /// <summary> /// Returns the default paragraph style. /// </summary> [iOSVersion(6)] [Export("defaultParagraphStyle")] public virtual static NSParagraphStyle DefaultParagraphStyle() { return default(NSParagraphStyle); } /// <summary> /// Returns the default writing direction for the specified language. /// </summary> /// <param name="languageName">The language specified in ISO language region format. Can be nil to return a default writing direction derived from the user’s defaults database.</param> [iOSVersion(6)] [Export("defaultWritingDirectionForLanguage")] public virtual static NSWritingDirection DefaultWritingDirectionForLanguage(string languageName) { return default(NSWritingDirection); } /// <summary> /// The text alignment of the receiver. (read-only) /// </summary> [iOSVersion(6)] [Export("alignment")] public NSTextAlignment Alignment { get; private set; } /// <summary> /// The indentation of the first line of the receiver. (read-only) /// </summary> [iOSVersion(6)] [Export("firstLineHeadIndent")] public CGFloat FirstLineHeadIndent { get; private set; } /// <summary> /// The indentation of the receiver’s lines other than the first. (read-only) /// </summary> [iOSVersion(6)] [Export("headIndent")] public CGFloat HeadIndent { get; private set; } /// <summary> /// The trailing indentation of the receiver. (read-only) /// </summary> [iOSVersion(6)] [Export("tailIndent")] public CGFloat TailIndent { get; private set; } /// <summary> /// The line height multiple. (read-only) /// </summary> [iOSVersion(6)] [Export("lineHeightMultiple")] public CGFloat LineHeightMultiple { get; private set; } /// <summary> /// The receiver’s maximum line height. (read-only) /// </summary> [iOSVersion(6)] [Export("maximumLineHeight")] public CGFloat MaximumLineHeight { get; private set; } /// <summary> /// The receiver’s minimum height. (read-only) /// </summary> [iOSVersion(6)] [Export("minimumLineHeight")] public CGFloat MinimumLineHeight { get; private set; } /// <summary> /// The distance in points between the bottom of one line fragment and the top of the next. (read-only) /// </summary> [iOSVersion(6)] [Export("lineSpacing")] public CGFloat LineSpacing { get; private set; } /// <summary> /// The space after the end of the paragraph. (read-only) /// </summary> [iOSVersion(6)] [Export("paragraphSpacing")] public CGFloat ParagraphSpacing { get; private set; } /// <summary> /// The distance between the paragraph’s top and the beginning of its text content. (read-only) /// </summary> [iOSVersion(6)] [Export("paragraphSpacingBefore")] public CGFloat ParagraphSpacingBefore { get; private set; } /// <summary> /// Returns the receiver’s tab stops. /// </summary> [iOSVersion(7)] [Export("tabStops")] public AnyObject[] TabStops { get; private set; } /// <summary> /// Returns the document-wide default tab interval. /// </summary> [iOSVersion(7)] [Export("defaultTabInterval")] public CGFloat DefaultTabInterval { get; private set; } /// <summary> /// The mode that should be used to break lines in the receiver. (read-only) /// </summary> [iOSVersion(6)] [Export("lineBreakMode")] public NSLineBreakMode LineBreakMode { get; private set; } /// <summary> /// The paragraph’s threshold for hyphenation. (read-only) /// </summary> [iOSVersion(6)] [Export("hyphenationFactor")] public float HyphenationFactor { get; private set; } /// <summary> /// The base writing direction for the receiver. (read-only) /// </summary> [iOSVersion(6)] [Export("baseWritingDirection")] public NSWritingDirection BaseWritingDirection { get; private set; } } /// <summary> /// These constants specify what happens when a line is too long for its container. /// </summary> [iOSVersion(6)] public enum NSLineBreakMode { /// <summary> /// Wrapping occurs at word boundaries, unless the word itself doesn’t fit on a single line. See Characters and Grapheme Clusters in String Programming Guide for a discussion of issues related to determining word boundaries. /// </summary> [iOSVersion(6)] ByWordWrapping, /// <summary> /// Wrapping occurs before the first character that doesn’t fit. /// </summary> [iOSVersion(6)] ByCharWrapping, /// <summary> /// Lines are simply not drawn past the edge of the text container. /// </summary> [iOSVersion(6)] ByClipping, /// <summary> /// The line is displayed so that the end fits in the container and the missing text at the beginning of the line is indicated by an ellipsis glyph. Although this mode works for multiline text, it is more often used for single line text. /// </summary> [iOSVersion(6)] ByTruncatingHead, /// <summary> /// The line is displayed so that the beginning fits in the container and the missing text at the end of the line is indicated by an ellipsis glyph. Although this mode works for multiline text, it is more often used for single line text. /// </summary> [iOSVersion(6)] ByTruncatingTail, /// <summary> /// The line is displayed so that the beginning and end fit in the container and the missing text in the middle is indicated by an ellipsis glyph. Although this mode works for multiline text, it is more often used for single line text. /// </summary> [iOSVersion(6)] ByTruncatingMiddle, } } \ 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 NSParagraphStyle class and its subclass NSMutableParagraphStyle encapsulate the paragraph or ruler attributes used by the NSAttributedString classes. Instances of these classes are often referred to as paragraph style objects or, when no confusion will result, paragraph styles. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/ApplicationKit/Classes/NSParagraphStyle_Class/index.html#//apple_ref/occ/cl/NSParagraphStyle"/> [iOSVersion(6)] public class NSParagraphStyle : NSObject//, AnyObject, NSCoding, NSCopying, NSMutableCopying, NSObjectProtocol { public NSParagraphStyle() { } /// <summary> /// Returns the default paragraph style. /// </summary> [iOSVersion(6)] [Export("defaultParagraphStyle")] public static NSParagraphStyle DefaultParagraphStyle() { return default(NSParagraphStyle); } /// <summary> /// Returns the default writing direction for the specified language. /// </summary> /// <param name="languageName">The language specified in ISO language region format. Can be nil to return a default writing direction derived from the user’s defaults database.</param> [iOSVersion(6)] [Export("defaultWritingDirectionForLanguage")] public static NSWritingDirection DefaultWritingDirectionForLanguage(string languageName) { return default(NSWritingDirection); } /// <summary> /// The text alignment of the receiver. (read-only) /// </summary> [iOSVersion(6)] [Export("alignment")] public NSTextAlignment Alignment { get; private set; } /// <summary> /// The indentation of the first line of the receiver. (read-only) /// </summary> [iOSVersion(6)] [Export("firstLineHeadIndent")] public CGFloat FirstLineHeadIndent { get; private set; } /// <summary> /// The indentation of the receiver’s lines other than the first. (read-only) /// </summary> [iOSVersion(6)] [Export("headIndent")] public CGFloat HeadIndent { get; private set; } /// <summary> /// The trailing indentation of the receiver. (read-only) /// </summary> [iOSVersion(6)] [Export("tailIndent")] public CGFloat TailIndent { get; private set; } /// <summary> /// The line height multiple. (read-only) /// </summary> [iOSVersion(6)] [Export("lineHeightMultiple")] public CGFloat LineHeightMultiple { get; private set; } /// <summary> /// The receiver’s maximum line height. (read-only) /// </summary> [iOSVersion(6)] [Export("maximumLineHeight")] public CGFloat MaximumLineHeight { get; private set; } /// <summary> /// The receiver’s minimum height. (read-only) /// </summary> [iOSVersion(6)] [Export("minimumLineHeight")] public CGFloat MinimumLineHeight { get; private set; } /// <summary> /// The distance in points between the bottom of one line fragment and the top of the next. (read-only) /// </summary> [iOSVersion(6)] [Export("lineSpacing")] public CGFloat LineSpacing { get; private set; } /// <summary> /// The space after the end of the paragraph. (read-only) /// </summary> [iOSVersion(6)] [Export("paragraphSpacing")] public CGFloat ParagraphSpacing { get; private set; } /// <summary> /// The distance between the paragraph’s top and the beginning of its text content. (read-only) /// </summary> [iOSVersion(6)] [Export("paragraphSpacingBefore")] public CGFloat ParagraphSpacingBefore { get; private set; } /// <summary> /// Returns the receiver’s tab stops. /// </summary> [iOSVersion(7)] [Export("tabStops")] public AnyObject[] TabStops { get; private set; } /// <summary> /// Returns the document-wide default tab interval. /// </summary> [iOSVersion(7)] [Export("defaultTabInterval")] public CGFloat DefaultTabInterval { get; private set; } /// <summary> /// The mode that should be used to break lines in the receiver. (read-only) /// </summary> [iOSVersion(6)] [Export("lineBreakMode")] public NSLineBreakMode LineBreakMode { get; private set; } /// <summary> /// The paragraph’s threshold for hyphenation. (read-only) /// </summary> [iOSVersion(6)] [Export("hyphenationFactor")] public float HyphenationFactor { get; private set; } /// <summary> /// The base writing direction for the receiver. (read-only) /// </summary> [iOSVersion(6)] [Export("baseWritingDirection")] public NSWritingDirection BaseWritingDirection { get; private set; } } /// <summary> /// These constants specify what happens when a line is too long for its container. /// </summary> [iOSVersion(6)] public enum NSLineBreakMode { /// <summary> /// Wrapping occurs at word boundaries, unless the word itself doesn’t fit on a single line. See Characters and Grapheme Clusters in String Programming Guide for a discussion of issues related to determining word boundaries. /// </summary> [iOSVersion(6)] ByWordWrapping, /// <summary> /// Wrapping occurs before the first character that doesn’t fit. /// </summary> [iOSVersion(6)] ByCharWrapping, /// <summary> /// Lines are simply not drawn past the edge of the text container. /// </summary> [iOSVersion(6)] ByClipping, /// <summary> /// The line is displayed so that the end fits in the container and the missing text at the beginning of the line is indicated by an ellipsis glyph. Although this mode works for multiline text, it is more often used for single line text. /// </summary> [iOSVersion(6)] ByTruncatingHead, /// <summary> /// The line is displayed so that the beginning fits in the container and the missing text at the end of the line is indicated by an ellipsis glyph. Although this mode works for multiline text, it is more often used for single line text. /// </summary> [iOSVersion(6)] ByTruncatingTail, /// <summary> /// The line is displayed so that the beginning and end fit in the container and the missing text in the middle is indicated by an ellipsis glyph. Although this mode works for multiline text, it is more often used for single line text. /// </summary> [iOSVersion(6)] ByTruncatingMiddle, } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/NSTextTab.cs b/CocoaSharp/UIKit/NSTextTab.cs
index 16577f19..a6237dff 100644
--- a/CocoaSharp/UIKit/NSTextTab.cs
+++ b/CocoaSharp/UIKit/NSTextTab.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// An NSTextTab object represents a tab in an NSParagraphStyle object, storing an alignment type and location. NSTextTab objects are used with Text Kit. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/NSTextTab_Class_TextKit/index.html#//apple_ref/occ/cl/NSTextTab"/> [iOSVersion(7)] public class NSTextTab : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol { public NSTextTab() { } /// <summary> /// Initializes a text tab with the text alignment, location, and options. /// </summary> /// <param name="textAlignment"></param> /// <param name="location"></param> /// <param name="options"></param> [iOSVersion(7)] public NSTextTab(NSTextAlignment textAlignment, CGFloat location, Dictionary<NSObject, AnyObject> options) { } /// <summary> /// Returns the column terminators for the given locale. /// </summary> /// <param name="aLocale"></param> [iOSVersion(7)] [Export("columnTerminatorsForLocale")] public virtual static NSCharacterSet ColumnTerminatorsForLocale(NSLocale aLocale) { return default(NSCharacterSet); } /// <summary> /// The dictionary of optional configuration attributes. /// </summary> [iOSVersion(7)] [Export("options")] public Dictionary<NSObject, AnyObject> Options { get; private set; } /// <summary> /// The location of the tab stop inside the line fragment rectangle coordinate system. /// </summary> [iOSVersion(7)] [Export("location")] public CGFloat Location { get; private set; } /// <summary> /// The aligment of tab column contents. /// </summary> [iOSVersion(7)] [Export("alignment")] public NSTextAlignment Alignment { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// An NSTextTab object represents a tab in an NSParagraphStyle object, storing an alignment type and location. NSTextTab objects are used with Text Kit. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/NSTextTab_Class_TextKit/index.html#//apple_ref/occ/cl/NSTextTab"/> [iOSVersion(7)] public class NSTextTab : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol { public NSTextTab() { } /// <summary> /// Initializes a text tab with the text alignment, location, and options. /// </summary> /// <param name="textAlignment"></param> /// <param name="location"></param> /// <param name="options"></param> [iOSVersion(7)] public NSTextTab(NSTextAlignment textAlignment, CGFloat location, Dictionary<NSObject, AnyObject> options) { } /// <summary> /// Returns the column terminators for the given locale. /// </summary> /// <param name="aLocale"></param> [iOSVersion(7)] [Export("columnTerminatorsForLocale")] public static NSCharacterSet ColumnTerminatorsForLocale(NSLocale aLocale) { return default(NSCharacterSet); } /// <summary> /// The dictionary of optional configuration attributes. /// </summary> [iOSVersion(7)] [Export("options")] public Dictionary<NSObject, AnyObject> Options { get; private set; } /// <summary> /// The location of the tab stop inside the line fragment rectangle coordinate system. /// </summary> [iOSVersion(7)] [Export("location")] public CGFloat Location { get; private set; } /// <summary> /// The aligment of tab column contents. /// </summary> [iOSVersion(7)] [Export("alignment")] public NSTextAlignment Alignment { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/NSLayoutManagerDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/NSLayoutManagerDelegate.cs
index 4d3ec9f8..f4576e23 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/NSLayoutManagerDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/NSLayoutManagerDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The NSLayoutManagerDelegate protocol defines the optional methods implemented by delegates of NSLayoutManager objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/NSLayoutManagerDelegate_Protocol_TextKit/index.html#//apple_ref/occ/intf/NSLayoutManagerDelegate"/> [iOSVersion(7)] public interface NSLayoutManagerDelegate//: NSObjectProtocol { /// <summary> /// Sent while determining the hyphenation point. /// </summary> /// <param name="layoutManager">The layout manager doing the layout.</param> /// <param name="shouldBreakLineByHyphenatingBeforeCharacterAtIndex">Index of the character delimiting the hyphenation point search.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] bool LayoutManager(NSLayoutManager layoutManager, int shouldBreakLineByHyphenatingBeforeCharacterAtIndex); /// <summary> /// Sent while determining the soft line break point. /// </summary> /// <param name="layoutManager">The layout manager doing the layout.</param> /// <param name="shouldBreakLineByWordBeforeCharacterAtIndex">Index of the character delimiting the break point search.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] bool LayoutManager(NSLayoutManager layoutManager, int shouldBreakLineByWordBeforeCharacterAtIndex, bool NAME_YOUR_PARAMS = false); /// <summary> /// Returns the spacing after the line ending with the given glyph index. /// </summary> /// <param name="layoutManager">The layout manager doing the layout.</param> /// <param name="lineSpacingAfterGlyphAtIndex">The index of the glyph at the end of the line.</param> /// <param name="withProposedLineFragmentRect">The proposed line fragment rectangle for the current line.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] CGFloat LayoutManager(NSLayoutManager layoutManager, int lineSpacingAfterGlyphAtIndex, CGRect withProposedLineFragmentRect); /// <summary> /// Returns the paragraph spacing after the line ending with the given glyph index. /// </summary> /// <param name="layoutManager">The layout manager doing the layout.</param> /// <param name="paragraphSpacingAfterGlyphAtIndex">The index of the glyph at the end of the line.</param> /// <param name="withProposedLineFragmentRect">The proposed line fragment rectangle for the current line.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] CGFloat LayoutManager(NSLayoutManager layoutManager, int paragraphSpacingAfterGlyphAtIndex, CGRect withProposedLineFragmentRect, bool NAME_YOUR_PARAMS = false); /// <summary> /// Returns the paragraph spacing before the line starting with the given glyph index. /// </summary> /// <param name="layoutManager">The layout manager doing the layout.</param> /// <param name="paragraphSpacingBeforeGlyphAtIndex">The index of the glyph at the beginning of the line.</param> /// <param name="withProposedLineFragmentRect">The proposed line fragment rectangle for the current line.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] CGFloat LayoutManager(NSLayoutManager layoutManager, int paragraphSpacingBeforeGlyphAtIndex, CGRect withProposedLineFragmentRect, int NAME_YOUR_PARAMS = 0); /// <summary> /// Returns the bounding rectangle for the specified control glyph with the specified parameters. /// </summary> /// <param name="layoutManager">The layout manager doing the layout.</param> /// <param name="boundingBoxForControlGlyphAtIndex">The index of the control glyph in question.</param> /// <param name="forTextContainer">The text container to use to calculate the position.</param> /// <param name="proposedLineFragment">The proposed line fragment rectangle.</param> /// <param name="glyphPosition">The position of the glyph in textContainer.</param> /// <param name="characterIndex">The character index in textContainer.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] CGRect LayoutManager(NSLayoutManager layoutManager, int boundingBoxForControlGlyphAtIndex, NSTextContainer forTextContainer, CGRect proposedLineFragment, CGPoint glyphPosition, int characterIndex); /// <summary> /// Informs the delegate that the given layout manager has finished laying out text in the given text container. /// </summary> /// <param name="layoutManager">The layout manager doing the layout.</param> /// <param name="didCompleteLayoutForTextContainer">The text container in which layout is complete. If nil, if there aren’t enough containers to hold all the text; the delegate can use this information as a cue to add another text container.</param> /// <param name="atEnd">If true, layoutManager is finished laying out its text—this also means that textContainer is the final text container used by the layout manager. Delegates can use this information to show an indicator or background or to enable or disable a button that forces immediate layout of text.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] void LayoutManager(NSLayoutManager layoutManager, NSTextContainer didCompleteLayoutForTextContainer, bool atEnd); /// <summary> /// Sent right before the layout manager invalidates layout due to the text container changing geometry. /// </summary> /// <param name="layoutManager">The layout manager invalidating layout.</param> /// <param name="textContainer">The text container that changed geometry.</param> /// <param name="didChangeGeometryFromSize">The size of the text container before it changed geometry.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] void LayoutManager(NSLayoutManager layoutManager, NSTextContainer textContainer, CGSize didChangeGeometryFromSize); /// <summary> /// Enables customizing the initial glyph generation process. /// </summary> /// <param name="layoutManager">The layout manager doing the layout.</param> /// <param name="shouldGenerateGlyphs">A pointer to the layout manager's glyph cache.</param> /// <param name="properties">A pointer to a buffer containing glyph properties for the glyphs in the cache.</param> /// <param name="characterIndexes">A pointer to the starting index for the characters in the text storage for which glyphs are generated.</param> /// <param name="font">A font to override the font attributes in the text storage for the specified character range.</param> /// <param name="forGlyphRange">The range of glyphs in the glyph cache to set.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] int LayoutManager(NSLayoutManager layoutManager, UnsafePointer<CGGlyph> shouldGenerateGlyphs, UnsafePointer<NSGlyphProperty> properties, UnsafePointer<int> characterIndexes, UIFont font, NSRange forGlyphRange); /// <summary> /// Returns the control character action for the control character at the given character index. /// </summary> /// <param name="layoutManager">The layout manager doing the layout.</param> /// <param name="shouldUseAction">The proposed control character action for the character at the given index. Possible values are enumerated by NSControlCharacterAction.</param> /// <param name="forControlCharacterAtIndex">The index of the control character for which the action is proposed.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] NSControlCharacterAction LayoutManager(NSLayoutManager layoutManager, NSControlCharacterAction shouldUseAction, int forControlCharacterAtIndex); /// <summary> /// Informs the delegate that the given layout manager has invalidated layout information (not glyph information). /// </summary> /// <param name="sender">The layout manager that invalidated layout.</param> //[iOSVersion(7)] //[Export("layoutManagerDidInvalidateLayout")] //[Optional] void LayoutManagerDidInvalidateLayout(NSLayoutManager sender); } } \ 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 NSLayoutManagerDelegate protocol defines the optional methods implemented by delegates of NSLayoutManager objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/NSLayoutManagerDelegate_Protocol_TextKit/index.html#//apple_ref/occ/intf/NSLayoutManagerDelegate"/> [iOSVersion(7)] public interface NSLayoutManagerDelegate//: NSObjectProtocol { /// <summary> /// Sent while determining the hyphenation point. /// </summary> /// <param name="layoutManager">The layout manager doing the layout.</param> /// <param name="shouldBreakLineByHyphenatingBeforeCharacterAtIndex">Index of the character delimiting the hyphenation point search.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] //bool LayoutManager(NSLayoutManager layoutManager, int shouldBreakLineByHyphenatingBeforeCharacterAtIndex); /// <summary> /// Sent while determining the soft line break point. /// </summary> /// <param name="layoutManager">The layout manager doing the layout.</param> /// <param name="shouldBreakLineByWordBeforeCharacterAtIndex">Index of the character delimiting the break point search.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool LayoutManager(NSLayoutManager layoutManager, int shouldBreakLineByWordBeforeCharacterAtIndex, bool NAME_YOUR_PARAMS = false); /// <summary> /// Returns the spacing after the line ending with the given glyph index. /// </summary> /// <param name="layoutManager">The layout manager doing the layout.</param> /// <param name="lineSpacingAfterGlyphAtIndex">The index of the glyph at the end of the line.</param> /// <param name="withProposedLineFragmentRect">The proposed line fragment rectangle for the current line.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] //CGFloat LayoutManager(NSLayoutManager layoutManager, int lineSpacingAfterGlyphAtIndex, CGRect withProposedLineFragmentRect); /// <summary> /// Returns the paragraph spacing after the line ending with the given glyph index. /// </summary> /// <param name="layoutManager">The layout manager doing the layout.</param> /// <param name="paragraphSpacingAfterGlyphAtIndex">The index of the glyph at the end of the line.</param> /// <param name="withProposedLineFragmentRect">The proposed line fragment rectangle for the current line.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //CGFloat LayoutManager(NSLayoutManager layoutManager, int paragraphSpacingAfterGlyphAtIndex, CGRect withProposedLineFragmentRect, bool NAME_YOUR_PARAMS = false); /// <summary> /// Returns the paragraph spacing before the line starting with the given glyph index. /// </summary> /// <param name="layoutManager">The layout manager doing the layout.</param> /// <param name="paragraphSpacingBeforeGlyphAtIndex">The index of the glyph at the beginning of the line.</param> /// <param name="withProposedLineFragmentRect">The proposed line fragment rectangle for the current line.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //CGFloat LayoutManager(NSLayoutManager layoutManager, int paragraphSpacingBeforeGlyphAtIndex, CGRect withProposedLineFragmentRect, int NAME_YOUR_PARAMS = 0); /// <summary> /// Returns the bounding rectangle for the specified control glyph with the specified parameters. /// </summary> /// <param name="layoutManager">The layout manager doing the layout.</param> /// <param name="boundingBoxForControlGlyphAtIndex">The index of the control glyph in question.</param> /// <param name="forTextContainer">The text container to use to calculate the position.</param> /// <param name="proposedLineFragment">The proposed line fragment rectangle.</param> /// <param name="glyphPosition">The position of the glyph in textContainer.</param> /// <param name="characterIndex">The character index in textContainer.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] //CGRect LayoutManager(NSLayoutManager layoutManager, int boundingBoxForControlGlyphAtIndex, NSTextContainer forTextContainer, CGRect proposedLineFragment, CGPoint glyphPosition, int characterIndex); /// <summary> /// Informs the delegate that the given layout manager has finished laying out text in the given text container. /// </summary> /// <param name="layoutManager">The layout manager doing the layout.</param> /// <param name="didCompleteLayoutForTextContainer">The text container in which layout is complete. If nil, if there aren’t enough containers to hold all the text; the delegate can use this information as a cue to add another text container.</param> /// <param name="atEnd">If true, layoutManager is finished laying out its text—this also means that textContainer is the final text container used by the layout manager. Delegates can use this information to show an indicator or background or to enable or disable a button that forces immediate layout of text.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] //void LayoutManager(NSLayoutManager layoutManager, NSTextContainer didCompleteLayoutForTextContainer, bool atEnd); /// <summary> /// Sent right before the layout manager invalidates layout due to the text container changing geometry. /// </summary> /// <param name="layoutManager">The layout manager invalidating layout.</param> /// <param name="textContainer">The text container that changed geometry.</param> /// <param name="didChangeGeometryFromSize">The size of the text container before it changed geometry.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] //void LayoutManager(NSLayoutManager layoutManager, NSTextContainer textContainer, CGSize didChangeGeometryFromSize); /// <summary> /// Enables customizing the initial glyph generation process. /// </summary> /// <param name="layoutManager">The layout manager doing the layout.</param> /// <param name="shouldGenerateGlyphs">A pointer to the layout manager's glyph cache.</param> /// <param name="properties">A pointer to a buffer containing glyph properties for the glyphs in the cache.</param> /// <param name="characterIndexes">A pointer to the starting index for the characters in the text storage for which glyphs are generated.</param> /// <param name="font">A font to override the font attributes in the text storage for the specified character range.</param> /// <param name="forGlyphRange">The range of glyphs in the glyph cache to set.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] //int LayoutManager(NSLayoutManager layoutManager, UnsafePointer<CGGlyph> shouldGenerateGlyphs, UnsafePointer<NSGlyphProperty> properties, UnsafePointer<int> characterIndexes, UIFont font, NSRange forGlyphRange); /// <summary> /// Returns the control character action for the control character at the given character index. /// </summary> /// <param name="layoutManager">The layout manager doing the layout.</param> /// <param name="shouldUseAction">The proposed control character action for the character at the given index. Possible values are enumerated by NSControlCharacterAction.</param> /// <param name="forControlCharacterAtIndex">The index of the control character for which the action is proposed.</param> //[iOSVersion(7)] //[Export("layoutManager")] //[Optional] //NSControlCharacterAction LayoutManager(NSLayoutManager layoutManager, NSControlCharacterAction shouldUseAction, int forControlCharacterAtIndex); /// <summary> /// Informs the delegate that the given layout manager has invalidated layout information (not glyph information). /// </summary> /// <param name="sender">The layout manager that invalidated layout.</param> //[iOSVersion(7)] //[Export("layoutManagerDidInvalidateLayout")] //[Optional] //void LayoutManagerDidInvalidateLayout(NSLayoutManager sender); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/NSTextStorageDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/NSTextStorageDelegate.cs
index 53f42465..85ed5cef 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/NSTextStorageDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/NSTextStorageDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The NSTextStorageDelegate protocol defines the optional methods implemented by delegates of NSTextStorage objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/NSTextStorageDelegate_Protocol_TextKit/index.html#//apple_ref/occ/intf/NSTextStorageDelegate"/> [iOSVersion(7)] public interface NSTextStorageDelegate//: NSObjectProtocol { /// <summary> /// Sent when a text storage object is about to process edits. /// </summary> /// <param name="textStorage">The text storage object processing edits.</param> /// <param name="willProcessEditing">The types of edits to do: NSTextStorageEditedAttributes, NSTextStorageEditedCharacters, or both.</param> /// <param name="range">The range in the original string (before the edit).</param> /// <param name="changeInLength">The length delta for the editing changes.</param> //[iOSVersion(7)] //[Export("textStorage")] //[Optional] void TextStorage(NSTextStorage textStorage, NSTextStorageEditActions willProcessEditing, NSRange range, int changeInLength); /// <summary> /// Sent when a text storage object has finished processing edits. /// </summary> /// <param name="textStorage">The text storage object processing edits.</param> /// <param name="didProcessEditing">The types of edits done: NSTextStorageEditedAttributes, NSTextStorageEditedCharacters, or both.</param> /// <param name="range">The range in the original string (before the edit).</param> /// <param name="changeInLength">The length delta for the editing changes.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("textStorage")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void TextStorage(NSTextStorage textStorage, NSTextStorageEditActions didProcessEditing, NSRange range, int changeInLength, bool NAME_YOUR_PARAMS = false); } } \ 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 NSTextStorageDelegate protocol defines the optional methods implemented by delegates of NSTextStorage objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/NSTextStorageDelegate_Protocol_TextKit/index.html#//apple_ref/occ/intf/NSTextStorageDelegate"/> [iOSVersion(7)] public interface NSTextStorageDelegate//: NSObjectProtocol { /// <summary> /// Sent when a text storage object is about to process edits. /// </summary> /// <param name="textStorage">The text storage object processing edits.</param> /// <param name="willProcessEditing">The types of edits to do: NSTextStorageEditedAttributes, NSTextStorageEditedCharacters, or both.</param> /// <param name="range">The range in the original string (before the edit).</param> /// <param name="changeInLength">The length delta for the editing changes.</param> //[iOSVersion(7)] //[Export("textStorage")] //[Optional] //void TextStorage(NSTextStorage textStorage, NSTextStorageEditActions willProcessEditing, NSRange range, int changeInLength); /// <summary> /// Sent when a text storage object has finished processing edits. /// </summary> /// <param name="textStorage">The text storage object processing edits.</param> /// <param name="didProcessEditing">The types of edits done: NSTextStorageEditedAttributes, NSTextStorageEditedCharacters, or both.</param> /// <param name="range">The range in the original string (before the edit).</param> /// <param name="changeInLength">The length delta for the editing changes.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("textStorage")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void TextStorage(NSTextStorage textStorage, NSTextStorageEditActions didProcessEditing, NSRange range, int changeInLength, bool NAME_YOUR_PARAMS = false); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIActionSheetDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIActionSheetDelegate.cs
deleted file mode 100644
index f6bfb951..00000000
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIActionSheetDelegate.cs
+++ /dev/null
@@ -1 +0,0 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIActionSheetDelegate protocol defines the methods a delegate of a UIActionSheet object should implement. The delegate implements the button actions and any other custom behavior. Some of the methods defined in this protocol are optional. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIModalViewDelegate_Protocol/index.html#//apple_ref/occ/intf/UIActionSheetDelegate"/> [iOSVersion(2)] public interface UIActionSheetDelegate//: NSObjectProtocol { /// <summary> /// Sent to the delegate when the user clicks a button on an action sheet. /// </summary> /// <param name="actionSheet">The action sheet containing the button.</param> /// <param name="clickedButtonAtIndex">The position of the clicked button. The button indices start at 0.</param> [iOSVersion(2)] [Export("actionSheet")] void ActionSheet(UIActionSheet actionSheet, int clickedButtonAtIndex); /// <summary> /// Sent to the delegate before an action sheet is presented to the user. /// </summary> /// <param name="actionSheet">The action sheet that is about to be displayed.</param> [iOSVersion(2)] [Export("willPresentActionSheet")] void WillPresentActionSheet(UIActionSheet actionSheet); /// <summary> /// Sent to the delegate after an action sheet is presented to the user. /// </summary> /// <param name="actionSheet">The action sheet that was displayed.</param> [iOSVersion(2)] [Export("didPresentActionSheet")] void DidPresentActionSheet(UIActionSheet actionSheet); /// <summary> /// Sent to the delegate before an action sheet is dismissed. /// </summary> /// <param name="actionSheet">The action sheet that is about to be dismissed.</param> /// <param name="willDismissWithButtonIndex">The index of the button that was clicked. If this is the cancel button index, the action sheet is canceling. If -1, the cancel button index is not set.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("actionSheet")] [IgnoreParameter("NAME_YOUR_PARAMS")] void ActionSheet(UIActionSheet actionSheet, int willDismissWithButtonIndex, bool NAME_YOUR_PARAMS = false); /// <summary> /// Sent to the delegate after an action sheet is dismissed from the screen. /// </summary> /// <param name="actionSheet">The action sheet that was dismissed.</param> /// <param name="didDismissWithButtonIndex">The index of the button that was clicked. The button indices start at 0. If this is the cancel button index, the action sheet is canceling. If -1, the cancel button index is not set.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("actionSheet")] [IgnoreParameter("NAME_YOUR_PARAMS")] void ActionSheet(UIActionSheet actionSheet, int didDismissWithButtonIndex, int NAME_YOUR_PARAMS = 0); /// <summary> /// Sent to the delegate before an action sheet is canceled. /// </summary> /// <param name="actionSheet">The action sheet that will be canceled.</param> [iOSVersion(2)] [Export("actionSheetCancel")] void ActionSheetCancel(UIActionSheet actionSheet); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIAdaptivePresentationControllerDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIAdaptivePresentationControllerDelegate.cs
index 11d13f98..f8bce9ad 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIAdaptivePresentationControllerDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIAdaptivePresentationControllerDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// An object that conforms to the UIAdaptivePresentationControllerDelegate protocol works with a presentation controller to determine how to respond to size changes in your app. The delegate object is consulted only for presentations that use the UIModalPresentationFormSheet, UIModalPresentationPopover, or UIModalPresentationCustom style. Your delegate can suggest both a new full-screen presentation style and an entirely new view controller for the content. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIAdaptivePresentationControllerDelegate_protocol/index.html#//apple_ref/occ/intf/UIAdaptivePresentationControllerDelegate"/> [iOSVersion(8)] public interface UIAdaptivePresentationControllerDelegate//: NSObjectProtocol { /// <summary> /// Asks the delegate for the new presentation style to use. /// </summary> /// <param name="controller">The presentation controller that is managing the size change. Use this object to retrieve the view controllers involved in the presentation.</param> //[iOSVersion(8)] //[Export("adaptivePresentationStyleForPresentationController")] //[Optional] UIModalPresentationStyle AdaptivePresentationStyleForPresentationController(UIPresentationController controller); /// <summary> /// Asks the delegate for the view controller to display when adapting to the specified presentation style. /// </summary> /// <param name="controller">The presentation controller that is managing the size class change.</param> /// <param name="viewControllerForAdaptivePresentationStyle">The new presentation style that is about to be employed to display the view controller.</param> //[iOSVersion(8)] //[Export("presentationController")] //[Optional] UIViewController PresentationController(UIPresentationController controller, UIModalPresentationStyle viewControllerForAdaptivePresentationStyle); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// An object that conforms to the UIAdaptivePresentationControllerDelegate protocol works with a presentation controller to determine how to respond to size changes in your app. The delegate object is consulted only for presentations that use the UIModalPresentationFormSheet, UIModalPresentationPopover, or UIModalPresentationCustom style. Your delegate can suggest both a new full-screen presentation style and an entirely new view controller for the content. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIAdaptivePresentationControllerDelegate_protocol/index.html#//apple_ref/occ/intf/UIAdaptivePresentationControllerDelegate"/> [iOSVersion(8)] public interface UIAdaptivePresentationControllerDelegate//: NSObjectProtocol { /// <summary> /// Asks the delegate for the new presentation style to use. /// </summary> /// <param name="controller">The presentation controller that is managing the size change. Use this object to retrieve the view controllers involved in the presentation.</param> //[iOSVersion(8)] //[Export("adaptivePresentationStyleForPresentationController")] //[Optional] //UIModalPresentationStyle AdaptivePresentationStyleForPresentationController(UIPresentationController controller); /// <summary> /// Asks the delegate for the view controller to display when adapting to the specified presentation style. /// </summary> /// <param name="controller">The presentation controller that is managing the size class change.</param> /// <param name="viewControllerForAdaptivePresentationStyle">The new presentation style that is about to be employed to display the view controller.</param> //[iOSVersion(8)] //[Export("presentationController")] //[Optional] //UIViewController PresentationController(UIPresentationController controller, UIModalPresentationStyle viewControllerForAdaptivePresentationStyle); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIAlertViewDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIAlertViewDelegate.cs
deleted file mode 100644
index 99c675b1..00000000
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIAlertViewDelegate.cs
+++ /dev/null
@@ -1 +0,0 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIAlertViewDelegate protocol defines the methods a delegate of a UIAlertView object should implement. The delegate implements the button actions and any other custom behavior. Some of the methods defined in this protocol are optional. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIAlertViewDelegate_Protocol/index.html#//apple_ref/occ/intf/UIAlertViewDelegate"/> [iOSVersion(2)] public interface UIAlertViewDelegate//: NSObjectProtocol { /// <summary> /// Sent to the delegate when the user clicks a button on an alert view. /// </summary> /// <param name="alertView">The alert view containing the button.</param> /// <param name="clickedButtonAtIndex">The index of the button that was clicked. The button indices start at 0.</param> [iOSVersion(2)] [Export("alertView")] void AlertView(UIAlertView alertView, int clickedButtonAtIndex); /// <summary> /// Sent to the delegate to determine whether the first non-cancel button in the alert should be enabled. /// </summary> /// <param name="alertView">The alert view that is being configured.</param> [iOSVersion(5)] [Export("alertViewShouldEnableFirstOtherButton")] bool AlertViewShouldEnableFirstOtherButton(UIAlertView alertView); /// <summary> /// Sent to the delegate before a model view is presented to the user. /// </summary> /// <param name="alertView">The alert view that is about to be displayed.</param> [iOSVersion(2)] [Export("willPresentAlertView")] void WillPresentAlertView(UIAlertView alertView); /// <summary> /// Sent to the delegate after an alert view is presented to the user. /// </summary> /// <param name="alertView">The alert view that was displayed.</param> [iOSVersion(2)] [Export("didPresentAlertView")] void DidPresentAlertView(UIAlertView alertView); /// <summary> /// Sent to the delegate before an alert view is dismissed. /// </summary> /// <param name="alertView">The alert view that is about to be dismissed.</param> /// <param name="willDismissWithButtonIndex">The index of the button that was clicked. The button indices start at 0. If this is the cancel button index, the alert view is canceling. If -1, the cancel button index is not set.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("alertView")] [IgnoreParameter("NAME_YOUR_PARAMS")] void AlertView(UIAlertView alertView, int willDismissWithButtonIndex, bool NAME_YOUR_PARAMS = false); /// <summary> /// Sent to the delegate after an alert view is dismissed from the screen. /// </summary> /// <param name="alertView">The alert view that was dismissed.</param> /// <param name="didDismissWithButtonIndex">The index of the button that was clicked. The button indices start at 0. If this is the cancel button index, the alert view is canceling. If -1, the cancel button index is not set.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("alertView")] [IgnoreParameter("NAME_YOUR_PARAMS")] void AlertView(UIAlertView alertView, int didDismissWithButtonIndex, int NAME_YOUR_PARAMS = 0); /// <summary> /// Sent to the delegate before an alert view is canceled. /// </summary> /// <param name="alertView">The alert view that will be canceled.</param> [iOSVersion(2)] [Export("alertViewCancel")] void AlertViewCancel(UIAlertView alertView); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIApplicationDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIApplicationDelegate.cs
index 77122389..92d222af 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIApplicationDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIApplicationDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIApplicationDelegate protocol defines methods that are called by the singleton UIApplication object in response to important events in the lifetime of your app. The app delegate works alongside the app object to ensure your app interacts properly with the system and with other apps. Specifically, the methods of the app delegate give you a chance to respond to important changes. For example, you use the methods of the app delegate to respond to state transitions, such as when your app moves from foreground to background execution, and to respond to incoming notifications. In many cases, the methods of the app delegate are the only way to receive these important notifications. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/index.html#//apple_ref/occ/intf/UIApplicationDelegate"/> [iOSVersion(2)] public interface UIApplicationDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate that the launch process has begun but that state restoration has not yet occurred. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="willFinishLaunchingWithOptions">A dictionary indicating the reason the app was launched (if any). The contents of this dictionary may be empty in situations where the user launched the app directly. For information about the possible keys in this dictionary and how to handle them, see Launch Options Keys.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] bool Application(UIApplication application, Dictionary<NSObject, AnyObject> willFinishLaunchingWithOptions); /// <summary> /// Tells the delegate that the launch process is almost done and the app is almost ready to run. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didFinishLaunchingWithOptions">A dictionary indicating the reason the app was launched (if any). The contents of this dictionary may be empty in situations where the user launched the app directly. For information about the possible keys in this dictionary and how to handle them, see Launch Options Keys.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] bool Application(UIApplication application, Dictionary<NSObject, AnyObject> didFinishLaunchingWithOptions, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the app has become active. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationDidBecomeActive")] //[Optional] void ApplicationDidBecomeActive(UIApplication application); /// <summary> /// Tells the delegate that the app is about to become inactive. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationWillResignActive")] //[Optional] void ApplicationWillResignActive(UIApplication application); /// <summary> /// Tells the delegate that the app is now in the background. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(4)] //[Export("applicationDidEnterBackground")] //[Optional] void ApplicationDidEnterBackground(UIApplication application); /// <summary> /// Tells the delegate that the app is about to enter the foreground. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(4)] //[Export("applicationWillEnterForeground")] //[Optional] void ApplicationWillEnterForeground(UIApplication application); /// <summary> /// Tells the delegate when the app is about to terminate. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationWillTerminate")] //[Optional] void ApplicationWillTerminate(UIApplication application); /// <summary> /// Tells the app that it can begin a fetch operation if it has data to download. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="performFetchWithCompletionHandler">The block to execute when the download operation is complete. When calling this block, pass in the fetch result value that best describes the results of your download operation. You must call this handler and should do so as soon as possible. For a list of possible values, see the UIBackgroundFetchResult type.</param> //[iOSVersion(7)] //[Export("application")] //[Optional] void Application(UIApplication application, Action<UIBackgroundFetchResult> performFetchWithCompletionHandler); /// <summary> /// Tells the delegate that events related to a URL session are waiting to be processed. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="handleEventsForBackgroundURLSession">The identifier of the URL session requiring attention. If your app was just launched, you can use this identifier to create a new NSURLSession object that can receive the events.</param> /// <param name="completionHandler">The completion handler to call when you finish processing the events. Calling this completion handler lets the system know that your app’s user interface is updated and a new snapshot can be taken.</param> //[iOSVersion(7)] //[Export("application")] //[Optional] void Application(UIApplication application, string handleEventsForBackgroundURLSession, Action completionHandler); /// <summary> /// Tells the delegate that the app successfully registered with Apple Push Service (APS). /// </summary> /// <param name="application">The app object that initiated the remote-notification registration process.</param> /// <param name="didRegisterForRemoteNotificationsWithDeviceToken">A token that identifies the device to APS. The token is an opaque data type because that is the form that the provider needs to submit to the APS servers when it sends a notification to a device. The APS servers require a binary format for performance reasons. /// The size of a device token is 32 bytes. /// Note that the device token is different from the uniqueIdentifier property of UIDevice because, for security and privacy reasons, it must change when the device is wiped.</param> //[iOSVersion(3)] //[Export("application")] //[Optional] void Application(UIApplication application, NSData didRegisterForRemoteNotificationsWithDeviceToken); /// <summary> /// Sent to the delegate when Apple Push Service cannot successfully complete the registration process. /// </summary> /// <param name="application">The app object that initiated the remote-notification registration process.</param> /// <param name="didFailToRegisterForRemoteNotificationsWithError">An NSError object that encapsulates information why registration did not succeed. The app can choose to display this information to the user.</param> //[iOSVersion(3)] //[Export("application")] //[Optional] void Application(UIApplication application, NSError didFailToRegisterForRemoteNotificationsWithError); /// <summary> /// Tells the app that a push notification arrived that indicates there is data to be fetched. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didReceiveRemoteNotification">A dictionary that contains information related to the remote notification, potentially including a badge number for the app icon, an alert sound, an alert message to display to the user, a notification identifier, and custom data. The provider originates it as a JSON-defined dictionary that iOS converts to an NSDictionary object; the dictionary may contain only property-list objects plus NSNull. For more information about the contents of the push notification dictionary, see Local and Push Notification Programming Guide.</param> /// <param name="fetchCompletionHandler">The block to execute when the download operation is complete. When calling this block, pass in the fetch result value that best describes the results of your download operation. You must call this handler and should do so as soon as possible. For a list of possible values, see the UIBackgroundFetchResult type.</param> //[iOSVersion(7)] //[Export("application")] //[Optional] void Application(UIApplication application, Dictionary<NSObject, AnyObject> didReceiveRemoteNotification, Action<UIBackgroundFetchResult> fetchCompletionHandler); /// <summary> /// Tells the app delegate to perform the custom action specified by a push notification. /// </summary> /// <param name="application">The app object that received the remote notification.</param> /// <param name="handleActionWithIdentifier">The identifier associated with the custom action.</param> /// <param name="forRemoteNotification">A dictionary that contains information related to the remote notification. This dictionary originates from the provider as a JSON-defined dictionary, which iOS converts to an NSDictionary object before calling this method. The contents of the dictionary are the push notification payload, which consists only of property-list objects plus NSNull. For more information about the contents of the push notification dictionary, see Local and Push Notification Programming Guide.</param> /// <param name="completionHandler">The block to execute when you are finished performing the specified action. You must call this block at the end of your method.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] void Application(UIApplication application, Optional<string> handleActionWithIdentifier, Dictionary<NSObject, AnyObject> forRemoteNotification, Action completionHandler); /// <summary> /// Tells the delegate that the running app received a remote notification. /// </summary> /// <param name="application">The app object that received the remote notification.</param> /// <param name="didReceiveRemoteNotification">A dictionary that contains information related to the remote notification, potentially including a badge number for the app icon, an alert sound, an alert message to display to the user, a notification identifier, and custom data. The provider originates it as a JSON-defined dictionary that iOS converts to an NSDictionary object; the dictionary may contain only property-list objects plus NSNull.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void Application(UIApplication application, Dictionary<NSObject, AnyObject> didReceiveRemoteNotification, int NAME_YOUR_PARAMS = 0); /// <summary> /// Sent to the delegate when a running app receives a local notification. /// </summary> /// <param name="application">The app object that received the local notification.</param> /// <param name="didReceiveLocalNotification">A local notification that encapsulates details about the notification, potentially including custom data.</param> //[iOSVersion(4)] //[Export("application")] //[Optional] void Application(UIApplication application, UILocalNotification didReceiveLocalNotification); /// <summary> /// Tells the delegate that the user selected a custom action from the alert panel of a local notification. /// </summary> /// <param name="application">The app object that received the local notification.</param> /// <param name="handleActionWithIdentifier">The identifier associated with the custom action. This string corresponds to the identifier from the UILocalNotificationAction object that was used to configure the action in the local notification.</param> /// <param name="forLocalNotification">The local notification object that was triggered.</param> /// <param name="completionHandler">A block to call when you are finished performing the action.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] void Application(UIApplication application, Optional<string> handleActionWithIdentifier, UILocalNotification forLocalNotification, Action completionHandler); /// <summary> /// Tells the delegate what types of notifications may be used to get the user’s attention. /// </summary> /// <param name="application">The app object that registered the user notification settings.</param> /// <param name="didRegisterUserNotificationSettings">The user notification settings that are available to your app. The settings in this object may be different than the ones you originally requested.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] void Application(UIApplication application, UIUserNotificationSettings didRegisterUserNotificationSettings); /// <summary> /// Tells the delegate when the app receives a memory warning from the system. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationDidReceiveMemoryWarning")] //[Optional] void ApplicationDidReceiveMemoryWarning(UIApplication application); /// <summary> /// Tells the delegate when there is a significant change in the time. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationSignificantTimeChange")] //[Optional] void ApplicationSignificantTimeChange(UIApplication application); /// <summary> /// Asks the delegate whether the app’s state should be preserved. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="shouldSaveApplicationState">The keyed archiver into which you can put high-level state information.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] bool Application(UIApplication application, NSCoder shouldSaveApplicationState); /// <summary> /// Asks the delegate whether the app’s saved state information should be restored. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="shouldRestoreApplicationState">The keyed archiver containing the app’s previously saved state information.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] bool Application(UIApplication application, NSCoder shouldRestoreApplicationState, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate to provide the specified view controller. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="viewControllerWithRestorationIdentifierPath">An array of NSString objects corresponding to the restoration identifiers of the desired view controller and all of its ancestors in the view controller hierarchy. The last value in the array is the restoration identifier of the desired view controller. Earlier entries represent the restoration identifiers of its ancestors.</param> /// <param name="coder">The keyed archiver containing the app’s saved state information.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] Optional<UIViewController> Application(UIApplication application, AnyObject[] viewControllerWithRestorationIdentifierPath, NSCoder coder); /// <summary> /// Tells your delegate to save any high-level state information at the beginning of the state preservation process. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="willEncodeRestorableStateWithCoder">The keyed archiver in which to write any state information.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void Application(UIApplication application, NSCoder willEncodeRestorableStateWithCoder, int NAME_YOUR_PARAMS = 0); /// <summary> /// Tells your delegate to restore any high-level state information as part of the state restoration process. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didDecodeRestorableStateWithCoder">The keyed archiver containing the app’s previously saved state information.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void Application(UIApplication application, NSCoder didDecodeRestorableStateWithCoder, string NAME_YOUR_PARAMS = ""); /// <summary> /// Asks the delegate to open a resource identified by URL. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="openURL">The URL resource to open. This resource can be a network resource or a file. For information about the Apple-registered URL schemes, see Apple URL Scheme Reference.</param> /// <param name="sourceApplication">The bundle ID of the app that is requesting your app to open the URL (url).</param> /// <param name="annotation">A property list object supplied by the source app to communicate information to the receiving app.</param> //[iOSVersion(4.2)] //[Export("application")] //[Optional] bool Application(UIApplication application, NSURL openURL, string sourceApplication, Optional<AnyObject> annotation); /// <summary> /// Tells the delegate that the user wants to continue an activity whose data might not yet be available. /// </summary> /// <param name="application">The shared app object.</param> /// <param name="willContinueUserActivityWithType">The requested activity type.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] bool Application(UIApplication application, string willContinueUserActivityWithType); /// <summary> /// Tells the delegate that the data for continuing an activity is available. /// </summary> /// <param name="application">The shared app object.</param> /// <param name="continueUserActivity">The activity object containing the data associated with the task the user was performing. Use the data in this object to recreate what the user was doing.</param> /// <param name="restorationHandler">A block to execute if your app creates objects to perform the task. Calling this block is optional and you can copy this block and call it at a later time. When calling a saved copy of the block, you must call it from the app’s main thread. This block has no return value and takes the following parameter: /// restorableObjects /// An array of UIResponder objects representing objects you created or fetched in order to perform the operation. The system calls the restoreUserActivityState: method of each object in the array to give it a chance to perform the operation.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] bool Application(UIApplication application, NSUserActivity continueUserActivity, Action<AnyObject[]> restorationHandler); /// <summary> /// Tells the delegate that the activity was updated. (required) /// </summary> /// <param name="application">The shared app object.</param> /// <param name="didUpdateUserActivity">The activity object containing the data associated with the task the user was performing.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] void Application(UIApplication application, NSUserActivity didUpdateUserActivity); /// <summary> /// Tells the delegate that the activity could not be continued. /// </summary> /// <param name="application">The shared app object.</param> /// <param name="didFailToContinueUserActivityWithType">The activity type that was attempted.</param> /// <param name="error">An error object indicating the reason for the failure.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] void Application(UIApplication application, string didFailToContinueUserActivityWithType, NSError error); /// <summary> /// Asks the delegate to grant permission to use app extensions that are based on a specified extension point identifier. (required) /// </summary> /// <param name="application">The shared app object.</param> /// <param name="shouldAllowExtensionPointIdentifier">A constant identifying an extension point.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] bool Application(UIApplication application, string shouldAllowExtensionPointIdentifier, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate when the interface orientation of the status bar is about to change. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="willChangeStatusBarOrientation">A constant that indicates the new orientation of the app’s user interface; see Monitoring App State Changes for details.</param> /// <param name="duration">The duration of the animation to the new orientation, in seconds.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] void Application(UIApplication application, UIInterfaceOrientation willChangeStatusBarOrientation, NSTimeInterval duration); /// <summary> /// Tells the delegate when the interface orientation of the status bar has changed. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didChangeStatusBarOrientation">A constant that indicates the previous orientation of the app’s user interface; see Monitoring App State Changes for details.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] void Application(UIApplication application, UIInterfaceOrientation didChangeStatusBarOrientation); /// <summary> /// Tells the delegate when the frame of the status bar is about to change. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="willChangeStatusBarFrame">The changed frame of the status bar, in screen coordinates.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] void Application(UIApplication application, CGRect willChangeStatusBarFrame); /// <summary> /// Tells the delegate when the frame of the status bar has changed. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didChangeStatusBarFrame">The previous frame of the status bar, in screen coordinates.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void Application(UIApplication application, CGRect didChangeStatusBarFrame, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the protected files are about to become unavailable. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(4)] //[Export("applicationProtectedDataWillBecomeUnavailable")] //[Optional] void ApplicationProtectedDataWillBecomeUnavailable(UIApplication application); /// <summary> /// Tells the delegate that protected files are available now. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(4)] //[Export("applicationProtectedDataDidBecomeAvailable")] //[Optional] void ApplicationProtectedDataDidBecomeAvailable(UIApplication application); /// <summary> /// Asks the delegate for the interface orientations to use for the view controllers in the specified window. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="supportedInterfaceOrientationsForWindow">The window whose interface orientations you want to retrieve.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] int Application(UIApplication application, UIWindow supportedInterfaceOrientationsForWindow); /// <summary> /// Tells the delegate when the app has finished launching. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationDidFinishLaunching")] //[Optional] void ApplicationDidFinishLaunching(UIApplication application); /// <summary> /// Asks the delegate to open a resource identified by URL. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="handleOpenURL">A object representing a URL (Universal Resource Locator). See the appendix of App Programming Guide for iOS for Apple-registered schemes for URLs.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] bool Application(UIApplication application, NSURL handleOpenURL); /// <summary> /// The window to use when presenting a storyboard. /// </summary> [iOSVersion(5)] [Export("window")] Optional<UIWindow> Window { get; set; } } } \ 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 UIApplicationDelegate protocol defines methods that are called by the singleton UIApplication object in response to important events in the lifetime of your app. The app delegate works alongside the app object to ensure your app interacts properly with the system and with other apps. Specifically, the methods of the app delegate give you a chance to respond to important changes. For example, you use the methods of the app delegate to respond to state transitions, such as when your app moves from foreground to background execution, and to respond to incoming notifications. In many cases, the methods of the app delegate are the only way to receive these important notifications. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/index.html#//apple_ref/occ/intf/UIApplicationDelegate"/> [iOSVersion(2)] public interface UIApplicationDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate that the launch process has begun but that state restoration has not yet occurred. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="willFinishLaunchingWithOptions">A dictionary indicating the reason the app was launched (if any). The contents of this dictionary may be empty in situations where the user launched the app directly. For information about the possible keys in this dictionary and how to handle them, see Launch Options Keys.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //bool Application(UIApplication application, Dictionary<NSObject, AnyObject> willFinishLaunchingWithOptions); /// <summary> /// Tells the delegate that the launch process is almost done and the app is almost ready to run. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didFinishLaunchingWithOptions">A dictionary indicating the reason the app was launched (if any). The contents of this dictionary may be empty in situations where the user launched the app directly. For information about the possible keys in this dictionary and how to handle them, see Launch Options Keys.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool Application(UIApplication application, Dictionary<NSObject, AnyObject> didFinishLaunchingWithOptions, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the app has become active. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationDidBecomeActive")] //[Optional] //void ApplicationDidBecomeActive(UIApplication application); /// <summary> /// Tells the delegate that the app is about to become inactive. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationWillResignActive")] //[Optional] //void ApplicationWillResignActive(UIApplication application); /// <summary> /// Tells the delegate that the app is now in the background. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(4)] //[Export("applicationDidEnterBackground")] //[Optional] //void ApplicationDidEnterBackground(UIApplication application); /// <summary> /// Tells the delegate that the app is about to enter the foreground. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(4)] //[Export("applicationWillEnterForeground")] //[Optional] //void ApplicationWillEnterForeground(UIApplication application); /// <summary> /// Tells the delegate when the app is about to terminate. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationWillTerminate")] //[Optional] //void ApplicationWillTerminate(UIApplication application); /// <summary> /// Tells the app that it can begin a fetch operation if it has data to download. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="performFetchWithCompletionHandler">The block to execute when the download operation is complete. When calling this block, pass in the fetch result value that best describes the results of your download operation. You must call this handler and should do so as soon as possible. For a list of possible values, see the UIBackgroundFetchResult type.</param> //[iOSVersion(7)] //[Export("application")] //[Optional] //void Application(UIApplication application, Action<UIBackgroundFetchResult> performFetchWithCompletionHandler); /// <summary> /// Tells the delegate that events related to a URL session are waiting to be processed. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="handleEventsForBackgroundURLSession">The identifier of the URL session requiring attention. If your app was just launched, you can use this identifier to create a new NSURLSession object that can receive the events.</param> /// <param name="completionHandler">The completion handler to call when you finish processing the events. Calling this completion handler lets the system know that your app’s user interface is updated and a new snapshot can be taken.</param> //[iOSVersion(7)] //[Export("application")] //[Optional] //void Application(UIApplication application, string handleEventsForBackgroundURLSession, Action completionHandler); /// <summary> /// Tells the delegate that the app successfully registered with Apple Push Service (APS). /// </summary> /// <param name="application">The app object that initiated the remote-notification registration process.</param> /// <param name="didRegisterForRemoteNotificationsWithDeviceToken">A token that identifies the device to APS. The token is an opaque data type because that is the form that the provider needs to submit to the APS servers when it sends a notification to a device. The APS servers require a binary format for performance reasons. /// The size of a device token is 32 bytes. /// Note that the device token is different from the uniqueIdentifier property of UIDevice because, for security and privacy reasons, it must change when the device is wiped.</param> //[iOSVersion(3)] //[Export("application")] //[Optional] //void Application(UIApplication application, NSData didRegisterForRemoteNotificationsWithDeviceToken); /// <summary> /// Sent to the delegate when Apple Push Service cannot successfully complete the registration process. /// </summary> /// <param name="application">The app object that initiated the remote-notification registration process.</param> /// <param name="didFailToRegisterForRemoteNotificationsWithError">An NSError object that encapsulates information why registration did not succeed. The app can choose to display this information to the user.</param> //[iOSVersion(3)] //[Export("application")] //[Optional] //void Application(UIApplication application, NSError didFailToRegisterForRemoteNotificationsWithError); /// <summary> /// Tells the app that a push notification arrived that indicates there is data to be fetched. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didReceiveRemoteNotification">A dictionary that contains information related to the remote notification, potentially including a badge number for the app icon, an alert sound, an alert message to display to the user, a notification identifier, and custom data. The provider originates it as a JSON-defined dictionary that iOS converts to an NSDictionary object; the dictionary may contain only property-list objects plus NSNull. For more information about the contents of the push notification dictionary, see Local and Push Notification Programming Guide.</param> /// <param name="fetchCompletionHandler">The block to execute when the download operation is complete. When calling this block, pass in the fetch result value that best describes the results of your download operation. You must call this handler and should do so as soon as possible. For a list of possible values, see the UIBackgroundFetchResult type.</param> //[iOSVersion(7)] //[Export("application")] //[Optional] //void Application(UIApplication application, Dictionary<NSObject, AnyObject> didReceiveRemoteNotification, Action<UIBackgroundFetchResult> fetchCompletionHandler); /// <summary> /// Tells the app delegate to perform the custom action specified by a push notification. /// </summary> /// <param name="application">The app object that received the remote notification.</param> /// <param name="handleActionWithIdentifier">The identifier associated with the custom action.</param> /// <param name="forRemoteNotification">A dictionary that contains information related to the remote notification. This dictionary originates from the provider as a JSON-defined dictionary, which iOS converts to an NSDictionary object before calling this method. The contents of the dictionary are the push notification payload, which consists only of property-list objects plus NSNull. For more information about the contents of the push notification dictionary, see Local and Push Notification Programming Guide.</param> /// <param name="completionHandler">The block to execute when you are finished performing the specified action. You must call this block at the end of your method.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //void Application(UIApplication application, Optional<string> handleActionWithIdentifier, Dictionary<NSObject, AnyObject> forRemoteNotification, Action completionHandler); /// <summary> /// Tells the delegate that the running app received a remote notification. /// </summary> /// <param name="application">The app object that received the remote notification.</param> /// <param name="didReceiveRemoteNotification">A dictionary that contains information related to the remote notification, potentially including a badge number for the app icon, an alert sound, an alert message to display to the user, a notification identifier, and custom data. The provider originates it as a JSON-defined dictionary that iOS converts to an NSDictionary object; the dictionary may contain only property-list objects plus NSNull.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Application(UIApplication application, Dictionary<NSObject, AnyObject> didReceiveRemoteNotification, int NAME_YOUR_PARAMS = 0); /// <summary> /// Sent to the delegate when a running app receives a local notification. /// </summary> /// <param name="application">The app object that received the local notification.</param> /// <param name="didReceiveLocalNotification">A local notification that encapsulates details about the notification, potentially including custom data.</param> //[iOSVersion(4)] //[Export("application")] //[Optional] //void Application(UIApplication application, UILocalNotification didReceiveLocalNotification); /// <summary> /// Tells the delegate that the user selected a custom action from the alert panel of a local notification. /// </summary> /// <param name="application">The app object that received the local notification.</param> /// <param name="handleActionWithIdentifier">The identifier associated with the custom action. This string corresponds to the identifier from the UILocalNotificationAction object that was used to configure the action in the local notification.</param> /// <param name="forLocalNotification">The local notification object that was triggered.</param> /// <param name="completionHandler">A block to call when you are finished performing the action.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //void Application(UIApplication application, Optional<string> handleActionWithIdentifier, UILocalNotification forLocalNotification, Action completionHandler); /// <summary> /// Tells the delegate what types of notifications may be used to get the user’s attention. /// </summary> /// <param name="application">The app object that registered the user notification settings.</param> /// <param name="didRegisterUserNotificationSettings">The user notification settings that are available to your app. The settings in this object may be different than the ones you originally requested.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //void Application(UIApplication application, UIUserNotificationSettings didRegisterUserNotificationSettings); /// <summary> /// Tells the delegate when the app receives a memory warning from the system. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationDidReceiveMemoryWarning")] //[Optional] //void ApplicationDidReceiveMemoryWarning(UIApplication application); /// <summary> /// Tells the delegate when there is a significant change in the time. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationSignificantTimeChange")] //[Optional] //void ApplicationSignificantTimeChange(UIApplication application); /// <summary> /// Asks the delegate whether the app’s state should be preserved. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="shouldSaveApplicationState">The keyed archiver into which you can put high-level state information.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //bool Application(UIApplication application, NSCoder shouldSaveApplicationState); /// <summary> /// Asks the delegate whether the app’s saved state information should be restored. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="shouldRestoreApplicationState">The keyed archiver containing the app’s previously saved state information.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool Application(UIApplication application, NSCoder shouldRestoreApplicationState, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate to provide the specified view controller. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="viewControllerWithRestorationIdentifierPath">An array of NSString objects corresponding to the restoration identifiers of the desired view controller and all of its ancestors in the view controller hierarchy. The last value in the array is the restoration identifier of the desired view controller. Earlier entries represent the restoration identifiers of its ancestors.</param> /// <param name="coder">The keyed archiver containing the app’s saved state information.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //Optional<UIViewController> Application(UIApplication application, AnyObject[] viewControllerWithRestorationIdentifierPath, NSCoder coder); /// <summary> /// Tells your delegate to save any high-level state information at the beginning of the state preservation process. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="willEncodeRestorableStateWithCoder">The keyed archiver in which to write any state information.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Application(UIApplication application, NSCoder willEncodeRestorableStateWithCoder, int NAME_YOUR_PARAMS = 0); /// <summary> /// Tells your delegate to restore any high-level state information as part of the state restoration process. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didDecodeRestorableStateWithCoder">The keyed archiver containing the app’s previously saved state information.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Application(UIApplication application, NSCoder didDecodeRestorableStateWithCoder, string NAME_YOUR_PARAMS = ""); /// <summary> /// Asks the delegate to open a resource identified by URL. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="openURL">The URL resource to open. This resource can be a network resource or a file. For information about the Apple-registered URL schemes, see Apple URL Scheme Reference.</param> /// <param name="sourceApplication">The bundle ID of the app that is requesting your app to open the URL (url).</param> /// <param name="annotation">A property list object supplied by the source app to communicate information to the receiving app.</param> //[iOSVersion(4.2)] //[Export("application")] //[Optional] //bool Application(UIApplication application, NSURL openURL, string sourceApplication, Optional<AnyObject> annotation); /// <summary> /// Tells the delegate that the user wants to continue an activity whose data might not yet be available. /// </summary> /// <param name="application">The shared app object.</param> /// <param name="willContinueUserActivityWithType">The requested activity type.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //bool Application(UIApplication application, string willContinueUserActivityWithType); /// <summary> /// Tells the delegate that the data for continuing an activity is available. /// </summary> /// <param name="application">The shared app object.</param> /// <param name="continueUserActivity">The activity object containing the data associated with the task the user was performing. Use the data in this object to recreate what the user was doing.</param> /// <param name="restorationHandler">A block to execute if your app creates objects to perform the task. Calling this block is optional and you can copy this block and call it at a later time. When calling a saved copy of the block, you must call it from the app’s main thread. This block has no return value and takes the following parameter: /// restorableObjects /// An array of UIResponder objects representing objects you created or fetched in order to perform the operation. The system calls the restoreUserActivityState: method of each object in the array to give it a chance to perform the operation.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //bool Application(UIApplication application, NSUserActivity continueUserActivity, Action<AnyObject[]> restorationHandler); /// <summary> /// Tells the delegate that the activity was updated. (required) /// </summary> /// <param name="application">The shared app object.</param> /// <param name="didUpdateUserActivity">The activity object containing the data associated with the task the user was performing.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //void Application(UIApplication application, NSUserActivity didUpdateUserActivity); /// <summary> /// Tells the delegate that the activity could not be continued. /// </summary> /// <param name="application">The shared app object.</param> /// <param name="didFailToContinueUserActivityWithType">The activity type that was attempted.</param> /// <param name="error">An error object indicating the reason for the failure.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //void Application(UIApplication application, string didFailToContinueUserActivityWithType, NSError error); /// <summary> /// Asks the delegate to grant permission to use app extensions that are based on a specified extension point identifier. (required) /// </summary> /// <param name="application">The shared app object.</param> /// <param name="shouldAllowExtensionPointIdentifier">A constant identifying an extension point.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(8)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool Application(UIApplication application, string shouldAllowExtensionPointIdentifier, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate when the interface orientation of the status bar is about to change. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="willChangeStatusBarOrientation">A constant that indicates the new orientation of the app’s user interface; see Monitoring App State Changes for details.</param> /// <param name="duration">The duration of the animation to the new orientation, in seconds.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] //void Application(UIApplication application, UIInterfaceOrientation willChangeStatusBarOrientation, NSTimeInterval duration); /// <summary> /// Tells the delegate when the interface orientation of the status bar has changed. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didChangeStatusBarOrientation">A constant that indicates the previous orientation of the app’s user interface; see Monitoring App State Changes for details.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] //void Application(UIApplication application, UIInterfaceOrientation didChangeStatusBarOrientation); /// <summary> /// Tells the delegate when the frame of the status bar is about to change. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="willChangeStatusBarFrame">The changed frame of the status bar, in screen coordinates.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] //void Application(UIApplication application, CGRect willChangeStatusBarFrame); /// <summary> /// Tells the delegate when the frame of the status bar has changed. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="didChangeStatusBarFrame">The previous frame of the status bar, in screen coordinates.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void Application(UIApplication application, CGRect didChangeStatusBarFrame, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the protected files are about to become unavailable. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(4)] //[Export("applicationProtectedDataWillBecomeUnavailable")] //[Optional] //void ApplicationProtectedDataWillBecomeUnavailable(UIApplication application); /// <summary> /// Tells the delegate that protected files are available now. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(4)] //[Export("applicationProtectedDataDidBecomeAvailable")] //[Optional] //void ApplicationProtectedDataDidBecomeAvailable(UIApplication application); /// <summary> /// Asks the delegate for the interface orientations to use for the view controllers in the specified window. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="supportedInterfaceOrientationsForWindow">The window whose interface orientations you want to retrieve.</param> //[iOSVersion(6)] //[Export("application")] //[Optional] //int Application(UIApplication application, UIWindow supportedInterfaceOrientationsForWindow); /// <summary> /// Tells the delegate when the app has finished launching. /// </summary> /// <param name="application">The singleton app object.</param> //[iOSVersion(2)] //[Export("applicationDidFinishLaunching")] //[Optional] //void ApplicationDidFinishLaunching(UIApplication application); /// <summary> /// Asks the delegate to open a resource identified by URL. /// </summary> /// <param name="application">The singleton app object.</param> /// <param name="handleOpenURL">A object representing a URL (Universal Resource Locator). See the appendix of App Programming Guide for iOS for Apple-registered schemes for URLs.</param> //[iOSVersion(2)] //[Export("application")] //[Optional] //bool Application(UIApplication application, NSURL handleOpenURL); /// <summary> /// The window to use when presenting a storyboard. /// </summary> [iOSVersion(5)] [Export("window")] Optional<UIWindow> Window { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIBarPositioningDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIBarPositioningDelegate.cs
index 74c22c73..a59da6d7 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIBarPositioningDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIBarPositioningDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIBarPositioningDelegate protocol supports the positioning of a bar that conforms to the UIBarPositioning protocol. Navigation bars, toolbars, and search bars all have delegates that support this protocol. The delegate can use the method of this protocol to specify the bar’s position when that bar is moved to a window. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIBarPositioningDelegate_Protocol/index.html#//apple_ref/occ/intf/UIBarPositioningDelegate"/> [iOSVersion(7)] public interface UIBarPositioningDelegate//: NSObjectProtocol { /// <summary> /// Asks the delegate for the position of the specified bar in its new window. (required) /// </summary> /// <param name="bar">The bar that was added to the window.</param> //[iOSVersion(7)] //[Export("positionForBar")] //[Optional] UIBarPosition PositionForBar(UIBarPositioning bar); } } \ 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 UIBarPositioningDelegate protocol supports the positioning of a bar that conforms to the UIBarPositioning protocol. Navigation bars, toolbars, and search bars all have delegates that support this protocol. The delegate can use the method of this protocol to specify the bar’s position when that bar is moved to a window. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIBarPositioningDelegate_Protocol/index.html#//apple_ref/occ/intf/UIBarPositioningDelegate"/> [iOSVersion(7)] public interface UIBarPositioningDelegate//: NSObjectProtocol { /// <summary> /// Asks the delegate for the position of the specified bar in its new window. (required) /// </summary> /// <param name="bar">The bar that was added to the window.</param> //[iOSVersion(7)] //[Export("positionForBar")] //[Optional] //UIBarPosition PositionForBar(UIBarPositioning bar); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UICollectionViewDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UICollectionViewDelegate.cs
index e8b97e5a..f2be9e41 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UICollectionViewDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UICollectionViewDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UICollectionViewDelegate protocol defines methods that allow you to manage the selection and highlighting of items in a collection view and to perform actions on those items. The methods of this protocol are all optional. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UICollectionViewDelegate_protocol/index.html#//apple_ref/occ/intf/UICollectionViewDelegate"/> [iOSVersion(6)] public interface UICollectionViewDelegate//: NSObjectProtocol, UIScrollViewDelegate { /// <summary> /// Asks the delegate if the specified item should be selected. /// </summary> /// <param name="collectionView">The collection view object that is asking whether the selection should change.</param> /// <param name="shouldSelectItemAtIndexPath">The index path of the cell to be selected.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] bool CollectionView(UICollectionView collectionView, NSIndexPath shouldSelectItemAtIndexPath); /// <summary> /// Tells the delegate that the item at the specified index path was selected. /// </summary> /// <param name="collectionView">The collection view object that is notifying you of the selection change.</param> /// <param name="didSelectItemAtIndexPath">The index path of the cell that was selected.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void CollectionView(UICollectionView collectionView, NSIndexPath didSelectItemAtIndexPath, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate if the specified item should be deselected. /// </summary> /// <param name="collectionView">The collection view object that is asking whether the selection should change.</param> /// <param name="shouldDeselectItemAtIndexPath">The index path of the cell to be deselected.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] bool CollectionView(UICollectionView collectionView, NSIndexPath shouldDeselectItemAtIndexPath, int NAME_YOUR_PARAMS = 0); /// <summary> /// Tells the delegate that the item at the specified path was deselected. /// </summary> /// <param name="collectionView">The collection view object that is notifying you of the selection change.</param> /// <param name="didDeselectItemAtIndexPath">The index path of the cell that was deselected.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void CollectionView(UICollectionView collectionView, NSIndexPath didDeselectItemAtIndexPath, string NAME_YOUR_PARAMS = ""); /// <summary> /// Asks the delegate if the item should be highlighted during tracking. /// </summary> /// <param name="collectionView">The collection view object that is asking about the highlight change.</param> /// <param name="shouldHighlightItemAtIndexPath">The index path of the cell to be highlighted.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] bool CollectionView(UICollectionView collectionView, NSIndexPath shouldHighlightItemAtIndexPath, double NAME_YOUR_PARAMS = 4.2); /// <summary> /// Tells the delegate that the item at the specified index path was highlighted. /// </summary> /// <param name="collectionView">The collection view object that is notifying you of the highlight change.</param> /// <param name="didHighlightItemAtIndexPath">The index path of the cell that was highlighted.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void CollectionView(UICollectionView collectionView, NSIndexPath didHighlightItemAtIndexPath, uint NAME_YOUR_PARAMS = 4.2); /// <summary> /// Tells the delegate that the highlight was removed from the item at the specified index path. /// </summary> /// <param name="collectionView">The collection view object that is notifying you of the highlight change.</param> /// <param name="didUnhighlightItemAtIndexPath">The index path of the cell that had its highlight removed.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void CollectionView(UICollectionView collectionView, NSIndexPath didUnhighlightItemAtIndexPath, UInt16 NAME_YOUR_PARAMS = 4.2); /// <summary> /// Tells the delegate that the specified cell is about to be displayed in the collection view. /// </summary> /// <param name="collectionView">The collection view object that is adding the cell.</param> /// <param name="willDisplayCell">The cell object being added.</param> /// <param name="forItemAtIndexPath">The index path of the data item that the cell represents.</param> //[iOSVersion(8)] //[Export("collectionView")] //[Optional] void CollectionView(UICollectionView collectionView, UICollectionViewCell willDisplayCell, NSIndexPath forItemAtIndexPath); /// <summary> /// Tells the delegate that the specified supplementary view is about to be displayed in the collection view. /// </summary> /// <param name="collectionView">The collection view object that is adding the supplementary view.</param> /// <param name="willDisplaySupplementaryView">The view being added.</param> /// <param name="forElementKind">The type of the supplementary view. This string is defined by the layout that presents the view.</param> /// <param name="atIndexPath">The index path of the data item that the supplementary view represents.</param> //[iOSVersion(8)] //[Export("collectionView")] //[Optional] void CollectionView(UICollectionView collectionView, UICollectionReusableView willDisplaySupplementaryView, string forElementKind, NSIndexPath atIndexPath); /// <summary> /// Tells the delegate that the specified cell was removed from the collection view. /// </summary> /// <param name="collectionView">The collection view object that removed the cell.</param> /// <param name="didEndDisplayingCell">The cell object that was removed.</param> /// <param name="forItemAtIndexPath">The index path of the data item that the cell represented.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void CollectionView(UICollectionView collectionView, UICollectionViewCell didEndDisplayingCell, NSIndexPath forItemAtIndexPath, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the specified supplementary view was removed from the collection view. /// </summary> /// <param name="collectionView">The collection view object that removed the supplementary view.</param> /// <param name="didEndDisplayingSupplementaryView">The view that was removed.</param> /// <param name="forElementOfKind">The type of the supplementary view. This string is defined by the layout that presents the view.</param> /// <param name="atIndexPath">The index path of the data item that the supplementary view represented.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void CollectionView(UICollectionView collectionView, UICollectionReusableView didEndDisplayingSupplementaryView, string forElementOfKind, NSIndexPath atIndexPath, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks for the custom transition layout to use when moving between the specified layouts. /// </summary> /// <param name="collectionView">The collection view whose layout object is changing.</param> /// <param name="transitionLayoutForOldLayout">The current layout of the collection view. This is the starting point for the transition.</param> /// <param name="newLayout">The new layout for the collection view.</param> //[iOSVersion(7)] //[Export("collectionView")] //[Optional] UICollectionViewTransitionLayout CollectionView(UICollectionView collectionView, UICollectionViewLayout transitionLayoutForOldLayout, UICollectionViewLayout newLayout); /// <summary> /// Asks the delegate if an action menu should be displayed for the specified item. /// </summary> /// <param name="collectionView">The collection view object that is making the request.</param> /// <param name="shouldShowMenuForItemAtIndexPath">The index path of the affected item.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] bool CollectionView(UICollectionView collectionView, NSIndexPath shouldShowMenuForItemAtIndexPath, UInt64 NAME_YOUR_PARAMS = 4.2); /// <summary> /// Asks the delegate if it can perform the specified action on an item in the collection view. /// </summary> /// <param name="collectionView">The collection view object that is making the request.</param> /// <param name="canPerformAction">The selector identifying the action to be performed.</param> /// <param name="forItemAtIndexPath">The index path of the affected item.</param> /// <param name="withSender">The object that wants to initiate the action.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] bool CollectionView(UICollectionView collectionView, Selector canPerformAction, NSIndexPath forItemAtIndexPath, AnyObject withSender); /// <summary> /// Tells the delegate to perform the specified action on an item in the collection view. /// </summary> /// <param name="collectionView">The collection view object that is making the request.</param> /// <param name="performAction">The selector representing the action to be performed.</param> /// <param name="forItemAtIndexPath">The index path of the affected item.</param> /// <param name="withSender">The object that initiated the action.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void CollectionView(UICollectionView collectionView, Selector performAction, NSIndexPath forItemAtIndexPath, AnyObject withSender, bool NAME_YOUR_PARAMS = false); } } \ 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 UICollectionViewDelegate protocol defines methods that allow you to manage the selection and highlighting of items in a collection view and to perform actions on those items. The methods of this protocol are all optional. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UICollectionViewDelegate_protocol/index.html#//apple_ref/occ/intf/UICollectionViewDelegate"/> [iOSVersion(6)] public interface UICollectionViewDelegate//: NSObjectProtocol, UIScrollViewDelegate { /// <summary> /// Asks the delegate if the specified item should be selected. /// </summary> /// <param name="collectionView">The collection view object that is asking whether the selection should change.</param> /// <param name="shouldSelectItemAtIndexPath">The index path of the cell to be selected.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //bool CollectionView(UICollectionView collectionView, NSIndexPath shouldSelectItemAtIndexPath); /// <summary> /// Tells the delegate that the item at the specified index path was selected. /// </summary> /// <param name="collectionView">The collection view object that is notifying you of the selection change.</param> /// <param name="didSelectItemAtIndexPath">The index path of the cell that was selected.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void CollectionView(UICollectionView collectionView, NSIndexPath didSelectItemAtIndexPath, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate if the specified item should be deselected. /// </summary> /// <param name="collectionView">The collection view object that is asking whether the selection should change.</param> /// <param name="shouldDeselectItemAtIndexPath">The index path of the cell to be deselected.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool CollectionView(UICollectionView collectionView, NSIndexPath shouldDeselectItemAtIndexPath, int NAME_YOUR_PARAMS = 0); /// <summary> /// Tells the delegate that the item at the specified path was deselected. /// </summary> /// <param name="collectionView">The collection view object that is notifying you of the selection change.</param> /// <param name="didDeselectItemAtIndexPath">The index path of the cell that was deselected.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void CollectionView(UICollectionView collectionView, NSIndexPath didDeselectItemAtIndexPath, string NAME_YOUR_PARAMS = ""); /// <summary> /// Asks the delegate if the item should be highlighted during tracking. /// </summary> /// <param name="collectionView">The collection view object that is asking about the highlight change.</param> /// <param name="shouldHighlightItemAtIndexPath">The index path of the cell to be highlighted.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool CollectionView(UICollectionView collectionView, NSIndexPath shouldHighlightItemAtIndexPath, double NAME_YOUR_PARAMS = 4.2); /// <summary> /// Tells the delegate that the item at the specified index path was highlighted. /// </summary> /// <param name="collectionView">The collection view object that is notifying you of the highlight change.</param> /// <param name="didHighlightItemAtIndexPath">The index path of the cell that was highlighted.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void CollectionView(UICollectionView collectionView, NSIndexPath didHighlightItemAtIndexPath, uint NAME_YOUR_PARAMS = 4.2); /// <summary> /// Tells the delegate that the highlight was removed from the item at the specified index path. /// </summary> /// <param name="collectionView">The collection view object that is notifying you of the highlight change.</param> /// <param name="didUnhighlightItemAtIndexPath">The index path of the cell that had its highlight removed.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void CollectionView(UICollectionView collectionView, NSIndexPath didUnhighlightItemAtIndexPath, UInt16 NAME_YOUR_PARAMS = 4.2); /// <summary> /// Tells the delegate that the specified cell is about to be displayed in the collection view. /// </summary> /// <param name="collectionView">The collection view object that is adding the cell.</param> /// <param name="willDisplayCell">The cell object being added.</param> /// <param name="forItemAtIndexPath">The index path of the data item that the cell represents.</param> //[iOSVersion(8)] //[Export("collectionView")] //[Optional] //void CollectionView(UICollectionView collectionView, UICollectionViewCell willDisplayCell, NSIndexPath forItemAtIndexPath); /// <summary> /// Tells the delegate that the specified supplementary view is about to be displayed in the collection view. /// </summary> /// <param name="collectionView">The collection view object that is adding the supplementary view.</param> /// <param name="willDisplaySupplementaryView">The view being added.</param> /// <param name="forElementKind">The type of the supplementary view. This string is defined by the layout that presents the view.</param> /// <param name="atIndexPath">The index path of the data item that the supplementary view represents.</param> //[iOSVersion(8)] //[Export("collectionView")] //[Optional] //void CollectionView(UICollectionView collectionView, UICollectionReusableView willDisplaySupplementaryView, string forElementKind, NSIndexPath atIndexPath); /// <summary> /// Tells the delegate that the specified cell was removed from the collection view. /// </summary> /// <param name="collectionView">The collection view object that removed the cell.</param> /// <param name="didEndDisplayingCell">The cell object that was removed.</param> /// <param name="forItemAtIndexPath">The index path of the data item that the cell represented.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void CollectionView(UICollectionView collectionView, UICollectionViewCell didEndDisplayingCell, NSIndexPath forItemAtIndexPath, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the specified supplementary view was removed from the collection view. /// </summary> /// <param name="collectionView">The collection view object that removed the supplementary view.</param> /// <param name="didEndDisplayingSupplementaryView">The view that was removed.</param> /// <param name="forElementOfKind">The type of the supplementary view. This string is defined by the layout that presents the view.</param> /// <param name="atIndexPath">The index path of the data item that the supplementary view represented.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void CollectionView(UICollectionView collectionView, UICollectionReusableView didEndDisplayingSupplementaryView, string forElementOfKind, NSIndexPath atIndexPath, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks for the custom transition layout to use when moving between the specified layouts. /// </summary> /// <param name="collectionView">The collection view whose layout object is changing.</param> /// <param name="transitionLayoutForOldLayout">The current layout of the collection view. This is the starting point for the transition.</param> /// <param name="newLayout">The new layout for the collection view.</param> //[iOSVersion(7)] //[Export("collectionView")] //[Optional] //UICollectionViewTransitionLayout CollectionView(UICollectionView collectionView, UICollectionViewLayout transitionLayoutForOldLayout, UICollectionViewLayout newLayout); /// <summary> /// Asks the delegate if an action menu should be displayed for the specified item. /// </summary> /// <param name="collectionView">The collection view object that is making the request.</param> /// <param name="shouldShowMenuForItemAtIndexPath">The index path of the affected item.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool CollectionView(UICollectionView collectionView, NSIndexPath shouldShowMenuForItemAtIndexPath, UInt64 NAME_YOUR_PARAMS = 4.2); /// <summary> /// Asks the delegate if it can perform the specified action on an item in the collection view. /// </summary> /// <param name="collectionView">The collection view object that is making the request.</param> /// <param name="canPerformAction">The selector identifying the action to be performed.</param> /// <param name="forItemAtIndexPath">The index path of the affected item.</param> /// <param name="withSender">The object that wants to initiate the action.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //bool CollectionView(UICollectionView collectionView, Selector canPerformAction, NSIndexPath forItemAtIndexPath, AnyObject withSender); /// <summary> /// Tells the delegate to perform the specified action on an item in the collection view. /// </summary> /// <param name="collectionView">The collection view object that is making the request.</param> /// <param name="performAction">The selector representing the action to be performed.</param> /// <param name="forItemAtIndexPath">The index path of the affected item.</param> /// <param name="withSender">The object that initiated the action.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void CollectionView(UICollectionView collectionView, Selector performAction, NSIndexPath forItemAtIndexPath, AnyObject withSender, bool NAME_YOUR_PARAMS = false); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UICollectionViewDelegateFlowLayout.cs b/CocoaSharp/UIKit/Protocols/Delegates/UICollectionViewDelegateFlowLayout.cs
index 5664a7f7..3c60314b 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UICollectionViewDelegateFlowLayout.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UICollectionViewDelegateFlowLayout.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UICollectionViewDelegateFlowLayout protocol defines methods that let you coordinate with a UICollectionViewFlowLayout object to implement a grid-based layout. The methods of this protocol define the size of items and the spacing between items in the grid. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UICollectionViewDelegateFlowLayout_protocol/index.html#//apple_ref/occ/intf/UICollectionViewDelegateFlowLayout"/> [iOSVersion(6)] public interface UICollectionViewDelegateFlowLayout//: NSObjectProtocol, UICollectionViewDelegate, UIScrollViewDelegate { /// <summary> /// Asks the delegate for the size of the specified item’s cell. /// </summary> /// <param name="collectionView">The collection view object displaying the flow layout.</param> /// <param name="layout">The layout object requesting the information.</param> /// <param name="sizeForItemAtIndexPath">The index path of the item.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] CGSize CollectionView(UICollectionView collectionView, UICollectionViewLayout layout, NSIndexPath sizeForItemAtIndexPath); /// <summary> /// Asks the delegate for the margins to apply to content in the specified section. /// </summary> /// <param name="collectionView">The collection view object displaying the flow layout.</param> /// <param name="layout">The layout object requesting the information.</param> /// <param name="insetForSectionAtIndex">The index number of the section whose insets are needed.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] UIEdgeInsets CollectionView(UICollectionView collectionView, UICollectionViewLayout layout, int insetForSectionAtIndex); /// <summary> /// Asks the delegate for the spacing between successive rows or columns of a section. /// </summary> /// <param name="collectionView">The collection view object displaying the flow layout.</param> /// <param name="layout">The layout object requesting the information.</param> /// <param name="minimumLineSpacingForSectionAtIndex">The index number of the section whose line spacing is needed.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] CGFloat CollectionView(UICollectionView collectionView, UICollectionViewLayout layout, int minimumLineSpacingForSectionAtIndex, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate for the spacing between successive items in the rows or columns of a section. /// </summary> /// <param name="collectionView">The collection view object displaying the flow layout.</param> /// <param name="layout">The layout object requesting the information.</param> /// <param name="minimumInteritemSpacingForSectionAtIndex">The index number of the section whose inter-item spacing is needed.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] CGFloat CollectionView(UICollectionView collectionView, UICollectionViewLayout layout, int minimumInteritemSpacingForSectionAtIndex, int NAME_YOUR_PARAMS = 0); /// <summary> /// Asks the delegate for the size of the header view in the specified section. /// </summary> /// <param name="collectionView">The collection view object displaying the flow layout.</param> /// <param name="layout">The layout object requesting the information.</param> /// <param name="referenceSizeForHeaderInSection">The index of the section whose header size is being requested.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] CGSize CollectionView(UICollectionView collectionView, UICollectionViewLayout layout, int referenceSizeForHeaderInSection, string NAME_YOUR_PARAMS = ""); /// <summary> /// Asks the delegate for the size of the footer view in the specified section. /// </summary> /// <param name="collectionView">The collection view object displaying the flow layout.</param> /// <param name="layout">The layout object requesting the information.</param> /// <param name="referenceSizeForFooterInSection">The index of the section whose footer size is being requested.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] CGSize CollectionView(UICollectionView collectionView, UICollectionViewLayout layout, int referenceSizeForFooterInSection, double NAME_YOUR_PARAMS = 4.2); } } \ 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 UICollectionViewDelegateFlowLayout protocol defines methods that let you coordinate with a UICollectionViewFlowLayout object to implement a grid-based layout. The methods of this protocol define the size of items and the spacing between items in the grid. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UICollectionViewDelegateFlowLayout_protocol/index.html#//apple_ref/occ/intf/UICollectionViewDelegateFlowLayout"/> [iOSVersion(6)] public interface UICollectionViewDelegateFlowLayout//: NSObjectProtocol, UICollectionViewDelegate, UIScrollViewDelegate { /// <summary> /// Asks the delegate for the size of the specified item’s cell. /// </summary> /// <param name="collectionView">The collection view object displaying the flow layout.</param> /// <param name="layout">The layout object requesting the information.</param> /// <param name="sizeForItemAtIndexPath">The index path of the item.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //CGSize CollectionView(UICollectionView collectionView, UICollectionViewLayout layout, NSIndexPath sizeForItemAtIndexPath); /// <summary> /// Asks the delegate for the margins to apply to content in the specified section. /// </summary> /// <param name="collectionView">The collection view object displaying the flow layout.</param> /// <param name="layout">The layout object requesting the information.</param> /// <param name="insetForSectionAtIndex">The index number of the section whose insets are needed.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //UIEdgeInsets CollectionView(UICollectionView collectionView, UICollectionViewLayout layout, int insetForSectionAtIndex); /// <summary> /// Asks the delegate for the spacing between successive rows or columns of a section. /// </summary> /// <param name="collectionView">The collection view object displaying the flow layout.</param> /// <param name="layout">The layout object requesting the information.</param> /// <param name="minimumLineSpacingForSectionAtIndex">The index number of the section whose line spacing is needed.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //CGFloat CollectionView(UICollectionView collectionView, UICollectionViewLayout layout, int minimumLineSpacingForSectionAtIndex, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate for the spacing between successive items in the rows or columns of a section. /// </summary> /// <param name="collectionView">The collection view object displaying the flow layout.</param> /// <param name="layout">The layout object requesting the information.</param> /// <param name="minimumInteritemSpacingForSectionAtIndex">The index number of the section whose inter-item spacing is needed.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //CGFloat CollectionView(UICollectionView collectionView, UICollectionViewLayout layout, int minimumInteritemSpacingForSectionAtIndex, int NAME_YOUR_PARAMS = 0); /// <summary> /// Asks the delegate for the size of the header view in the specified section. /// </summary> /// <param name="collectionView">The collection view object displaying the flow layout.</param> /// <param name="layout">The layout object requesting the information.</param> /// <param name="referenceSizeForHeaderInSection">The index of the section whose header size is being requested.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //CGSize CollectionView(UICollectionView collectionView, UICollectionViewLayout layout, int referenceSizeForHeaderInSection, string NAME_YOUR_PARAMS = ""); /// <summary> /// Asks the delegate for the size of the footer view in the specified section. /// </summary> /// <param name="collectionView">The collection view object displaying the flow layout.</param> /// <param name="layout">The layout object requesting the information.</param> /// <param name="referenceSizeForFooterInSection">The index of the section whose footer size is being requested.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //CGSize CollectionView(UICollectionView collectionView, UICollectionViewLayout layout, int referenceSizeForFooterInSection, double NAME_YOUR_PARAMS = 4.2); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UICollisionBehaviorDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UICollisionBehaviorDelegate.cs
index ce42a86f..b7e33639 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UICollisionBehaviorDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UICollisionBehaviorDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// To respond to UIKit dynamic item collisions, configure a custom class to adopt the UICollisionBehaviorDelegate protocol. Then, in a collision behavior (an instance of the UICollisionBehavior class), set the delegate to be an instance of your custom class. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UICollisionBehaviorDelegate_Protocol/index.html#//apple_ref/occ/intf/UICollisionBehaviorDelegate"/> [iOSVersion(7)] public interface UICollisionBehaviorDelegate//: NSObjectProtocol { /// <summary> /// Called when a collision, between a dynamic item and a collision boundary, has begun. /// </summary> /// <param name="behavior">The collision behavior that owns the dynamic item that has started contact with a boundary.</param> /// <param name="beganContactForItem">The dynamic item that has started contact with a boundary.</param> /// <param name="withBoundaryIdentifier">The identifier of the boundary that the dynamic item has started contact with.</param> /// <param name="atPoint">The collision point on the boundary.</param> //[iOSVersion(7)] //[Export("collisionBehavior")] //[Optional] void CollisionBehavior(UICollisionBehavior behavior, UIDynamicItem beganContactForItem, NSCopying withBoundaryIdentifier, CGPoint atPoint); /// <summary> /// Called when a collision between two dynamic items has begun. /// </summary> /// <param name="behavior">The collision behavior that owns the dynamic items that have started to contact each other.</param> /// <param name="beganContactForItem">The first of the two dynamic items participating in the collision.</param> /// <param name="withItem">The second of the two dynamic items participating in the collision.</param> /// <param name="atPoint">The contact point for the collision. The coordinate system that pertains to a collision depends on how you initialized the associated animator. For details, read the Overview of UIDynamicAnimator Class Reference.</param> //[iOSVersion(7)] //[Export("collisionBehavior")] //[Optional] void CollisionBehavior(UICollisionBehavior behavior, UIDynamicItem beganContactForItem, UIDynamicItem withItem, CGPoint atPoint); /// <summary> /// Called when a collision between a dynamic item and a boundary has ended. /// </summary> /// <param name="behavior">The collision behavior that owns the dynamic item that has ended contact.</param> /// <param name="endedContactForItem">The dynamic item that collided.</param> /// <param name="withBoundaryIdentifier">The identifier of the boundary that the dynamic item collided with.</param> //[iOSVersion(7)] //[Export("collisionBehavior")] //[Optional] void CollisionBehavior(UICollisionBehavior behavior, UIDynamicItem endedContactForItem, NSCopying withBoundaryIdentifier); /// <summary> /// Called when a collision between two dynamic items has ended. /// </summary> /// <param name="behavior">The collision behavior that owns the dynamic items that collided.</param> /// <param name="endedContactForItem">The first of the two dynamic items participating in the collision.</param> /// <param name="withItem">The second of the two dynamic items participating in the collision.</param> //[iOSVersion(7)] //[Export("collisionBehavior")] //[Optional] void CollisionBehavior(UICollisionBehavior behavior, UIDynamicItem endedContactForItem, UIDynamicItem withItem); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// To respond to UIKit dynamic item collisions, configure a custom class to adopt the UICollisionBehaviorDelegate protocol. Then, in a collision behavior (an instance of the UICollisionBehavior class), set the delegate to be an instance of your custom class. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UICollisionBehaviorDelegate_Protocol/index.html#//apple_ref/occ/intf/UICollisionBehaviorDelegate"/> [iOSVersion(7)] public interface UICollisionBehaviorDelegate//: NSObjectProtocol { /// <summary> /// Called when a collision, between a dynamic item and a collision boundary, has begun. /// </summary> /// <param name="behavior">The collision behavior that owns the dynamic item that has started contact with a boundary.</param> /// <param name="beganContactForItem">The dynamic item that has started contact with a boundary.</param> /// <param name="withBoundaryIdentifier">The identifier of the boundary that the dynamic item has started contact with.</param> /// <param name="atPoint">The collision point on the boundary.</param> //[iOSVersion(7)] //[Export("collisionBehavior")] //[Optional] //void CollisionBehavior(UICollisionBehavior behavior, UIDynamicItem beganContactForItem, NSCopying withBoundaryIdentifier, CGPoint atPoint); /// <summary> /// Called when a collision between two dynamic items has begun. /// </summary> /// <param name="behavior">The collision behavior that owns the dynamic items that have started to contact each other.</param> /// <param name="beganContactForItem">The first of the two dynamic items participating in the collision.</param> /// <param name="withItem">The second of the two dynamic items participating in the collision.</param> /// <param name="atPoint">The contact point for the collision. The coordinate system that pertains to a collision depends on how you initialized the associated animator. For details, read the Overview of UIDynamicAnimator Class Reference.</param> //[iOSVersion(7)] //[Export("collisionBehavior")] //[Optional] //void CollisionBehavior(UICollisionBehavior behavior, UIDynamicItem beganContactForItem, UIDynamicItem withItem, CGPoint atPoint); /// <summary> /// Called when a collision between a dynamic item and a boundary has ended. /// </summary> /// <param name="behavior">The collision behavior that owns the dynamic item that has ended contact.</param> /// <param name="endedContactForItem">The dynamic item that collided.</param> /// <param name="withBoundaryIdentifier">The identifier of the boundary that the dynamic item collided with.</param> //[iOSVersion(7)] //[Export("collisionBehavior")] //[Optional] //void CollisionBehavior(UICollisionBehavior behavior, UIDynamicItem endedContactForItem, NSCopying withBoundaryIdentifier); /// <summary> /// Called when a collision between two dynamic items has ended. /// </summary> /// <param name="behavior">The collision behavior that owns the dynamic items that collided.</param> /// <param name="endedContactForItem">The first of the two dynamic items participating in the collision.</param> /// <param name="withItem">The second of the two dynamic items participating in the collision.</param> //[iOSVersion(7)] //[Export("collisionBehavior")] //[Optional] //void CollisionBehavior(UICollisionBehavior behavior, UIDynamicItem endedContactForItem, UIDynamicItem withItem); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIDocumentInteractionControllerDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIDocumentInteractionControllerDelegate.cs
index 73176a04..78e20cca 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIDocumentInteractionControllerDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIDocumentInteractionControllerDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIDocumentInteractionControllerDelegate protocol includes methods you can implement to respond to messages from a document interaction controller. Use this protocol to participate when document previews are displayed and when a document is about to be opened by another application. You can also use this protocol to respond to commands (such as “copy” and “print”) from a document interaction controller’s options menu. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDocumentInteractionControllerDelegate_protocol/index.html#//apple_ref/occ/intf/UIDocumentInteractionControllerDelegate"/> [iOSVersion(3.2)] public interface UIDocumentInteractionControllerDelegate//: NSObjectProtocol { /// <summary> /// Called when a document interaction controller needs a view controller for presenting a document preview. /// </summary> /// <param name="controller">The document interaction controller requesting the parent view controller.</param> //[iOSVersion(3.2)] //[Export("documentInteractionControllerViewControllerForPreview")] //[Optional] UIViewController DocumentInteractionControllerViewControllerForPreview(UIDocumentInteractionController controller); /// <summary> /// Called when a document interaction controller needs the starting point for animating the display of a document preview. /// </summary> /// <param name="controller">The document interaction controller requesting the starting view.</param> //[iOSVersion(3.2)] //[Export("documentInteractionControllerViewForPreview")] //[Optional] UIView DocumentInteractionControllerViewForPreview(UIDocumentInteractionController controller); /// <summary> /// Called when a document interaction controller needs the rectangle to use as the starting point for animating the display of a document preview. /// </summary> /// <param name="controller">The document interaction controller requesting the starting rectangle.</param> //[iOSVersion(3.2)] //[Export("documentInteractionControllerRectForPreview")] //[Optional] CGRect DocumentInteractionControllerRectForPreview(UIDocumentInteractionController controller); /// <summary> /// Called when a document interaction controller is about to display a preview for its document. /// </summary> /// <param name="controller">The document interaction controller that is about to preview its document.</param> //[iOSVersion(3.2)] //[Export("documentInteractionControllerWillBeginPreview")] //[Optional] void DocumentInteractionControllerWillBeginPreview(UIDocumentInteractionController controller); /// <summary> /// Called when a document interaction controller has dismissed its document preview. /// </summary> /// <param name="controller">The document interaction controller that dismissed its document preview.</param> //[iOSVersion(3.2)] //[Export("documentInteractionControllerDidEndPreview")] //[Optional] void DocumentInteractionControllerDidEndPreview(UIDocumentInteractionController controller); /// <summary> /// Called when a document interaction controller is about to display an options menu. /// </summary> /// <param name="controller">The document interaction controller that is about to display an options menu.</param> //[iOSVersion(3.2)] //[Export("documentInteractionControllerWillPresentOptionsMenu")] //[Optional] void DocumentInteractionControllerWillPresentOptionsMenu(UIDocumentInteractionController controller); /// <summary> /// Called when a document interaction controller has dismissed its options menu. /// </summary> /// <param name="controller">The document interaction controller that dismissed its options menu.</param> //[iOSVersion(3.2)] //[Export("documentInteractionControllerDidDismissOptionsMenu")] //[Optional] void DocumentInteractionControllerDidDismissOptionsMenu(UIDocumentInteractionController controller); /// <summary> /// Called when a document interaction controller is about to display an Open In menu. /// </summary> /// <param name="controller">The document interaction controller that is about to display a menu.</param> //[iOSVersion(3.2)] //[Export("documentInteractionControllerWillPresentOpenInMenu")] //[Optional] void DocumentInteractionControllerWillPresentOpenInMenu(UIDocumentInteractionController controller); /// <summary> /// Called when a document interaction controller has dismissed its Open In menu. /// </summary> /// <param name="controller">The document interaction controller that dismissed its menu.</param> //[iOSVersion(3.2)] //[Export("documentInteractionControllerDidDismissOpenInMenu")] //[Optional] void DocumentInteractionControllerDidDismissOpenInMenu(UIDocumentInteractionController controller); /// <summary> /// Called when a document interaction controller’s document is about to be opened by the specified application. /// </summary> /// <param name="controller">The document interaction controller whose document is about to be opened.</param> /// <param name="willBeginSendingToApplication">The bundle identifier of the application that is about to open the document. This value corresponds to the value in the CFBundleIdentifier key of the application’s Info.plist file.</param> //[iOSVersion(3.2)] //[Export("documentInteractionController")] //[Optional] void DocumentInteractionController(UIDocumentInteractionController controller, string willBeginSendingToApplication); /// <summary> /// Called when a document interaction controller’s document has been handed off to the specified application. /// </summary> /// <param name="controller">The document interaction controller whose document is about to be opened.</param> /// <param name="didEndSendingToApplication">The bundle identifier of the application that is about to open the document. This value corresponds to the value in the CFBundleIdentifier key of the application’s Info.plist file.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3.2)] //[Export("documentInteractionController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void DocumentInteractionController(UIDocumentInteractionController controller, string didEndSendingToApplication, bool NAME_YOUR_PARAMS = false); } } \ 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 UIDocumentInteractionControllerDelegate protocol includes methods you can implement to respond to messages from a document interaction controller. Use this protocol to participate when document previews are displayed and when a document is about to be opened by another application. You can also use this protocol to respond to commands (such as “copy” and “print”) from a document interaction controller’s options menu. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDocumentInteractionControllerDelegate_protocol/index.html#//apple_ref/occ/intf/UIDocumentInteractionControllerDelegate"/> [iOSVersion(3.2)] public interface UIDocumentInteractionControllerDelegate//: NSObjectProtocol { /// <summary> /// Called when a document interaction controller needs a view controller for presenting a document preview. /// </summary> /// <param name="controller">The document interaction controller requesting the parent view controller.</param> //[iOSVersion(3.2)] //[Export("documentInteractionControllerViewControllerForPreview")] //[Optional] //UIViewController DocumentInteractionControllerViewControllerForPreview(UIDocumentInteractionController controller); /// <summary> /// Called when a document interaction controller needs the starting point for animating the display of a document preview. /// </summary> /// <param name="controller">The document interaction controller requesting the starting view.</param> //[iOSVersion(3.2)] //[Export("documentInteractionControllerViewForPreview")] //[Optional] //UIView DocumentInteractionControllerViewForPreview(UIDocumentInteractionController controller); /// <summary> /// Called when a document interaction controller needs the rectangle to use as the starting point for animating the display of a document preview. /// </summary> /// <param name="controller">The document interaction controller requesting the starting rectangle.</param> //[iOSVersion(3.2)] //[Export("documentInteractionControllerRectForPreview")] //[Optional] //CGRect DocumentInteractionControllerRectForPreview(UIDocumentInteractionController controller); /// <summary> /// Called when a document interaction controller is about to display a preview for its document. /// </summary> /// <param name="controller">The document interaction controller that is about to preview its document.</param> //[iOSVersion(3.2)] //[Export("documentInteractionControllerWillBeginPreview")] //[Optional] //void DocumentInteractionControllerWillBeginPreview(UIDocumentInteractionController controller); /// <summary> /// Called when a document interaction controller has dismissed its document preview. /// </summary> /// <param name="controller">The document interaction controller that dismissed its document preview.</param> //[iOSVersion(3.2)] //[Export("documentInteractionControllerDidEndPreview")] //[Optional] //void DocumentInteractionControllerDidEndPreview(UIDocumentInteractionController controller); /// <summary> /// Called when a document interaction controller is about to display an options menu. /// </summary> /// <param name="controller">The document interaction controller that is about to display an options menu.</param> //[iOSVersion(3.2)] //[Export("documentInteractionControllerWillPresentOptionsMenu")] //[Optional] //void DocumentInteractionControllerWillPresentOptionsMenu(UIDocumentInteractionController controller); /// <summary> /// Called when a document interaction controller has dismissed its options menu. /// </summary> /// <param name="controller">The document interaction controller that dismissed its options menu.</param> //[iOSVersion(3.2)] //[Export("documentInteractionControllerDidDismissOptionsMenu")] //[Optional] //void DocumentInteractionControllerDidDismissOptionsMenu(UIDocumentInteractionController controller); /// <summary> /// Called when a document interaction controller is about to display an Open In menu. /// </summary> /// <param name="controller">The document interaction controller that is about to display a menu.</param> //[iOSVersion(3.2)] //[Export("documentInteractionControllerWillPresentOpenInMenu")] //[Optional] //void DocumentInteractionControllerWillPresentOpenInMenu(UIDocumentInteractionController controller); /// <summary> /// Called when a document interaction controller has dismissed its Open In menu. /// </summary> /// <param name="controller">The document interaction controller that dismissed its menu.</param> //[iOSVersion(3.2)] //[Export("documentInteractionControllerDidDismissOpenInMenu")] //[Optional] //void DocumentInteractionControllerDidDismissOpenInMenu(UIDocumentInteractionController controller); /// <summary> /// Called when a document interaction controller’s document is about to be opened by the specified application. /// </summary> /// <param name="controller">The document interaction controller whose document is about to be opened.</param> /// <param name="willBeginSendingToApplication">The bundle identifier of the application that is about to open the document. This value corresponds to the value in the CFBundleIdentifier key of the application’s Info.plist file.</param> //[iOSVersion(3.2)] //[Export("documentInteractionController")] //[Optional] //void DocumentInteractionController(UIDocumentInteractionController controller, string willBeginSendingToApplication); /// <summary> /// Called when a document interaction controller’s document has been handed off to the specified application. /// </summary> /// <param name="controller">The document interaction controller whose document is about to be opened.</param> /// <param name="didEndSendingToApplication">The bundle identifier of the application that is about to open the document. This value corresponds to the value in the CFBundleIdentifier key of the application’s Info.plist file.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3.2)] //[Export("documentInteractionController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void DocumentInteractionController(UIDocumentInteractionController controller, string didEndSendingToApplication, bool NAME_YOUR_PARAMS = false); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIDocumentMenuDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIDocumentMenuDelegate.cs
index aad75169..fb1c4b06 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIDocumentMenuDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIDocumentMenuDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIDocumentMenuDelegate protocol defines the methods you must implement to track user interactions with a document menu view controller. The document menu calls these methods when the user selects a document picker or dismisses the menu. If the user selects a document picker, set the picker’s delegate and present it. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDocumentMenuDelegate_Protocol/index.html#//apple_ref/occ/intf/UIDocumentMenuDelegate"/> [iOSVersion(8)] public interface UIDocumentMenuDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate that the user has selected a document picker from the menu. (required) /// </summary> /// <param name="documentMenu">The document menu object that called this method.</param> /// <param name="didPickDocumentPicker">The document picker that the user selected.</param> [iOSVersion(8)] [Export("documentMenu")] void DocumentMenu(UIDocumentMenuViewController documentMenu, UIDocumentPickerViewController didPickDocumentPicker); /// <summary> /// Tells the delegate that the user dismissed the document menu. /// </summary> /// <param name="documentMenu">The document menu object that called this method.</param> //[iOSVersion(8)] //[Export("documentMenuWasCancelled")] //[Optional] void DocumentMenuWasCancelled(UIDocumentMenuViewController documentMenu); } } \ 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 UIDocumentMenuDelegate protocol defines the methods you must implement to track user interactions with a document menu view controller. The document menu calls these methods when the user selects a document picker or dismisses the menu. If the user selects a document picker, set the picker’s delegate and present it. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDocumentMenuDelegate_Protocol/index.html#//apple_ref/occ/intf/UIDocumentMenuDelegate"/> [iOSVersion(8)] public interface UIDocumentMenuDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate that the user has selected a document picker from the menu. (required) /// </summary> /// <param name="documentMenu">The document menu object that called this method.</param> /// <param name="didPickDocumentPicker">The document picker that the user selected.</param> [iOSVersion(8)] [Export("documentMenu")] void DocumentMenu(UIDocumentMenuViewController documentMenu, UIDocumentPickerViewController didPickDocumentPicker); /// <summary> /// Tells the delegate that the user dismissed the document menu. /// </summary> /// <param name="documentMenu">The document menu object that called this method.</param> //[iOSVersion(8)] //[Export("documentMenuWasCancelled")] //[Optional] //void DocumentMenuWasCancelled(UIDocumentMenuViewController documentMenu); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIDocumentPickerDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIDocumentPickerDelegate.cs
index cecf5c05..a953efb1 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIDocumentPickerDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIDocumentPickerDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIDocumentPickerDelegate protocol defines the methods you must implement to track /// when the user selects a document or destination, or to track when the document picker is canceled. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDocumentPickerDelegate/index.html#//apple_ref/occ/intf/UIDocumentPickerDelegate"/> [iOSVersion(8)] public interface UIDocumentPickerDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate that the user has selected a document or a destination. (required) /// </summary> /// <param name="controller">The document picker that called this method.</param> /// <param name="didPickDocumentAtURL">The URL of the selected document or destination.</param> [iOSVersion(8)] [Export("documentPicker")] void DocumentPicker(UIDocumentPickerViewController controller, NSURL didPickDocumentAtURL); /// <summary> /// Tells the delegate that the user canceled the document picker. /// </summary> /// <param name="controller">The document picker that called this method.</param> //[iOSVersion(8)] //[Export("documentPickerWasCancelled")] //[Optional] void DocumentPickerWasCancelled(UIDocumentPickerViewController controller); } } \ 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 UIDocumentPickerDelegate protocol defines the methods you must implement to track /// when the user selects a document or destination, or to track when the document picker is canceled. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDocumentPickerDelegate/index.html#//apple_ref/occ/intf/UIDocumentPickerDelegate"/> [iOSVersion(8)] public interface UIDocumentPickerDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate that the user has selected a document or a destination. (required) /// </summary> /// <param name="controller">The document picker that called this method.</param> /// <param name="didPickDocumentAtURL">The URL of the selected document or destination.</param> [iOSVersion(8)] [Export("documentPicker")] void DocumentPicker(UIDocumentPickerViewController controller, NSURL didPickDocumentAtURL); /// <summary> /// Tells the delegate that the user canceled the document picker. /// </summary> /// <param name="controller">The document picker that called this method.</param> //[iOSVersion(8)] //[Export("documentPickerWasCancelled")] //[Optional] //void DocumentPickerWasCancelled(UIDocumentPickerViewController controller); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIDynamicAnimatorDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIDynamicAnimatorDelegate.cs
index fd5df9bb..37611392 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIDynamicAnimatorDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIDynamicAnimatorDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// To respond to the pausing or resumption of UIKit dynamic animation, configure a custom class to adopt the UIDynamicAnimatorDelegate protocol. Then, in a dynamic animator (an instance of the UIDynamicAnimator class), set the delegate to be an instance of your custom class. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDynamicAnimatorDelegate_Protocol/index.html#//apple_ref/occ/intf/UIDynamicAnimatorDelegate"/> [iOSVersion(7)] public interface UIDynamicAnimatorDelegate//: NSObjectProtocol { /// <summary> /// Called when a dynamic animator pauses the animations for its behaviors’ associated dynamic items. (required) /// </summary> /// <param name="animator">The dynamic animator that paused its animation.</param> //[iOSVersion(7)] //[Export("dynamicAnimatorDidPause")] //[Optional] void DynamicAnimatorDidPause(UIDynamicAnimator animator); /// <summary> /// Called when a dynamic animator is about to resume the animations for its behaviors’ associated dynamic items. (required) /// </summary> /// <param name="animator">The dynamic animator that is about to resume animation.</param> //[iOSVersion(7)] //[Export("dynamicAnimatorWillResume")] //[Optional] void DynamicAnimatorWillResume(UIDynamicAnimator animator); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// To respond to the pausing or resumption of UIKit dynamic animation, configure a custom class to adopt the UIDynamicAnimatorDelegate protocol. Then, in a dynamic animator (an instance of the UIDynamicAnimator class), set the delegate to be an instance of your custom class. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDynamicAnimatorDelegate_Protocol/index.html#//apple_ref/occ/intf/UIDynamicAnimatorDelegate"/> [iOSVersion(7)] public interface UIDynamicAnimatorDelegate//: NSObjectProtocol { /// <summary> /// Called when a dynamic animator pauses the animations for its behaviors’ associated dynamic items. (required) /// </summary> /// <param name="animator">The dynamic animator that paused its animation.</param> //[iOSVersion(7)] //[Export("dynamicAnimatorDidPause")] //[Optional] //void DynamicAnimatorDidPause(UIDynamicAnimator animator); /// <summary> /// Called when a dynamic animator is about to resume the animations for its behaviors’ associated dynamic items. (required) /// </summary> /// <param name="animator">The dynamic animator that is about to resume animation.</param> //[iOSVersion(7)] //[Export("dynamicAnimatorWillResume")] //[Optional] //void DynamicAnimatorWillResume(UIDynamicAnimator animator); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIGestureRecognizerDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIGestureRecognizerDelegate.cs
index d294b7c2..538affe8 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIGestureRecognizerDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIGestureRecognizerDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// Delegates of a gesture recognizer—that is, an instance of a concrete subclass of UIGestureRecognizer—adopt the UIGestureRecognizerDelegate protocol to fine-tune an app’s gesture-recognition behavior. The delegates receive messages from a gesture recognizer, and their responses to these messages enable them to affect the operation of the gesture recognizer or to specify a relationship between it and another gesture recognizer, such as allowing simultaneous recognition or setting up a failure requirement. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIGestureRecognizerDelegate_Protocol/index.html#//apple_ref/occ/intf/UIGestureRecognizerDelegate"/> [iOSVersion(3.2)] public interface UIGestureRecognizerDelegate//: NSObjectProtocol { /// <summary> /// Asks the delegate if a gesture recognizer should begin interpreting touches. /// </summary> /// <param name="gestureRecognizer">An instance of a subclass of the abstract base class UIGestureRecognizer. This gesture-recognizer object is about to begin processing touches to determine if its gesture is occurring.</param> //[iOSVersion(3.2)] //[Export("gestureRecognizerShouldBegin")] //[Optional] bool GestureRecognizerShouldBegin(UIGestureRecognizer gestureRecognizer); /// <summary> /// Ask the delegate if a gesture recognizer should receive an object representing a touch. /// </summary> /// <param name="gestureRecognizer">An instance of a subclass of the abstract base class UIGestureRecognizer.</param> /// <param name="shouldReceiveTouch">A UITouch object from the current multi-touch sequence.</param> //[iOSVersion(3.2)] //[Export("gestureRecognizer")] //[Optional] bool GestureRecognizer(UIGestureRecognizer gestureRecognizer, UITouch shouldReceiveTouch); /// <summary> /// Asks the delegate if two gesture recognizers should be allowed to recognize gestures simultaneously. /// </summary> /// <param name="gestureRecognizer">An instance of a subclass of the abstract base class UIGestureRecognizer. This is the object sending the message to the delegate.</param> /// <param name="shouldRecognizeSimultaneouslyWithGestureRecognizer">An instance of a subclass of the abstract base class UIGestureRecognizer.</param> //[iOSVersion(3.2)] //[Export("gestureRecognizer")] //[Optional] bool GestureRecognizer(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer); /// <summary> /// Asks the delegate if a gesture recognizer should require another gesture recognizer to fail. /// </summary> /// <param name="gestureRecognizer">An instance of a subclass of the abstract base class UIGestureRecognizer. This is the object sending the message to the delegate.</param> /// <param name="shouldRequireFailureOfGestureRecognizer">An instance of a subclass of the abstract base class UIGestureRecognizer.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("gestureRecognizer")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] bool GestureRecognizer(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer shouldRequireFailureOfGestureRecognizer, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate if a gesture recognizer should be required to fail by another gesture recognizer. /// </summary> /// <param name="gestureRecognizer">An instance of a subclass of the abstract base class UIGestureRecognizer. This is the object sending the message to the delegate.</param> /// <param name="shouldBeRequiredToFailByGestureRecognizer">An instance of a subclass of the abstract base class UIGestureRecognizer.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("gestureRecognizer")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] bool GestureRecognizer(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer shouldBeRequiredToFailByGestureRecognizer, int NAME_YOUR_PARAMS = 0); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// Delegates of a gesture recognizer—that is, an instance of a concrete subclass of UIGestureRecognizer—adopt the UIGestureRecognizerDelegate protocol to fine-tune an app’s gesture-recognition behavior. The delegates receive messages from a gesture recognizer, and their responses to these messages enable them to affect the operation of the gesture recognizer or to specify a relationship between it and another gesture recognizer, such as allowing simultaneous recognition or setting up a failure requirement. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIGestureRecognizerDelegate_Protocol/index.html#//apple_ref/occ/intf/UIGestureRecognizerDelegate"/> [iOSVersion(3.2)] public interface UIGestureRecognizerDelegate//: NSObjectProtocol { /// <summary> /// Asks the delegate if a gesture recognizer should begin interpreting touches. /// </summary> /// <param name="gestureRecognizer">An instance of a subclass of the abstract base class UIGestureRecognizer. This gesture-recognizer object is about to begin processing touches to determine if its gesture is occurring.</param> //[iOSVersion(3.2)] //[Export("gestureRecognizerShouldBegin")] //[Optional] //bool GestureRecognizerShouldBegin(UIGestureRecognizer gestureRecognizer); /// <summary> /// Ask the delegate if a gesture recognizer should receive an object representing a touch. /// </summary> /// <param name="gestureRecognizer">An instance of a subclass of the abstract base class UIGestureRecognizer.</param> /// <param name="shouldReceiveTouch">A UITouch object from the current multi-touch sequence.</param> //[iOSVersion(3.2)] //[Export("gestureRecognizer")] //[Optional] //bool GestureRecognizer(UIGestureRecognizer gestureRecognizer, UITouch shouldReceiveTouch); /// <summary> /// Asks the delegate if two gesture recognizers should be allowed to recognize gestures simultaneously. /// </summary> /// <param name="gestureRecognizer">An instance of a subclass of the abstract base class UIGestureRecognizer. This is the object sending the message to the delegate.</param> /// <param name="shouldRecognizeSimultaneouslyWithGestureRecognizer">An instance of a subclass of the abstract base class UIGestureRecognizer.</param> //[iOSVersion(3.2)] //[Export("gestureRecognizer")] //[Optional] //bool GestureRecognizer(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer); /// <summary> /// Asks the delegate if a gesture recognizer should require another gesture recognizer to fail. /// </summary> /// <param name="gestureRecognizer">An instance of a subclass of the abstract base class UIGestureRecognizer. This is the object sending the message to the delegate.</param> /// <param name="shouldRequireFailureOfGestureRecognizer">An instance of a subclass of the abstract base class UIGestureRecognizer.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("gestureRecognizer")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool GestureRecognizer(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer shouldRequireFailureOfGestureRecognizer, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate if a gesture recognizer should be required to fail by another gesture recognizer. /// </summary> /// <param name="gestureRecognizer">An instance of a subclass of the abstract base class UIGestureRecognizer. This is the object sending the message to the delegate.</param> /// <param name="shouldBeRequiredToFailByGestureRecognizer">An instance of a subclass of the abstract base class UIGestureRecognizer.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("gestureRecognizer")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool GestureRecognizer(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer shouldBeRequiredToFailByGestureRecognizer, int NAME_YOUR_PARAMS = 0); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIGuidedAccessRestrictionDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIGuidedAccessRestrictionDelegate.cs
index ad161c6e..8674f166 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIGuidedAccessRestrictionDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIGuidedAccessRestrictionDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// Adopting the UIGuidedAccessRestrictionDelegate protocol in your application delegate allows you to add custom restrictions for the Guided Access feature in iOS. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIGuidedAccessRestrictionsDelegate_Protocol/index.html#//apple_ref/occ/intf/UIGuidedAccessRestrictionDelegate"/> [iOSVersion(7)] public interface UIGuidedAccessRestrictionDelegate//: NSObjectProtocol { /// <summary> /// Returns an array of strings identifying custom restrictions. (required) /// </summary> [iOSVersion(7)] [Export("guidedAccessRestrictionIdentifiers")] AnyObject[] GuidedAccessRestrictionIdentifiers(); /// <summary> /// Returns a succinct description of the restriction for the provided identifier. (required) /// </summary> /// <param name="restrictionIdentifier">The identifer of the restriction the system is interested in.</param> [iOSVersion(7)] [Export("textForGuidedAccessRestrictionWithIdentifier")] string TextForGuidedAccessRestrictionWithIdentifier(string restrictionIdentifier); /// <summary> /// Returns more detailed information about the restriction for the provided identifier. /// </summary> /// <param name="restrictionIdentifier">The identifer of the restriction the system is interested in.</param> //[iOSVersion(7)] //[Export("detailTextForGuidedAccessRestrictionWithIdentifier")] //[Optional] string DetailTextForGuidedAccessRestrictionWithIdentifier(string restrictionIdentifier); /// <summary> /// Para (required) /// </summary> /// <param name="restrictionIdentifier">The identifer of the restriction whose state has changed.</param> /// <param name="didChangeState">The new state for the restriction.</param> [iOSVersion(7)] [Export("guidedAccessRestrictionWithIdentifier")] void GuidedAccessRestrictionWithIdentifier(string restrictionIdentifier, UIGuidedAccessRestrictionState didChangeState); } /// <summary> /// The state of a restriction, either allow or deny. /// </summary> [iOSVersion(7)] public enum UIGuidedAccessRestrictionState { /// <summary> /// The app should allow the user to perform the action controlled by the restriction. /// </summary> [iOSVersion(7)] Allow, /// <summary> /// The app should deny the user from performing the action controlled by the restriction. /// </summary> [iOSVersion(7)] Deny, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// Adopting the UIGuidedAccessRestrictionDelegate protocol in your application delegate allows you to add custom restrictions for the Guided Access feature in iOS. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIGuidedAccessRestrictionsDelegate_Protocol/index.html#//apple_ref/occ/intf/UIGuidedAccessRestrictionDelegate"/> [iOSVersion(7)] public interface UIGuidedAccessRestrictionDelegate//: NSObjectProtocol { /// <summary> /// Returns an array of strings identifying custom restrictions. (required) /// </summary> [iOSVersion(7)] [Export("guidedAccessRestrictionIdentifiers")] AnyObject[] GuidedAccessRestrictionIdentifiers(); /// <summary> /// Returns a succinct description of the restriction for the provided identifier. (required) /// </summary> /// <param name="restrictionIdentifier">The identifer of the restriction the system is interested in.</param> [iOSVersion(7)] [Export("textForGuidedAccessRestrictionWithIdentifier")] string TextForGuidedAccessRestrictionWithIdentifier(string restrictionIdentifier); /// <summary> /// Returns more detailed information about the restriction for the provided identifier. /// </summary> /// <param name="restrictionIdentifier">The identifer of the restriction the system is interested in.</param> //[iOSVersion(7)] //[Export("detailTextForGuidedAccessRestrictionWithIdentifier")] //[Optional] //string DetailTextForGuidedAccessRestrictionWithIdentifier(string restrictionIdentifier); /// <summary> /// Para (required) /// </summary> /// <param name="restrictionIdentifier">The identifer of the restriction whose state has changed.</param> /// <param name="didChangeState">The new state for the restriction.</param> [iOSVersion(7)] [Export("guidedAccessRestrictionWithIdentifier")] void GuidedAccessRestrictionWithIdentifier(string restrictionIdentifier, UIGuidedAccessRestrictionState didChangeState); } /// <summary> /// The state of a restriction, either allow or deny. /// </summary> [iOSVersion(7)] public enum UIGuidedAccessRestrictionState { /// <summary> /// The app should allow the user to perform the action controlled by the restriction. /// </summary> [iOSVersion(7)] Allow, /// <summary> /// The app should deny the user from performing the action controlled by the restriction. /// </summary> [iOSVersion(7)] Deny, } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIImagePickerControllerDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIImagePickerControllerDelegate.cs
index d4863fd0..9884a4f7 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIImagePickerControllerDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIImagePickerControllerDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIImagePickerControllerDelegate protocol defines methods that your delegate object must implement to interact with the image picker interface. The methods of this protocol notify your delegate when the user either picks an image or movie, or cancels the picker operation. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIImagePickerControllerDelegate_Protocol/index.html#//apple_ref/occ/intf/UIImagePickerControllerDelegate"/> [iOSVersion(2)] public interface UIImagePickerControllerDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate that the user picked a still image or movie. /// </summary> /// <param name="picker">The controller object managing the image picker interface.</param> /// <param name="didFinishPickingMediaWithInfo">A dictionary containing the original image and the edited image, if an image was picked; or a filesystem URL for the movie, if a movie was picked. The dictionary also contains any relevant editing information. The keys for this dictionary are listed in Editing Information Keys.</param> //[iOSVersion(3)] //[Export("imagePickerController")] //[Optional] void ImagePickerController(UIImagePickerController picker, Dictionary<NSObject, AnyObject> didFinishPickingMediaWithInfo); /// <summary> /// Tells the delegate that the user cancelled the pick operation. /// </summary> /// <param name="picker">The controller object managing the image picker interface.</param> //[iOSVersion(2)] //[Export("imagePickerControllerDidCancel")] //[Optional] void ImagePickerControllerDidCancel(UIImagePickerController picker); } } \ 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 UIImagePickerControllerDelegate protocol defines methods that your delegate object must implement to interact with the image picker interface. The methods of this protocol notify your delegate when the user either picks an image or movie, or cancels the picker operation. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIImagePickerControllerDelegate_Protocol/index.html#//apple_ref/occ/intf/UIImagePickerControllerDelegate"/> [iOSVersion(2)] public interface UIImagePickerControllerDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate that the user picked a still image or movie. /// </summary> /// <param name="picker">The controller object managing the image picker interface.</param> /// <param name="didFinishPickingMediaWithInfo">A dictionary containing the original image and the edited image, if an image was picked; or a filesystem URL for the movie, if a movie was picked. The dictionary also contains any relevant editing information. The keys for this dictionary are listed in Editing Information Keys.</param> //[iOSVersion(3)] //[Export("imagePickerController")] //[Optional] //void ImagePickerController(UIImagePickerController picker, Dictionary<NSObject, AnyObject> didFinishPickingMediaWithInfo); /// <summary> /// Tells the delegate that the user cancelled the pick operation. /// </summary> /// <param name="picker">The controller object managing the image picker interface.</param> //[iOSVersion(2)] //[Export("imagePickerControllerDidCancel")] //[Optional] //void ImagePickerControllerDidCancel(UIImagePickerController picker); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UINavigationBarDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UINavigationBarDelegate.cs
index 7af9fa1e..ef828688 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UINavigationBarDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UINavigationBarDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UINavigationBarDelegate protocol defines optional methods that a UINavigationBar delegate should implement to update its views when items are pushed and popped from the stack. The navigation bar represents only the bar at the top of the screen, not the view below. It’s the application’s responsibility to implement the behavior when the top item changes. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UINavigationBarDelegate_Protocol/index.html#//apple_ref/occ/intf/UINavigationBarDelegate"/> [iOSVersion(2)] public interface UINavigationBarDelegate//: NSObjectProtocol, UIBarPositioningDelegate { /// <summary> /// Returns a Boolean value indicating whether the navigation bar should push an item. /// </summary> /// <param name="navigationBar">The navigation bar that the item is being pushed onto.</param> /// <param name="shouldPushItem">The navigation item that is being pushed.</param> //[iOSVersion(2)] //[Export("navigationBar")] //[Optional] bool NavigationBar(UINavigationBar navigationBar, UINavigationItem shouldPushItem); /// <summary> /// Tells the delegate that an item was pushed onto the navigation bar. /// </summary> /// <param name="navigationBar">The navigation bar that the item is being pushed onto.</param> /// <param name="didPushItem">The navigation item that is being pushed.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("navigationBar")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void NavigationBar(UINavigationBar navigationBar, UINavigationItem didPushItem, bool NAME_YOUR_PARAMS = false); /// <summary> /// Returns a Boolean value indicating whether the navigation bar should pop an item. /// </summary> /// <param name="navigationBar">The navigation bar that the item is being popped from.</param> /// <param name="shouldPopItem">The navigation item that is being popped.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("navigationBar")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] bool NavigationBar(UINavigationBar navigationBar, UINavigationItem shouldPopItem, int NAME_YOUR_PARAMS = 0); /// <summary> /// Tells the delegate that an item was popped from the navigation bar. /// </summary> /// <param name="navigationBar">The navigation bar that the item is being popped from.</param> /// <param name="didPopItem">The navigation item that is being popped.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("navigationBar")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void NavigationBar(UINavigationBar navigationBar, UINavigationItem didPopItem, string NAME_YOUR_PARAMS = ""); } } \ 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 UINavigationBarDelegate protocol defines optional methods that a UINavigationBar delegate should implement to update its views when items are pushed and popped from the stack. The navigation bar represents only the bar at the top of the screen, not the view below. It’s the application’s responsibility to implement the behavior when the top item changes. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UINavigationBarDelegate_Protocol/index.html#//apple_ref/occ/intf/UINavigationBarDelegate"/> [iOSVersion(2)] public interface UINavigationBarDelegate//: NSObjectProtocol, UIBarPositioningDelegate { /// <summary> /// Returns a Boolean value indicating whether the navigation bar should push an item. /// </summary> /// <param name="navigationBar">The navigation bar that the item is being pushed onto.</param> /// <param name="shouldPushItem">The navigation item that is being pushed.</param> //[iOSVersion(2)] //[Export("navigationBar")] //[Optional] //bool NavigationBar(UINavigationBar navigationBar, UINavigationItem shouldPushItem); /// <summary> /// Tells the delegate that an item was pushed onto the navigation bar. /// </summary> /// <param name="navigationBar">The navigation bar that the item is being pushed onto.</param> /// <param name="didPushItem">The navigation item that is being pushed.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("navigationBar")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void NavigationBar(UINavigationBar navigationBar, UINavigationItem didPushItem, bool NAME_YOUR_PARAMS = false); /// <summary> /// Returns a Boolean value indicating whether the navigation bar should pop an item. /// </summary> /// <param name="navigationBar">The navigation bar that the item is being popped from.</param> /// <param name="shouldPopItem">The navigation item that is being popped.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("navigationBar")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool NavigationBar(UINavigationBar navigationBar, UINavigationItem shouldPopItem, int NAME_YOUR_PARAMS = 0); /// <summary> /// Tells the delegate that an item was popped from the navigation bar. /// </summary> /// <param name="navigationBar">The navigation bar that the item is being popped from.</param> /// <param name="didPopItem">The navigation item that is being popped.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("navigationBar")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void NavigationBar(UINavigationBar navigationBar, UINavigationItem didPopItem, string NAME_YOUR_PARAMS = ""); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UINavigationControllerDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UINavigationControllerDelegate.cs
index 57934903..1d0d279c 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UINavigationControllerDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UINavigationControllerDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// Use a navigation controller delegate (a custom object that implements this protocol) to modify behavior when a view controller is pushed or popped from the navigation stack of a UINavigationController object. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UINavigationControllerDelegate_Protocol/index.html#//apple_ref/occ/intf/UINavigationControllerDelegate"/> [iOSVersion(2)] public interface UINavigationControllerDelegate//: NSObjectProtocol { /// <summary> /// Called just before the navigation controller displays a view controller’s view and navigation item properties. /// </summary> /// <param name="navigationController">The navigation controller that is showing the view and properties of a view controller.</param> /// <param name="willShowViewController">The view controller whose view and navigation item properties are being shown.</param> /// <param name="animated">true to animate the transition; otherwise, false.</param> //[iOSVersion(2)] //[Export("navigationController")] //[Optional] void NavigationController(UINavigationController navigationController, UIViewController willShowViewController, bool animated); /// <summary> /// Called just after the navigation controller displays a view controller’s view and navigation item properties. /// </summary> /// <param name="navigationController">The navigation controller that is showing the view and properties of a view controller.</param> /// <param name="didShowViewController">The view controller whose view and navigation item properties are being shown.</param> /// <param name="animated">true to animate the transition; otherwise, false.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("navigationController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void NavigationController(UINavigationController navigationController, UIViewController didShowViewController, bool animated, bool NAME_YOUR_PARAMS = false); /// <summary> /// Called to allow the delegate to return a noninteractive animator object for use during view controller transitions. /// </summary> /// <param name="navigationController">The navigation controller whose navigation stack is changing.</param> /// <param name="animationControllerForOperation">The type of transition operation that is occurring. For a list of possible values, see the “UINavigationControllerOperation” constants.</param> /// <param name="fromViewController">The currently visible view controller.</param> /// <param name="toViewController">The view controller that should be visible at the end of the transition.</param> //[iOSVersion(7)] //[Export("navigationController")] //[Optional] UIViewControllerAnimatedTransitioning NavigationController(UINavigationController navigationController, UINavigationControllerOperation animationControllerForOperation, UIViewController fromViewController, UIViewController toViewController); /// <summary> /// Called to allow the delegate to return an interactive animator object for use during view controller transitions. /// </summary> /// <param name="navigationController">The navigation controller whose navigation stack is changing.</param> /// <param name="interactionControllerForAnimationController">The noninteractive animator object provided by the delegate’s navigationController:animationControllerForOperation:fromViewController:toViewController: method.</param> //[iOSVersion(7)] //[Export("navigationController")] //[Optional] UIViewControllerInteractiveTransitioning NavigationController(UINavigationController navigationController, UIViewControllerAnimatedTransitioning interactionControllerForAnimationController); /// <summary> /// Returns the preferred orientation for presentation of the navigation controller, as determined by the delegate. /// </summary> /// <param name="navigationController">The navigation controller</param> //[iOSVersion(7)] //[Export("navigationControllerPreferredInterfaceOrientationForPresentation")] //[Optional] UIInterfaceOrientation NavigationControllerPreferredInterfaceOrientationForPresentation(UINavigationController navigationController); /// <summary> /// Returns the complete set of supported interface orientations for the navigation controller, as determined by the delegate. /// </summary> /// <param name="navigationController">The navigation controller</param> //[iOSVersion(7)] //[Export("navigationControllerSupportedInterfaceOrientations")] //[Optional] int NavigationControllerSupportedInterfaceOrientations(UINavigationController navigationController); } /// <summary> /// These constants define the type of navigation controller transitions that can occur. /// </summary> [iOSVersion(7)] public enum UINavigationControllerOperation { /// <summary> /// No operation is taking place. /// </summary> [iOSVersion(7)] None, /// <summary> /// A view controller is being pushed onto the navigation stack. /// </summary> [iOSVersion(7)] Push, /// <summary> /// The topmost view controller is being removed from the navigation stack. /// </summary> [iOSVersion(7)] Pop, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// Use a navigation controller delegate (a custom object that implements this protocol) to modify behavior when a view controller is pushed or popped from the navigation stack of a UINavigationController object. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UINavigationControllerDelegate_Protocol/index.html#//apple_ref/occ/intf/UINavigationControllerDelegate"/> [iOSVersion(2)] public interface UINavigationControllerDelegate//: NSObjectProtocol { /// <summary> /// Called just before the navigation controller displays a view controller’s view and navigation item properties. /// </summary> /// <param name="navigationController">The navigation controller that is showing the view and properties of a view controller.</param> /// <param name="willShowViewController">The view controller whose view and navigation item properties are being shown.</param> /// <param name="animated">true to animate the transition; otherwise, false.</param> //[iOSVersion(2)] //[Export("navigationController")] //[Optional] //void NavigationController(UINavigationController navigationController, UIViewController willShowViewController, bool animated); /// <summary> /// Called just after the navigation controller displays a view controller’s view and navigation item properties. /// </summary> /// <param name="navigationController">The navigation controller that is showing the view and properties of a view controller.</param> /// <param name="didShowViewController">The view controller whose view and navigation item properties are being shown.</param> /// <param name="animated">true to animate the transition; otherwise, false.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("navigationController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void NavigationController(UINavigationController navigationController, UIViewController didShowViewController, bool animated, bool NAME_YOUR_PARAMS = false); /// <summary> /// Called to allow the delegate to return a noninteractive animator object for use during view controller transitions. /// </summary> /// <param name="navigationController">The navigation controller whose navigation stack is changing.</param> /// <param name="animationControllerForOperation">The type of transition operation that is occurring. For a list of possible values, see the “UINavigationControllerOperation” constants.</param> /// <param name="fromViewController">The currently visible view controller.</param> /// <param name="toViewController">The view controller that should be visible at the end of the transition.</param> //[iOSVersion(7)] //[Export("navigationController")] //[Optional] //UIViewControllerAnimatedTransitioning NavigationController(UINavigationController navigationController, UINavigationControllerOperation animationControllerForOperation, UIViewController fromViewController, UIViewController toViewController); /// <summary> /// Called to allow the delegate to return an interactive animator object for use during view controller transitions. /// </summary> /// <param name="navigationController">The navigation controller whose navigation stack is changing.</param> /// <param name="interactionControllerForAnimationController">The noninteractive animator object provided by the delegate’s navigationController:animationControllerForOperation:fromViewController:toViewController: method.</param> //[iOSVersion(7)] //[Export("navigationController")] //[Optional] //UIViewControllerInteractiveTransitioning NavigationController(UINavigationController navigationController, UIViewControllerAnimatedTransitioning interactionControllerForAnimationController); /// <summary> /// Returns the preferred orientation for presentation of the navigation controller, as determined by the delegate. /// </summary> /// <param name="navigationController">The navigation controller</param> //[iOSVersion(7)] //[Export("navigationControllerPreferredInterfaceOrientationForPresentation")] //[Optional] //UIInterfaceOrientation NavigationControllerPreferredInterfaceOrientationForPresentation(UINavigationController navigationController); /// <summary> /// Returns the complete set of supported interface orientations for the navigation controller, as determined by the delegate. /// </summary> /// <param name="navigationController">The navigation controller</param> //[iOSVersion(7)] //[Export("navigationControllerSupportedInterfaceOrientations")] //[Optional] //int NavigationControllerSupportedInterfaceOrientations(UINavigationController navigationController); } /// <summary> /// These constants define the type of navigation controller transitions that can occur. /// </summary> [iOSVersion(7)] public enum UINavigationControllerOperation { /// <summary> /// No operation is taking place. /// </summary> [iOSVersion(7)] None, /// <summary> /// A view controller is being pushed onto the navigation stack. /// </summary> [iOSVersion(7)] Push, /// <summary> /// The topmost view controller is being removed from the navigation stack. /// </summary> [iOSVersion(7)] Pop, } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIPageViewControllerDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIPageViewControllerDelegate.cs
index 9734d99e..4ab82486 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIPageViewControllerDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIPageViewControllerDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The delegate of a page view controller must adopt the UIPageViewControllerDelegate protocol. These methods allow the delegate to receive a notification when the device orientation changes and when the user navigates to a new page. For page-curl style transitions, the delegate can provide a different spine location in response to a change in the interface orientation. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPageViewControllerDelegateProtocolRef/index.html#//apple_ref/occ/intf/UIPageViewControllerDelegate"/> [iOSVersion(5)] public interface UIPageViewControllerDelegate//: NSObjectProtocol { /// <summary> /// Called before a gesture-driven transition begins. /// </summary> /// <param name="pageViewController">The page view controller.</param> /// <param name="willTransitionToViewControllers">The view controllers that are being transitioned to.</param> //[iOSVersion(6)] //[Export("pageViewController")] //[Optional] void PageViewController(UIPageViewController pageViewController, AnyObject[] willTransitionToViewControllers); /// <summary> /// Called after a gesture-driven transition completes. /// </summary> /// <param name="pageViewController">The page view controller.</param> /// <param name="didFinishAnimating">true if the animation finished; otherwise, false.</param> /// <param name="previousViewControllers">The view controllers prior to the transition.</param> /// <param name="transitionCompleted">true if the user completed the page-turn gesture; otherwise, false.</param> //[iOSVersion(5)] //[Export("pageViewController")] //[Optional] void PageViewController(UIPageViewController pageViewController, bool didFinishAnimating, AnyObject[] previousViewControllers, bool transitionCompleted); /// <summary> /// Returns the spine location for the given orientation. /// </summary> /// <param name="pageViewController">The page view controller</param> /// <param name="spineLocationForInterfaceOrientation">The new orientation.</param> //[iOSVersion(5)] //[Export("pageViewController")] //[Optional] UIPageViewControllerSpineLocation PageViewController(UIPageViewController pageViewController, UIInterfaceOrientation spineLocationForInterfaceOrientation); /// <summary> /// Returns the complete set of supported interface orientations for the page view controller, as determined by the delegate. /// </summary> /// <param name="pageViewController">The page view controller.</param> //[iOSVersion(7)] //[Export("pageViewControllerSupportedInterfaceOrientations")] //[Optional] int PageViewControllerSupportedInterfaceOrientations(UIPageViewController pageViewController); /// <summary> /// Returns the preferred orientation for presentation of the page view controller, as determined by the delegate. /// </summary> /// <param name="pageViewController">The page view controller.</param> //[iOSVersion(7)] //[Export("pageViewControllerPreferredInterfaceOrientationForPresentation")] //[Optional] UIInterfaceOrientation PageViewControllerPreferredInterfaceOrientationForPresentation(UIPageViewController pageViewController); } } \ 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 delegate of a page view controller must adopt the UIPageViewControllerDelegate protocol. These methods allow the delegate to receive a notification when the device orientation changes and when the user navigates to a new page. For page-curl style transitions, the delegate can provide a different spine location in response to a change in the interface orientation. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPageViewControllerDelegateProtocolRef/index.html#//apple_ref/occ/intf/UIPageViewControllerDelegate"/> [iOSVersion(5)] public interface UIPageViewControllerDelegate//: NSObjectProtocol { /// <summary> /// Called before a gesture-driven transition begins. /// </summary> /// <param name="pageViewController">The page view controller.</param> /// <param name="willTransitionToViewControllers">The view controllers that are being transitioned to.</param> //[iOSVersion(6)] //[Export("pageViewController")] //[Optional] //void PageViewController(UIPageViewController pageViewController, AnyObject[] willTransitionToViewControllers); /// <summary> /// Called after a gesture-driven transition completes. /// </summary> /// <param name="pageViewController">The page view controller.</param> /// <param name="didFinishAnimating">true if the animation finished; otherwise, false.</param> /// <param name="previousViewControllers">The view controllers prior to the transition.</param> /// <param name="transitionCompleted">true if the user completed the page-turn gesture; otherwise, false.</param> //[iOSVersion(5)] //[Export("pageViewController")] //[Optional] //void PageViewController(UIPageViewController pageViewController, bool didFinishAnimating, AnyObject[] previousViewControllers, bool transitionCompleted); /// <summary> /// Returns the spine location for the given orientation. /// </summary> /// <param name="pageViewController">The page view controller</param> /// <param name="spineLocationForInterfaceOrientation">The new orientation.</param> //[iOSVersion(5)] //[Export("pageViewController")] //[Optional] //UIPageViewControllerSpineLocation PageViewController(UIPageViewController pageViewController, UIInterfaceOrientation spineLocationForInterfaceOrientation); /// <summary> /// Returns the complete set of supported interface orientations for the page view controller, as determined by the delegate. /// </summary> /// <param name="pageViewController">The page view controller.</param> //[iOSVersion(7)] //[Export("pageViewControllerSupportedInterfaceOrientations")] //[Optional] //int PageViewControllerSupportedInterfaceOrientations(UIPageViewController pageViewController); /// <summary> /// Returns the preferred orientation for presentation of the page view controller, as determined by the delegate. /// </summary> /// <param name="pageViewController">The page view controller.</param> //[iOSVersion(7)] //[Export("pageViewControllerPreferredInterfaceOrientationForPresentation")] //[Optional] //UIInterfaceOrientation PageViewControllerPreferredInterfaceOrientationForPresentation(UIPageViewController pageViewController); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIPickerViewAccessibilityDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIPickerViewAccessibilityDelegate.cs
index 98de5601..d77e19f2 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIPickerViewAccessibilityDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIPickerViewAccessibilityDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIPickerViewAccessibilityDelegate protocol defines methods you can implement to provide accessibility information for individual components of a picker view. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPickerViewAccessibilityDelegate_Protocol/index.html#//apple_ref/occ/intf/UIPickerViewAccessibilityDelegate"/> [iOSVersion(4)] public interface UIPickerViewAccessibilityDelegate//: NSObjectProtocol, UIPickerViewDelegate { /// <summary> /// Returns a label that identifies the picker view component. /// </summary> /// <param name="pickerView"></param> /// <param name="accessibilityLabelForComponent"></param> //[iOSVersion(4)] //[Export("pickerView")] //[Optional] string PickerView(UIPickerView pickerView, int accessibilityLabelForComponent); /// <summary> /// Returns a hint that describes the result of performing an action on the picker view component. /// </summary> /// <param name="pickerView"></param> /// <param name="accessibilityHintForComponent"></param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(4)] //[Export("pickerView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] string PickerView(UIPickerView pickerView, int accessibilityHintForComponent, bool NAME_YOUR_PARAMS = false); } } \ 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 UIPickerViewAccessibilityDelegate protocol defines methods you can implement to provide accessibility information for individual components of a picker view. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPickerViewAccessibilityDelegate_Protocol/index.html#//apple_ref/occ/intf/UIPickerViewAccessibilityDelegate"/> [iOSVersion(4)] public interface UIPickerViewAccessibilityDelegate//: NSObjectProtocol, UIPickerViewDelegate { /// <summary> /// Returns a label that identifies the picker view component. /// </summary> /// <param name="pickerView"></param> /// <param name="accessibilityLabelForComponent"></param> //[iOSVersion(4)] //[Export("pickerView")] //[Optional] //string PickerView(UIPickerView pickerView, int accessibilityLabelForComponent); /// <summary> /// Returns a hint that describes the result of performing an action on the picker view component. /// </summary> /// <param name="pickerView"></param> /// <param name="accessibilityHintForComponent"></param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(4)] //[Export("pickerView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //string PickerView(UIPickerView pickerView, int accessibilityHintForComponent, bool NAME_YOUR_PARAMS = false); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIPickerViewDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIPickerViewDelegate.cs
index 9cd72c8d..88c3a095 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIPickerViewDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIPickerViewDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The delegate of a UIPickerView object must adopt this protocol and implement at least some of its methods to provide the picker view with the data it needs to construct itself. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPickerViewDelegate_Protocol/index.html#//apple_ref/occ/intf/UIPickerViewDelegate"/> [iOSVersion(2)] public interface UIPickerViewDelegate//: NSObjectProtocol { /// <summary> /// Called by the picker view when it needs the row height to use for drawing row content. /// </summary> /// <param name="pickerView">The picker view requesting this information.</param> /// <param name="rowHeightForComponent">A zero-indexed number identifying a component of pickerView. Components are numbered left-to-right.</param> //[iOSVersion(2)] //[Export("pickerView")] //[Optional] CGFloat PickerView(UIPickerView pickerView, int rowHeightForComponent); /// <summary> /// Called by the picker view when it needs the row width to use for drawing row content. /// </summary> /// <param name="pickerView">The picker view requesting this information.</param> /// <param name="widthForComponent">A zero-indexed number identifying a component of the picker view. Components are numbered left-to-right.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("pickerView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] CGFloat PickerView(UIPickerView pickerView, int widthForComponent, bool NAME_YOUR_PARAMS = false); /// <summary> /// Called by the picker view when it needs the title to use for a given row in a given component. /// </summary> /// <param name="pickerView">An object representing the picker view requesting the data.</param> /// <param name="titleForRow">A zero-indexed number identifying a row of component. Rows are numbered top-to-bottom.</param> /// <param name="forComponent">A zero-indexed number identifying a component of pickerView. Components are numbered left-to-right.</param> //[iOSVersion(2)] //[Export("pickerView")] //[Optional] string PickerView(UIPickerView pickerView, int titleForRow, int forComponent); /// <summary> /// Called by the picker view when it needs the styled title to use for a given row in a given component. /// </summary> /// <param name="pickerView">An object representing the picker view requesting the data.</param> /// <param name="attributedTitleForRow">A zero-indexed number identifying a row of component. Rows are numbered top-to-bottom.</param> /// <param name="forComponent">A zero-indexed number identifying a component of pickerView. Components are numbered left-to-right.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("pickerView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] NSAttributedString PickerView(UIPickerView pickerView, int attributedTitleForRow, int forComponent, bool NAME_YOUR_PARAMS = false); /// <summary> /// Called by the picker view when it needs the view to use for a given row in a given component. /// </summary> /// <param name="pickerView">An object representing the picker view requesting the data.</param> /// <param name="viewForRow">A zero-indexed number identifying a row of component. Rows are numbered top-to-bottom.</param> /// <param name="forComponent">A zero-indexed number identifying a component of pickerView. Components are numbered left-to-right.</param> /// <param name="reusingView">A view object that was previously used for this row, but is now hidden and cached by the picker view.</param> //[iOSVersion(2)] //[Export("pickerView")] //[Optional] UIView PickerView(UIPickerView pickerView, int viewForRow, int forComponent, UIView reusingView); /// <summary> /// Called by the picker view when the user selects a row in a component. /// </summary> /// <param name="pickerView">An object representing the picker view requesting the data.</param> /// <param name="didSelectRow">A zero-indexed number identifying a row of component. Rows are numbered top-to-bottom.</param> /// <param name="inComponent">A zero-indexed number identifying a component of pickerView. Components are numbered left-to-right.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("pickerView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void PickerView(UIPickerView pickerView, int didSelectRow, int inComponent, int NAME_YOUR_PARAMS = 0); } } \ 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 delegate of a UIPickerView object must adopt this protocol and implement at least some of its methods to provide the picker view with the data it needs to construct itself. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPickerViewDelegate_Protocol/index.html#//apple_ref/occ/intf/UIPickerViewDelegate"/> [iOSVersion(2)] public interface UIPickerViewDelegate//: NSObjectProtocol { /// <summary> /// Called by the picker view when it needs the row height to use for drawing row content. /// </summary> /// <param name="pickerView">The picker view requesting this information.</param> /// <param name="rowHeightForComponent">A zero-indexed number identifying a component of pickerView. Components are numbered left-to-right.</param> //[iOSVersion(2)] //[Export("pickerView")] //[Optional] //CGFloat PickerView(UIPickerView pickerView, int rowHeightForComponent); /// <summary> /// Called by the picker view when it needs the row width to use for drawing row content. /// </summary> /// <param name="pickerView">The picker view requesting this information.</param> /// <param name="widthForComponent">A zero-indexed number identifying a component of the picker view. Components are numbered left-to-right.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("pickerView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //CGFloat PickerView(UIPickerView pickerView, int widthForComponent, bool NAME_YOUR_PARAMS = false); /// <summary> /// Called by the picker view when it needs the title to use for a given row in a given component. /// </summary> /// <param name="pickerView">An object representing the picker view requesting the data.</param> /// <param name="titleForRow">A zero-indexed number identifying a row of component. Rows are numbered top-to-bottom.</param> /// <param name="forComponent">A zero-indexed number identifying a component of pickerView. Components are numbered left-to-right.</param> //[iOSVersion(2)] //[Export("pickerView")] //[Optional] //string PickerView(UIPickerView pickerView, int titleForRow, int forComponent); /// <summary> /// Called by the picker view when it needs the styled title to use for a given row in a given component. /// </summary> /// <param name="pickerView">An object representing the picker view requesting the data.</param> /// <param name="attributedTitleForRow">A zero-indexed number identifying a row of component. Rows are numbered top-to-bottom.</param> /// <param name="forComponent">A zero-indexed number identifying a component of pickerView. Components are numbered left-to-right.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("pickerView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //NSAttributedString PickerView(UIPickerView pickerView, int attributedTitleForRow, int forComponent, bool NAME_YOUR_PARAMS = false); /// <summary> /// Called by the picker view when it needs the view to use for a given row in a given component. /// </summary> /// <param name="pickerView">An object representing the picker view requesting the data.</param> /// <param name="viewForRow">A zero-indexed number identifying a row of component. Rows are numbered top-to-bottom.</param> /// <param name="forComponent">A zero-indexed number identifying a component of pickerView. Components are numbered left-to-right.</param> /// <param name="reusingView">A view object that was previously used for this row, but is now hidden and cached by the picker view.</param> //[iOSVersion(2)] //[Export("pickerView")] //[Optional] //UIView PickerView(UIPickerView pickerView, int viewForRow, int forComponent, UIView reusingView); /// <summary> /// Called by the picker view when the user selects a row in a component. /// </summary> /// <param name="pickerView">An object representing the picker view requesting the data.</param> /// <param name="didSelectRow">A zero-indexed number identifying a row of component. Rows are numbered top-to-bottom.</param> /// <param name="inComponent">A zero-indexed number identifying a component of pickerView. Components are numbered left-to-right.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("pickerView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void PickerView(UIPickerView pickerView, int didSelectRow, int inComponent, int NAME_YOUR_PARAMS = 0); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIPopoverControllerDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIPopoverControllerDelegate.cs
index 9329605a..64427704 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIPopoverControllerDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIPopoverControllerDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIPopoverControllerDelegate protocol defines the methods you can implement for the delegate of a UIPopoverController object. Popover controllers notify their delegate whenever user interactions would cause the dismissal of the popover and, in some cases, give the user a chance to prevent that dismissal. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPopoverControllerDelegate_protocol/index.html#//apple_ref/occ/intf/UIPopoverControllerDelegate"/> [iOSVersion(3.2)] public interface UIPopoverControllerDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate that the popover controller needs to change the popover’s location in its view. /// </summary> /// <param name="popoverController">The popover controller changing the position of its content.</param> /// <param name="willRepositionPopoverToRect">On input, the proposed rectangle for the popover. This popover is in the coordinate space of the view in the view parameter. If you want to propose a different rectangle for the popover, put the new value in this parameter.</param> /// <param name="inView">On input, the proposed view for containing the popover. If you want to propose a different view for the popover, put the new view in this parameter.</param> //[iOSVersion(7)] //[Export("popoverController")] //[Optional] void PopoverController(UIPopoverController popoverController, UnsafeMutablePointer<CGRect> willRepositionPopoverToRect, AutoreleasingUnsafeMutablePointer<Optional<UIView>> inView); /// <summary> /// Asks the delegate if the popover should be dismissed. /// </summary> /// <param name="popoverController">The popover controller to be dismissed.</param> //[iOSVersion(3.2)] //[Export("popoverControllerShouldDismissPopover")] //[Optional] bool PopoverControllerShouldDismissPopover(UIPopoverController popoverController); /// <summary> /// Tells the delegate that the popover was dismissed. /// </summary> /// <param name="popoverController">The popover controller that was dismissed.</param> //[iOSVersion(3.2)] //[Export("popoverControllerDidDismissPopover")] //[Optional] void PopoverControllerDidDismissPopover(UIPopoverController popoverController); } } \ 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 UIPopoverControllerDelegate protocol defines the methods you can implement for the delegate of a UIPopoverController object. Popover controllers notify their delegate whenever user interactions would cause the dismissal of the popover and, in some cases, give the user a chance to prevent that dismissal. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPopoverControllerDelegate_protocol/index.html#//apple_ref/occ/intf/UIPopoverControllerDelegate"/> [iOSVersion(3.2)] public interface UIPopoverControllerDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate that the popover controller needs to change the popover’s location in its view. /// </summary> /// <param name="popoverController">The popover controller changing the position of its content.</param> /// <param name="willRepositionPopoverToRect">On input, the proposed rectangle for the popover. This popover is in the coordinate space of the view in the view parameter. If you want to propose a different rectangle for the popover, put the new value in this parameter.</param> /// <param name="inView">On input, the proposed view for containing the popover. If you want to propose a different view for the popover, put the new view in this parameter.</param> //[iOSVersion(7)] //[Export("popoverController")] //[Optional] //void PopoverController(UIPopoverController popoverController, UnsafeMutablePointer<CGRect> willRepositionPopoverToRect, AutoreleasingUnsafeMutablePointer<Optional<UIView>> inView); /// <summary> /// Asks the delegate if the popover should be dismissed. /// </summary> /// <param name="popoverController">The popover controller to be dismissed.</param> //[iOSVersion(3.2)] //[Export("popoverControllerShouldDismissPopover")] //[Optional] //bool PopoverControllerShouldDismissPopover(UIPopoverController popoverController); /// <summary> /// Tells the delegate that the popover was dismissed. /// </summary> /// <param name="popoverController">The popover controller that was dismissed.</param> //[iOSVersion(3.2)] //[Export("popoverControllerDidDismissPopover")] //[Optional] //void PopoverControllerDidDismissPopover(UIPopoverController popoverController); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIPopoverPresentationControllerDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIPopoverPresentationControllerDelegate.cs
index 74741198..6f862a7d 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIPopoverPresentationControllerDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIPopoverPresentationControllerDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The methods of the UIPopoverPresentationControllerDelegate protocol let you customize the behavior of a popover-based presentation. A popover presentation controller notifies your delegate at appropriate points during the presentation process. You can use the delegate methods to customize this process and respond to changes dynamically. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPopoverPresentationControllerDelegate_protocol/index.html#//apple_ref/occ/intf/UIPopoverPresentationControllerDelegate"/> [iOSVersion(8)] public interface UIPopoverPresentationControllerDelegate//: NSObjectProtocol, UIAdaptivePresentationControllerDelegate { /// <summary> /// Notifies the delegate that the popover is about to be presented. /// </summary> /// <param name="popoverPresentationController">The popover presentation controller that is about to display the popover.</param> //[iOSVersion(8)] //[Export("prepareForPopoverPresentation")] //[Optional] void PrepareForPopoverPresentation(UIPopoverPresentationController popoverPresentationController); /// <summary> /// Asks the delegate if the popover should be dismissed. /// </summary> /// <param name="popoverPresentationController">The popover presentation controller that is managing the popover interface.</param> //[iOSVersion(8)] //[Export("popoverPresentationControllerShouldDismissPopover")] //[Optional] bool PopoverPresentationControllerShouldDismissPopover(UIPopoverPresentationController popoverPresentationController); /// <summary> /// Tells the delegate that the popover was dismissed. /// </summary> /// <param name="popoverPresentationController">The popover presentation controller that is managing the popover interface.</param> //[iOSVersion(8)] //[Export("popoverPresentationControllerDidDismissPopover")] //[Optional] void PopoverPresentationControllerDidDismissPopover(UIPopoverPresentationController popoverPresentationController); /// <summary> /// Tells the delegate that UIKit needs to reposition the popover’s location. /// </summary> /// <param name="popoverPresentationController">The popover presentation controller that is managing the popover interface.</param> /// <param name="willRepositionPopoverToRect">On input, the new rectangle for the popover. This popover is in the coordinate space of the view in the view parameter. If you want to propose a different rectangle for the popover, put the new value in this parameter.</param> /// <param name="inView">On input, the new view for containing the popover. If you want to propose a different view for the popover, put that view in this parameter</param> //[iOSVersion(8)] //[Export("popoverPresentationController")] //[Optional] void PopoverPresentationController(UIPopoverPresentationController popoverPresentationController, UnsafeMutablePointer<CGRect> willRepositionPopoverToRect, AutoreleasingUnsafeMutablePointer<Optional<UIView>> inView); } } \ 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 methods of the UIPopoverPresentationControllerDelegate protocol let you customize the behavior of a popover-based presentation. A popover presentation controller notifies your delegate at appropriate points during the presentation process. You can use the delegate methods to customize this process and respond to changes dynamically. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPopoverPresentationControllerDelegate_protocol/index.html#//apple_ref/occ/intf/UIPopoverPresentationControllerDelegate"/> [iOSVersion(8)] public interface UIPopoverPresentationControllerDelegate//: NSObjectProtocol, UIAdaptivePresentationControllerDelegate { /// <summary> /// Notifies the delegate that the popover is about to be presented. /// </summary> /// <param name="popoverPresentationController">The popover presentation controller that is about to display the popover.</param> //[iOSVersion(8)] //[Export("prepareForPopoverPresentation")] //[Optional] //void PrepareForPopoverPresentation(UIPopoverPresentationController popoverPresentationController); /// <summary> /// Asks the delegate if the popover should be dismissed. /// </summary> /// <param name="popoverPresentationController">The popover presentation controller that is managing the popover interface.</param> //[iOSVersion(8)] //[Export("popoverPresentationControllerShouldDismissPopover")] //[Optional] //bool PopoverPresentationControllerShouldDismissPopover(UIPopoverPresentationController popoverPresentationController); /// <summary> /// Tells the delegate that the popover was dismissed. /// </summary> /// <param name="popoverPresentationController">The popover presentation controller that is managing the popover interface.</param> //[iOSVersion(8)] //[Export("popoverPresentationControllerDidDismissPopover")] //[Optional] //void PopoverPresentationControllerDidDismissPopover(UIPopoverPresentationController popoverPresentationController); /// <summary> /// Tells the delegate that UIKit needs to reposition the popover’s location. /// </summary> /// <param name="popoverPresentationController">The popover presentation controller that is managing the popover interface.</param> /// <param name="willRepositionPopoverToRect">On input, the new rectangle for the popover. This popover is in the coordinate space of the view in the view parameter. If you want to propose a different rectangle for the popover, put the new value in this parameter.</param> /// <param name="inView">On input, the new view for containing the popover. If you want to propose a different view for the popover, put that view in this parameter</param> //[iOSVersion(8)] //[Export("popoverPresentationController")] //[Optional] //void PopoverPresentationController(UIPopoverPresentationController popoverPresentationController, UnsafeMutablePointer<CGRect> willRepositionPopoverToRect, AutoreleasingUnsafeMutablePointer<Optional<UIView>> inView); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIPrintInteractionControllerDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIPrintInteractionControllerDelegate.cs
index 08df6540..dd0bd735 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIPrintInteractionControllerDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIPrintInteractionControllerDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIPrintInteractionControllerDelegate protocol is implemented by the delegate of the UIPrintInteractionController shared instance to perform a number of optional tasks. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPrintInteractionControllerDelegate_Protocol/index.html#//apple_ref/occ/intf/UIPrintInteractionControllerDelegate"/> [iOSVersion(4.2)] public interface UIPrintInteractionControllerDelegate//: NSObjectProtocol { /// <summary> /// Returns a parent view controller for managing the printing-options view. /// </summary> /// <param name="printInteractionController">The shared instance of UIPrintInteractionController that is managing the print job.</param> //[iOSVersion(4.2)] //[Export("printInteractionControllerParentViewController")] //[Optional] UIViewController PrintInteractionControllerParentViewController(UIPrintInteractionController printInteractionController); /// <summary> /// Asks the delegate for an object encapsulating the paper size and printing area to use for the print job. /// </summary> /// <param name="printInteractionController">The shared instance of UIPrintInteractionController that is managing the print job.</param> /// <param name="choosePaper">An array of UIPrintPaper objects that represent combinations of paper sizes and imageable areas supported by the selected printer.</param> //[iOSVersion(4.2)] //[Export("printInteractionController")] //[Optional] UIPrintPaper PrintInteractionController(UIPrintInteractionController printInteractionController, AnyObject[] choosePaper); /// <summary> /// Asks the delegate for a length to use when cutting the page. /// </summary> /// <param name="printInteractionController">The shared instance of UIPrintInteractionController that is managing the print job.</param> /// <param name="cutLengthForPaper">A UIPrintPaper that specifies the maximum physical and printable areas of the page.</param> //[iOSVersion(7)] //[Export("printInteractionController")] //[Optional] CGFloat PrintInteractionController(UIPrintInteractionController printInteractionController, UIPrintPaper cutLengthForPaper); /// <summary> /// Tells the delegate that the printing-options user interface is about to be displayed. /// </summary> /// <param name="printInteractionController">The shared instance of UIPrintInteractionController that is managing the print job.</param> //[iOSVersion(4.2)] //[Export("printInteractionControllerWillPresentPrinterOptions")] //[Optional] void PrintInteractionControllerWillPresentPrinterOptions(UIPrintInteractionController printInteractionController); /// <summary> /// Tells the delegate that the printing-options user interface has just been presented. /// </summary> /// <param name="printInteractionController">The shared instance of UIPrintInteractionController that is managing the print job.</param> //[iOSVersion(4.2)] //[Export("printInteractionControllerDidPresentPrinterOptions")] //[Optional] void PrintInteractionControllerDidPresentPrinterOptions(UIPrintInteractionController printInteractionController); /// <summary> /// Tells the delegate that the printing-options user interface will be dismissed. /// </summary> /// <param name="printInteractionController">The shared instance of UIPrintInteractionController that is managing the print job.</param> //[iOSVersion(4.2)] //[Export("printInteractionControllerWillDismissPrinterOptions")] //[Optional] void PrintInteractionControllerWillDismissPrinterOptions(UIPrintInteractionController printInteractionController); /// <summary> /// Tells the delegate that the printer user interface is being dismissed. /// </summary> /// <param name="printInteractionController">The shared instance of UIPrintInteractionController that is managing the print job.</param> //[iOSVersion(4.2)] //[Export("printInteractionControllerDidDismissPrinterOptions")] //[Optional] void PrintInteractionControllerDidDismissPrinterOptions(UIPrintInteractionController printInteractionController); /// <summary> /// Tells the delegate that the print job is about to start. /// </summary> /// <param name="printInteractionController">The shared instance of UIPrintInteractionController that is managing the print job.</param> //[iOSVersion(4.2)] //[Export("printInteractionControllerWillStartJob")] //[Optional] void PrintInteractionControllerWillStartJob(UIPrintInteractionController printInteractionController); /// <summary> /// Tells the delegate that the print job has ended. /// </summary> /// <param name="printInteractionController">The shared instance of UIPrintInteractionController that is managing the print job.</param> //[iOSVersion(4.2)] //[Export("printInteractionControllerDidFinishJob")] //[Optional] void PrintInteractionControllerDidFinishJob(UIPrintInteractionController printInteractionController); } } \ 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 UIPrintInteractionControllerDelegate protocol is implemented by the delegate of the UIPrintInteractionController shared instance to perform a number of optional tasks. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPrintInteractionControllerDelegate_Protocol/index.html#//apple_ref/occ/intf/UIPrintInteractionControllerDelegate"/> [iOSVersion(4.2)] public interface UIPrintInteractionControllerDelegate//: NSObjectProtocol { /// <summary> /// Returns a parent view controller for managing the printing-options view. /// </summary> /// <param name="printInteractionController">The shared instance of UIPrintInteractionController that is managing the print job.</param> //[iOSVersion(4.2)] //[Export("printInteractionControllerParentViewController")] //[Optional] //UIViewController PrintInteractionControllerParentViewController(UIPrintInteractionController printInteractionController); /// <summary> /// Asks the delegate for an object encapsulating the paper size and printing area to use for the print job. /// </summary> /// <param name="printInteractionController">The shared instance of UIPrintInteractionController that is managing the print job.</param> /// <param name="choosePaper">An array of UIPrintPaper objects that represent combinations of paper sizes and imageable areas supported by the selected printer.</param> //[iOSVersion(4.2)] //[Export("printInteractionController")] //[Optional] //UIPrintPaper PrintInteractionController(UIPrintInteractionController printInteractionController, AnyObject[] choosePaper); /// <summary> /// Asks the delegate for a length to use when cutting the page. /// </summary> /// <param name="printInteractionController">The shared instance of UIPrintInteractionController that is managing the print job.</param> /// <param name="cutLengthForPaper">A UIPrintPaper that specifies the maximum physical and printable areas of the page.</param> //[iOSVersion(7)] //[Export("printInteractionController")] //[Optional] //CGFloat PrintInteractionController(UIPrintInteractionController printInteractionController, UIPrintPaper cutLengthForPaper); /// <summary> /// Tells the delegate that the printing-options user interface is about to be displayed. /// </summary> /// <param name="printInteractionController">The shared instance of UIPrintInteractionController that is managing the print job.</param> //[iOSVersion(4.2)] //[Export("printInteractionControllerWillPresentPrinterOptions")] //[Optional] //void PrintInteractionControllerWillPresentPrinterOptions(UIPrintInteractionController printInteractionController); /// <summary> /// Tells the delegate that the printing-options user interface has just been presented. /// </summary> /// <param name="printInteractionController">The shared instance of UIPrintInteractionController that is managing the print job.</param> //[iOSVersion(4.2)] //[Export("printInteractionControllerDidPresentPrinterOptions")] //[Optional] //void PrintInteractionControllerDidPresentPrinterOptions(UIPrintInteractionController printInteractionController); /// <summary> /// Tells the delegate that the printing-options user interface will be dismissed. /// </summary> /// <param name="printInteractionController">The shared instance of UIPrintInteractionController that is managing the print job.</param> //[iOSVersion(4.2)] //[Export("printInteractionControllerWillDismissPrinterOptions")] //[Optional] //void PrintInteractionControllerWillDismissPrinterOptions(UIPrintInteractionController printInteractionController); /// <summary> /// Tells the delegate that the printer user interface is being dismissed. /// </summary> /// <param name="printInteractionController">The shared instance of UIPrintInteractionController that is managing the print job.</param> //[iOSVersion(4.2)] //[Export("printInteractionControllerDidDismissPrinterOptions")] //[Optional] //void PrintInteractionControllerDidDismissPrinterOptions(UIPrintInteractionController printInteractionController); /// <summary> /// Tells the delegate that the print job is about to start. /// </summary> /// <param name="printInteractionController">The shared instance of UIPrintInteractionController that is managing the print job.</param> //[iOSVersion(4.2)] //[Export("printInteractionControllerWillStartJob")] //[Optional] //void PrintInteractionControllerWillStartJob(UIPrintInteractionController printInteractionController); /// <summary> /// Tells the delegate that the print job has ended. /// </summary> /// <param name="printInteractionController">The shared instance of UIPrintInteractionController that is managing the print job.</param> //[iOSVersion(4.2)] //[Export("printInteractionControllerDidFinishJob")] //[Optional] //void PrintInteractionControllerDidFinishJob(UIPrintInteractionController printInteractionController); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIPrinterPickerControllerDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIPrinterPickerControllerDelegate.cs
index 7c738cd7..69c0f196 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIPrinterPickerControllerDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIPrinterPickerControllerDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIPrinterPickerControllerDelegate protocol defines methods for managing the presentation and dismissal of a printer picker interface. You also use the methods of this protocol to influence the content displayed in the picker and to respond when the user selects a printer. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPrinterPickerControllerDelegate_protocol/index.html#//apple_ref/occ/intf/UIPrinterPickerControllerDelegate"/> [iOSVersion(8)] public interface UIPrinterPickerControllerDelegate//: NSObjectProtocol { /// <summary> /// Asks the delegate if the specified printer should be included in the picker. /// </summary> /// <param name="printerPickerController">The printer picker controller that is asking the delegate for information.</param> /// <param name="shouldShowPrinter">The printer object for the delegate to consider.</param> //[iOSVersion(8)] //[Export("printerPickerController")] //[Optional] bool PrinterPickerController(UIPrinterPickerController printerPickerController, UIPrinter shouldShowPrinter); /// <summary> /// Tells the delegate that a printer was selected. /// </summary> /// <param name="printerPickerController">The printer picker controller that is providing your delegate with information.</param> //[iOSVersion(8)] //[Export("printerPickerControllerDidSelectPrinter")] //[Optional] void PrinterPickerControllerDidSelectPrinter(UIPrinterPickerController printerPickerController); /// <summary> /// Asks the delegate to provide the view controller to act as the parent of the printer picker. /// </summary> /// <param name="printerPickerController">The printer picker controller object that made the request.</param> //[iOSVersion(8)] //[Export("printerPickerControllerParentViewController")] //[Optional] UIViewController PrinterPickerControllerParentViewController(UIPrinterPickerController printerPickerController); /// <summary> /// Tells the delegate that the printer picker is about to be displayed. /// </summary> /// <param name="printerPickerController">The printer picker controller object being displayed.</param> //[iOSVersion(8)] //[Export("printerPickerControllerWillPresent")] //[Optional] void PrinterPickerControllerWillPresent(UIPrinterPickerController printerPickerController); /// <summary> /// Tells the delegate that the printer picker was displayed and is now visible. /// </summary> /// <param name="printerPickerController">The printer picker controller object being displayed.</param> //[iOSVersion(8)] //[Export("printerPickerControllerDidPresent")] //[Optional] void PrinterPickerControllerDidPresent(UIPrinterPickerController printerPickerController); /// <summary> /// Tells the delegate that the printer picker is about to be dismissed. /// </summary> /// <param name="printerPickerController">The printer picker controller object being dismissed.</param> //[iOSVersion(8)] //[Export("printerPickerControllerWillDismiss")] //[Optional] void PrinterPickerControllerWillDismiss(UIPrinterPickerController printerPickerController); /// <summary> /// Tells the delegate that the printer picker was dismissed. /// </summary> /// <param name="printerPickerController">The printer picker controller object that was dismissed.</param> //[iOSVersion(8)] //[Export("printerPickerControllerDidDismiss")] //[Optional] void PrinterPickerControllerDidDismiss(UIPrinterPickerController printerPickerController); } } \ 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 UIPrinterPickerControllerDelegate protocol defines methods for managing the presentation and dismissal of a printer picker interface. You also use the methods of this protocol to influence the content displayed in the picker and to respond when the user selects a printer. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPrinterPickerControllerDelegate_protocol/index.html#//apple_ref/occ/intf/UIPrinterPickerControllerDelegate"/> [iOSVersion(8)] public interface UIPrinterPickerControllerDelegate//: NSObjectProtocol { /// <summary> /// Asks the delegate if the specified printer should be included in the picker. /// </summary> /// <param name="printerPickerController">The printer picker controller that is asking the delegate for information.</param> /// <param name="shouldShowPrinter">The printer object for the delegate to consider.</param> //[iOSVersion(8)] //[Export("printerPickerController")] //[Optional] //bool PrinterPickerController(UIPrinterPickerController printerPickerController, UIPrinter shouldShowPrinter); /// <summary> /// Tells the delegate that a printer was selected. /// </summary> /// <param name="printerPickerController">The printer picker controller that is providing your delegate with information.</param> //[iOSVersion(8)] //[Export("printerPickerControllerDidSelectPrinter")] //[Optional] //void PrinterPickerControllerDidSelectPrinter(UIPrinterPickerController printerPickerController); /// <summary> /// Asks the delegate to provide the view controller to act as the parent of the printer picker. /// </summary> /// <param name="printerPickerController">The printer picker controller object that made the request.</param> //[iOSVersion(8)] //[Export("printerPickerControllerParentViewController")] //[Optional] //UIViewController PrinterPickerControllerParentViewController(UIPrinterPickerController printerPickerController); /// <summary> /// Tells the delegate that the printer picker is about to be displayed. /// </summary> /// <param name="printerPickerController">The printer picker controller object being displayed.</param> //[iOSVersion(8)] //[Export("printerPickerControllerWillPresent")] //[Optional] //void PrinterPickerControllerWillPresent(UIPrinterPickerController printerPickerController); /// <summary> /// Tells the delegate that the printer picker was displayed and is now visible. /// </summary> /// <param name="printerPickerController">The printer picker controller object being displayed.</param> //[iOSVersion(8)] //[Export("printerPickerControllerDidPresent")] //[Optional] //void PrinterPickerControllerDidPresent(UIPrinterPickerController printerPickerController); /// <summary> /// Tells the delegate that the printer picker is about to be dismissed. /// </summary> /// <param name="printerPickerController">The printer picker controller object being dismissed.</param> //[iOSVersion(8)] //[Export("printerPickerControllerWillDismiss")] //[Optional] //void PrinterPickerControllerWillDismiss(UIPrinterPickerController printerPickerController); /// <summary> /// Tells the delegate that the printer picker was dismissed. /// </summary> /// <param name="printerPickerController">The printer picker controller object that was dismissed.</param> //[iOSVersion(8)] //[Export("printerPickerControllerDidDismiss")] //[Optional] //void PrinterPickerControllerDidDismiss(UIPrinterPickerController printerPickerController); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIScrollViewAccessibilityDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIScrollViewAccessibilityDelegate.cs
index 58add7fd..44bb3a77 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIScrollViewAccessibilityDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIScrollViewAccessibilityDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIScrollViewAccessibilityDelegate protocol defines methods you can implement to provide accessibility information for a scrollview. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIScrollViewAccessibilityDelegate_Protocol/index.html#//apple_ref/occ/intf/UIScrollViewAccessibilityDelegate"/> [iOSVersion(6)] public interface UIScrollViewAccessibilityDelegate//: NSObjectProtocol, UIScrollViewDelegate { /// <summary> /// Returns a custom status string for the current offset. /// </summary> /// <param name="scrollView"></param> //[iOSVersion(6)] //[Export("accessibilityScrollStatusForScrollView")] //[Optional] string AccessibilityScrollStatusForScrollView(UIScrollView scrollView); } } \ 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 UIScrollViewAccessibilityDelegate protocol defines methods you can implement to provide accessibility information for a scrollview. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIScrollViewAccessibilityDelegate_Protocol/index.html#//apple_ref/occ/intf/UIScrollViewAccessibilityDelegate"/> [iOSVersion(6)] public interface UIScrollViewAccessibilityDelegate//: NSObjectProtocol, UIScrollViewDelegate { /// <summary> /// Returns a custom status string for the current offset. /// </summary> /// <param name="scrollView"></param> //[iOSVersion(6)] //[Export("accessibilityScrollStatusForScrollView")] //[Optional] //string AccessibilityScrollStatusForScrollView(UIScrollView scrollView); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIScrollViewDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIScrollViewDelegate.cs
index a0e4065b..8e74d85c 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIScrollViewDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIScrollViewDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The methods declared by the UIScrollViewDelegate protocol allow the adopting delegate to respond to messages from the UIScrollView class and thus respond to, and in some affect, operations such as scrolling, zooming, deceleration of scrolled content, and scrolling animations. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIScrollViewDelegate_Protocol/index.html#//apple_ref/occ/intf/UIScrollViewDelegate"/> [iOSVersion(2)] public interface UIScrollViewDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate when the user scrolls the content view within the receiver. /// </summary> /// <param name="scrollView">The scroll-view object in which the scrolling occurred.</param> //[iOSVersion(2)] //[Export("scrollViewDidScroll")] //[Optional] void ScrollViewDidScroll(UIScrollView scrollView); /// <summary> /// Tells the delegate when the scroll view is about to start scrolling the content. /// </summary> /// <param name="scrollView">The scroll-view object that is about to scroll the content view.</param> //[iOSVersion(2)] //[Export("scrollViewWillBeginDragging")] //[Optional] void ScrollViewWillBeginDragging(UIScrollView scrollView); /// <summary> /// Tells the delegate when the user finishes scrolling the content. /// </summary> /// <param name="scrollView">The scroll-view object where the user ended the touch..</param> /// <param name="withVelocity">The velocity of the scroll view (in points) at the moment the touch was released.</param> /// <param name="targetContentOffset">The expected offset when the scrolling action decelerates to a stop.</param> //[iOSVersion(5)] //[Export("scrollViewWillEndDragging")] //[Optional] void ScrollViewWillEndDragging(UIScrollView scrollView, CGPoint withVelocity, UnsafeMutablePointer<CGPoint> targetContentOffset); /// <summary> /// Tells the delegate when dragging ended in the scroll view. /// </summary> /// <param name="scrollView">The scroll-view object that finished scrolling the content view.</param> /// <param name="willDecelerate">true if the scrolling movement will continue, but decelerate, after a touch-up gesture during a dragging operation. If the value is false, scrolling stops immediately upon touch-up.</param> //[iOSVersion(2)] //[Export("scrollViewDidEndDragging")] //[Optional] void ScrollViewDidEndDragging(UIScrollView scrollView, bool willDecelerate); /// <summary> /// Asks the delegate if the scroll view should scroll to the top of the content. /// </summary> /// <param name="scrollView">The scroll-view object requesting this information.</param> //[iOSVersion(2)] //[Export("scrollViewShouldScrollToTop")] //[Optional] bool ScrollViewShouldScrollToTop(UIScrollView scrollView); /// <summary> /// Tells the delegate that the scroll view scrolled to the top of the content. /// </summary> /// <param name="scrollView">The scroll-view object that perform the scrolling operation.</param> //[iOSVersion(2)] //[Export("scrollViewDidScrollToTop")] //[Optional] void ScrollViewDidScrollToTop(UIScrollView scrollView); /// <summary> /// Tells the delegate that the scroll view is starting to decelerate the scrolling movement. /// </summary> /// <param name="scrollView">The scroll-view object that is decelerating the scrolling of the content view.</param> //[iOSVersion(2)] //[Export("scrollViewWillBeginDecelerating")] //[Optional] void ScrollViewWillBeginDecelerating(UIScrollView scrollView); /// <summary> /// Tells the delegate that the scroll view has ended decelerating the scrolling movement. /// </summary> /// <param name="scrollView">The scroll-view object that is decelerating the scrolling of the content view.</param> //[iOSVersion(2)] //[Export("scrollViewDidEndDecelerating")] //[Optional] void ScrollViewDidEndDecelerating(UIScrollView scrollView); /// <summary> /// Asks the delegate for the view to scale when zooming is about to occur in the scroll view. /// </summary> /// <param name="scrollView">The scroll-view object displaying the content view.</param> //[iOSVersion(2)] //[Export("viewForZoomingInScrollView")] //[Optional] UIView ViewForZoomingInScrollView(UIScrollView scrollView); /// <summary> /// Tells the delegate that zooming of the content in the scroll view is about to commence. /// </summary> /// <param name="scrollView">The scroll-view object displaying the content view.</param> /// <param name="withView">The view object whose content is about to be zoomed.</param> //[iOSVersion(3.2)] //[Export("scrollViewWillBeginZooming")] //[Optional] void ScrollViewWillBeginZooming(UIScrollView scrollView, UIView withView); /// <summary> /// Tells the delegate when zooming of the content in the scroll view completed. /// </summary> /// <param name="scrollView">The scroll-view object displaying the content view.</param> /// <param name="withView">The view object representing that part of the content view that needs to be scaled.</param> /// <param name="atScale">The scale factor to use for scaling; this value must be between the limits established by the UIScrollView properties maximumZoomScale and minimumZoomScale.</param> //[iOSVersion(2)] //[Export("scrollViewDidEndZooming")] //[Optional] void ScrollViewDidEndZooming(UIScrollView scrollView, UIView withView, CGFloat atScale); /// <summary> /// Tells the delegate that the scroll view’s zoom factor changed. /// </summary> /// <param name="scrollView">The scroll-view object whose zoom factor changed.</param> //[iOSVersion(3.2)] //[Export("scrollViewDidZoom")] //[Optional] void ScrollViewDidZoom(UIScrollView scrollView); /// <summary> /// Tells the delegate when a scrolling animation in the scroll view concludes. /// </summary> /// <param name="scrollView">The scroll-view object that is performing the scrolling animation.</param> //[iOSVersion(2)] //[Export("scrollViewDidEndScrollingAnimation")] //[Optional] void ScrollViewDidEndScrollingAnimation(UIScrollView scrollView); } } \ 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 methods declared by the UIScrollViewDelegate protocol allow the adopting delegate to respond to messages from the UIScrollView class and thus respond to, and in some affect, operations such as scrolling, zooming, deceleration of scrolled content, and scrolling animations. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIScrollViewDelegate_Protocol/index.html#//apple_ref/occ/intf/UIScrollViewDelegate"/> [iOSVersion(2)] public interface UIScrollViewDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate when the user scrolls the content view within the receiver. /// </summary> /// <param name="scrollView">The scroll-view object in which the scrolling occurred.</param> //[iOSVersion(2)] //[Export("scrollViewDidScroll")] //[Optional] //void ScrollViewDidScroll(UIScrollView scrollView); /// <summary> /// Tells the delegate when the scroll view is about to start scrolling the content. /// </summary> /// <param name="scrollView">The scroll-view object that is about to scroll the content view.</param> //[iOSVersion(2)] //[Export("scrollViewWillBeginDragging")] //[Optional] //void ScrollViewWillBeginDragging(UIScrollView scrollView); /// <summary> /// Tells the delegate when the user finishes scrolling the content. /// </summary> /// <param name="scrollView">The scroll-view object where the user ended the touch..</param> /// <param name="withVelocity">The velocity of the scroll view (in points) at the moment the touch was released.</param> /// <param name="targetContentOffset">The expected offset when the scrolling action decelerates to a stop.</param> //[iOSVersion(5)] //[Export("scrollViewWillEndDragging")] //[Optional] //void ScrollViewWillEndDragging(UIScrollView scrollView, CGPoint withVelocity, UnsafeMutablePointer<CGPoint> targetContentOffset); /// <summary> /// Tells the delegate when dragging ended in the scroll view. /// </summary> /// <param name="scrollView">The scroll-view object that finished scrolling the content view.</param> /// <param name="willDecelerate">true if the scrolling movement will continue, but decelerate, after a touch-up gesture during a dragging operation. If the value is false, scrolling stops immediately upon touch-up.</param> //[iOSVersion(2)] //[Export("scrollViewDidEndDragging")] //[Optional] //void ScrollViewDidEndDragging(UIScrollView scrollView, bool willDecelerate); /// <summary> /// Asks the delegate if the scroll view should scroll to the top of the content. /// </summary> /// <param name="scrollView">The scroll-view object requesting this information.</param> //[iOSVersion(2)] //[Export("scrollViewShouldScrollToTop")] //[Optional] //bool ScrollViewShouldScrollToTop(UIScrollView scrollView); /// <summary> /// Tells the delegate that the scroll view scrolled to the top of the content. /// </summary> /// <param name="scrollView">The scroll-view object that perform the scrolling operation.</param> //[iOSVersion(2)] //[Export("scrollViewDidScrollToTop")] //[Optional] //void ScrollViewDidScrollToTop(UIScrollView scrollView); /// <summary> /// Tells the delegate that the scroll view is starting to decelerate the scrolling movement. /// </summary> /// <param name="scrollView">The scroll-view object that is decelerating the scrolling of the content view.</param> //[iOSVersion(2)] //[Export("scrollViewWillBeginDecelerating")] //[Optional] //void ScrollViewWillBeginDecelerating(UIScrollView scrollView); /// <summary> /// Tells the delegate that the scroll view has ended decelerating the scrolling movement. /// </summary> /// <param name="scrollView">The scroll-view object that is decelerating the scrolling of the content view.</param> //[iOSVersion(2)] //[Export("scrollViewDidEndDecelerating")] //[Optional] //void ScrollViewDidEndDecelerating(UIScrollView scrollView); /// <summary> /// Asks the delegate for the view to scale when zooming is about to occur in the scroll view. /// </summary> /// <param name="scrollView">The scroll-view object displaying the content view.</param> //[iOSVersion(2)] //[Export("viewForZoomingInScrollView")] //[Optional] //UIView ViewForZoomingInScrollView(UIScrollView scrollView); /// <summary> /// Tells the delegate that zooming of the content in the scroll view is about to commence. /// </summary> /// <param name="scrollView">The scroll-view object displaying the content view.</param> /// <param name="withView">The view object whose content is about to be zoomed.</param> //[iOSVersion(3.2)] //[Export("scrollViewWillBeginZooming")] //[Optional] //void ScrollViewWillBeginZooming(UIScrollView scrollView, UIView withView); /// <summary> /// Tells the delegate when zooming of the content in the scroll view completed. /// </summary> /// <param name="scrollView">The scroll-view object displaying the content view.</param> /// <param name="withView">The view object representing that part of the content view that needs to be scaled.</param> /// <param name="atScale">The scale factor to use for scaling; this value must be between the limits established by the UIScrollView properties maximumZoomScale and minimumZoomScale.</param> //[iOSVersion(2)] //[Export("scrollViewDidEndZooming")] //[Optional] //void ScrollViewDidEndZooming(UIScrollView scrollView, UIView withView, CGFloat atScale); /// <summary> /// Tells the delegate that the scroll view’s zoom factor changed. /// </summary> /// <param name="scrollView">The scroll-view object whose zoom factor changed.</param> //[iOSVersion(3.2)] //[Export("scrollViewDidZoom")] //[Optional] //void ScrollViewDidZoom(UIScrollView scrollView); /// <summary> /// Tells the delegate when a scrolling animation in the scroll view concludes. /// </summary> /// <param name="scrollView">The scroll-view object that is performing the scrolling animation.</param> //[iOSVersion(2)] //[Export("scrollViewDidEndScrollingAnimation")] //[Optional] //void ScrollViewDidEndScrollingAnimation(UIScrollView scrollView); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UISearchBarDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UISearchBarDelegate.cs
index fd6a1c1e..c1279b06 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UISearchBarDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UISearchBarDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UISearchBarDelegate protocol defines the optional methods you implement to make a UISearchBar control functional. A UISearchBar object provides the user interface for a search field on a bar, but it’s the application’s responsibility to implement the actions when buttons are tapped. At a minimum, the delegate needs to perform the actual search when text is entered in the text field. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UISearchBarDelegate_Protocol/index.html#//apple_ref/occ/intf/UISearchBarDelegate"/> [iOSVersion(2)] public interface UISearchBarDelegate//: NSObjectProtocol, UIBarPositioningDelegate { /// <summary> /// Tells the delegate that the user changed the search text. /// </summary> /// <param name="searchBar">The search bar that is being edited.</param> /// <param name="textDidChange">The current text in the search text field.</param> //[iOSVersion(2)] //[Export("searchBar")] //[Optional] void SearchBar(UISearchBar searchBar, string textDidChange); /// <summary> /// Ask the delegate if text in a specified range should be replaced with given text. /// </summary> /// <param name="searchBar">The search bar that is being edited.</param> /// <param name="shouldChangeTextInRange">The range of the text to be changed.</param> /// <param name="replacementText">The text to replace existing text in range.</param> //[iOSVersion(3)] //[Export("searchBar")] //[Optional] bool SearchBar(UISearchBar searchBar, NSRange shouldChangeTextInRange, string replacementText); /// <summary> /// Asks the delegate if editing should begin in the specified search bar. /// </summary> /// <param name="searchBar">The search bar that is being edited.</param> //[iOSVersion(2)] //[Export("searchBarShouldBeginEditing")] //[Optional] bool SearchBarShouldBeginEditing(UISearchBar searchBar); /// <summary> /// Tells the delegate when the user begins editing the search text. /// </summary> /// <param name="searchBar">The search bar that is being edited.</param> //[iOSVersion(2)] //[Export("searchBarTextDidBeginEditing")] //[Optional] void SearchBarTextDidBeginEditing(UISearchBar searchBar); /// <summary> /// Asks the delegate if editing should stop in the specified search bar. /// </summary> /// <param name="searchBar">The search bar that is being edited.</param> //[iOSVersion(2)] //[Export("searchBarShouldEndEditing")] //[Optional] bool SearchBarShouldEndEditing(UISearchBar searchBar); /// <summary> /// Tells the delegate that the user finished editing the search text. /// </summary> /// <param name="searchBar">The search bar that is being edited.</param> //[iOSVersion(2)] //[Export("searchBarTextDidEndEditing")] //[Optional] void SearchBarTextDidEndEditing(UISearchBar searchBar); /// <summary> /// Tells the delegate that the bookmark button was tapped. /// </summary> /// <param name="searchBar">The search bar that was tapped.</param> //[iOSVersion(2)] //[Export("searchBarBookmarkButtonClicked")] //[Optional] void SearchBarBookmarkButtonClicked(UISearchBar searchBar); /// <summary> /// Tells the delegate that the cancel button was tapped. /// </summary> /// <param name="searchBar">The search bar that was tapped.</param> //[iOSVersion(2)] //[Export("searchBarCancelButtonClicked")] //[Optional] void SearchBarCancelButtonClicked(UISearchBar searchBar); /// <summary> /// Tells the delegate that the search button was tapped. /// </summary> /// <param name="searchBar">The search bar that was tapped.</param> //[iOSVersion(2)] //[Export("searchBarSearchButtonClicked")] //[Optional] void SearchBarSearchButtonClicked(UISearchBar searchBar); /// <summary> /// Tells the delegate that the search results list button was tapped. /// </summary> /// <param name="searchBar">The search bar that was tapped.</param> //[iOSVersion(3.2)] //[Export("searchBarResultsListButtonClicked")] //[Optional] void SearchBarResultsListButtonClicked(UISearchBar searchBar); /// <summary> /// Tells the delegate that the scope button selection changed. /// </summary> /// <param name="searchBar">The search bar that was tapped.</param> /// <param name="selectedScopeButtonIndexDidChange">The index of the selected scope button (see selectedScopeButtonIndex).</param> //[iOSVersion(3)] //[Export("searchBar")] //[Optional] void SearchBar(UISearchBar searchBar, int selectedScopeButtonIndexDidChange); } } \ 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 UISearchBarDelegate protocol defines the optional methods you implement to make a UISearchBar control functional. A UISearchBar object provides the user interface for a search field on a bar, but it’s the application’s responsibility to implement the actions when buttons are tapped. At a minimum, the delegate needs to perform the actual search when text is entered in the text field. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UISearchBarDelegate_Protocol/index.html#//apple_ref/occ/intf/UISearchBarDelegate"/> [iOSVersion(2)] public interface UISearchBarDelegate//: NSObjectProtocol, UIBarPositioningDelegate { /// <summary> /// Tells the delegate that the user changed the search text. /// </summary> /// <param name="searchBar">The search bar that is being edited.</param> /// <param name="textDidChange">The current text in the search text field.</param> //[iOSVersion(2)] //[Export("searchBar")] //[Optional] //void SearchBar(UISearchBar searchBar, string textDidChange); /// <summary> /// Ask the delegate if text in a specified range should be replaced with given text. /// </summary> /// <param name="searchBar">The search bar that is being edited.</param> /// <param name="shouldChangeTextInRange">The range of the text to be changed.</param> /// <param name="replacementText">The text to replace existing text in range.</param> //[iOSVersion(3)] //[Export("searchBar")] //[Optional] //bool SearchBar(UISearchBar searchBar, NSRange shouldChangeTextInRange, string replacementText); /// <summary> /// Asks the delegate if editing should begin in the specified search bar. /// </summary> /// <param name="searchBar">The search bar that is being edited.</param> //[iOSVersion(2)] //[Export("searchBarShouldBeginEditing")] //[Optional] //bool SearchBarShouldBeginEditing(UISearchBar searchBar); /// <summary> /// Tells the delegate when the user begins editing the search text. /// </summary> /// <param name="searchBar">The search bar that is being edited.</param> //[iOSVersion(2)] //[Export("searchBarTextDidBeginEditing")] //[Optional] //void SearchBarTextDidBeginEditing(UISearchBar searchBar); /// <summary> /// Asks the delegate if editing should stop in the specified search bar. /// </summary> /// <param name="searchBar">The search bar that is being edited.</param> //[iOSVersion(2)] //[Export("searchBarShouldEndEditing")] //[Optional] //bool SearchBarShouldEndEditing(UISearchBar searchBar); /// <summary> /// Tells the delegate that the user finished editing the search text. /// </summary> /// <param name="searchBar">The search bar that is being edited.</param> //[iOSVersion(2)] //[Export("searchBarTextDidEndEditing")] //[Optional] //void SearchBarTextDidEndEditing(UISearchBar searchBar); /// <summary> /// Tells the delegate that the bookmark button was tapped. /// </summary> /// <param name="searchBar">The search bar that was tapped.</param> //[iOSVersion(2)] //[Export("searchBarBookmarkButtonClicked")] //[Optional] //void SearchBarBookmarkButtonClicked(UISearchBar searchBar); /// <summary> /// Tells the delegate that the cancel button was tapped. /// </summary> /// <param name="searchBar">The search bar that was tapped.</param> //[iOSVersion(2)] //[Export("searchBarCancelButtonClicked")] //[Optional] //void SearchBarCancelButtonClicked(UISearchBar searchBar); /// <summary> /// Tells the delegate that the search button was tapped. /// </summary> /// <param name="searchBar">The search bar that was tapped.</param> //[iOSVersion(2)] //[Export("searchBarSearchButtonClicked")] //[Optional] //void SearchBarSearchButtonClicked(UISearchBar searchBar); /// <summary> /// Tells the delegate that the search results list button was tapped. /// </summary> /// <param name="searchBar">The search bar that was tapped.</param> //[iOSVersion(3.2)] //[Export("searchBarResultsListButtonClicked")] //[Optional] //void SearchBarResultsListButtonClicked(UISearchBar searchBar); /// <summary> /// Tells the delegate that the scope button selection changed. /// </summary> /// <param name="searchBar">The search bar that was tapped.</param> /// <param name="selectedScopeButtonIndexDidChange">The index of the selected scope button (see selectedScopeButtonIndex).</param> //[iOSVersion(3)] //[Export("searchBar")] //[Optional] //void SearchBar(UISearchBar searchBar, int selectedScopeButtonIndexDidChange); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UISearchControllerDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UISearchControllerDelegate.cs
index c8e541ef..b72e5863 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UISearchControllerDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UISearchControllerDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// This protocol defines delegate methods for UISearchController objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UISearchControllerDelegate_Ref/index.html#//apple_ref/occ/intf/UISearchControllerDelegate"/> [iOSVersion(8)] public interface UISearchControllerDelegate//: NSObjectProtocol { /// <summary> /// Called when the search controller has been automatically dismissed. /// </summary> /// <param name="searchController">The UISearchController object that was dismissed.</param> //[iOSVersion(8)] //[Export("didDismissSearchController")] //[Optional] void DidDismissSearchController(UISearchController searchController); /// <summary> /// Called when the search controller has been automatically presented. /// </summary> /// <param name="searchController">The UISearchController object that was presented.</param> //[iOSVersion(8)] //[Export("didPresentSearchController")] //[Optional] void DidPresentSearchController(UISearchController searchController); /// <summary> /// Presents the designated search controller. /// </summary> /// <param name="searchController">The UISearchController object to be presented.</param> //[iOSVersion(8)] //[Export("presentSearchController")] //[Optional] void PresentSearchController(UISearchController searchController); /// <summary> /// Called when the search controller is to be automatically dismissed. /// </summary> /// <param name="searchController">The UISearchController object to be dismissed.</param> //[iOSVersion(8)] //[Export("willDismissSearchController")] //[Optional] void WillDismissSearchController(UISearchController searchController); /// <summary> /// Called when the search controller is to be automatically displayed. /// </summary> /// <param name="searchController">The search controller to present.</param> //[iOSVersion(8)] //[Export("willPresentSearchController")] //[Optional] void WillPresentSearchController(UISearchController searchController); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// This protocol defines delegate methods for UISearchController objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UISearchControllerDelegate_Ref/index.html#//apple_ref/occ/intf/UISearchControllerDelegate"/> [iOSVersion(8)] public interface UISearchControllerDelegate//: NSObjectProtocol { /// <summary> /// Called when the search controller has been automatically dismissed. /// </summary> /// <param name="searchController">The UISearchController object that was dismissed.</param> //[iOSVersion(8)] //[Export("didDismissSearchController")] //[Optional] //void DidDismissSearchController(UISearchController searchController); /// <summary> /// Called when the search controller has been automatically presented. /// </summary> /// <param name="searchController">The UISearchController object that was presented.</param> //[iOSVersion(8)] //[Export("didPresentSearchController")] //[Optional] //void DidPresentSearchController(UISearchController searchController); /// <summary> /// Presents the designated search controller. /// </summary> /// <param name="searchController">The UISearchController object to be presented.</param> //[iOSVersion(8)] //[Export("presentSearchController")] //[Optional] //void PresentSearchController(UISearchController searchController); /// <summary> /// Called when the search controller is to be automatically dismissed. /// </summary> /// <param name="searchController">The UISearchController object to be dismissed.</param> //[iOSVersion(8)] //[Export("willDismissSearchController")] //[Optional] //void WillDismissSearchController(UISearchController searchController); /// <summary> /// Called when the search controller is to be automatically displayed. /// </summary> /// <param name="searchController">The search controller to present.</param> //[iOSVersion(8)] //[Export("willPresentSearchController")] //[Optional] //void WillPresentSearchController(UISearchController searchController); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UISearchDisplayDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UISearchDisplayDelegate.cs
index b69d97bf..7a23a7f1 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UISearchDisplayDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UISearchDisplayDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// This protocol defines delegate methods for UISearchDisplayController objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UISearchDisplayDelegate_Protocol/index.html#//apple_ref/occ/intf/UISearchDisplayDelegate"/> [iOSVersion(3)] public interface UISearchDisplayDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate that the controller is about to begin searching. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> //[iOSVersion(3)] //[Export("searchDisplayControllerWillBeginSearch")] //[Optional] void SearchDisplayControllerWillBeginSearch(UISearchDisplayController controller); /// <summary> /// Tells the delegate that the controller has started searching. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> //[iOSVersion(3)] //[Export("searchDisplayControllerDidBeginSearch")] //[Optional] void SearchDisplayControllerDidBeginSearch(UISearchDisplayController controller); /// <summary> /// Tells the delegate that the controller is about to end searching. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> //[iOSVersion(3)] //[Export("searchDisplayControllerWillEndSearch")] //[Optional] void SearchDisplayControllerWillEndSearch(UISearchDisplayController controller); /// <summary> /// Tells the delegate that the controller has finished searching. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> //[iOSVersion(3)] //[Export("searchDisplayControllerDidEndSearch")] //[Optional] void SearchDisplayControllerDidEndSearch(UISearchDisplayController controller); /// <summary> /// Tells the delegate that the controller has loaded its table view. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> /// <param name="didLoadSearchResultsTableView">The search display controller’s table view.</param> //[iOSVersion(3)] //[Export("searchDisplayController")] //[Optional] void SearchDisplayController(UISearchDisplayController controller, UITableView didLoadSearchResultsTableView); /// <summary> /// Tells the delegate that the controller is about to unload its table view. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> /// <param name="willUnloadSearchResultsTableView">The search display controller’s table view.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("searchDisplayController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void SearchDisplayController(UISearchDisplayController controller, UITableView willUnloadSearchResultsTableView, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the controller is about to display its table view. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> /// <param name="willShowSearchResultsTableView">The search display controller’s table view.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("searchDisplayController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void SearchDisplayController(UISearchDisplayController controller, UITableView willShowSearchResultsTableView, int NAME_YOUR_PARAMS = 0); /// <summary> /// Tells the delegate that the controller just displayed its table view. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> /// <param name="didShowSearchResultsTableView">The search display controller’s table view.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("searchDisplayController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void SearchDisplayController(UISearchDisplayController controller, UITableView didShowSearchResultsTableView, string NAME_YOUR_PARAMS = ""); /// <summary> /// Tells the delegate that the controller is about to hide its table view. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> /// <param name="willHideSearchResultsTableView">The search display controller’s table view.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("searchDisplayController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void SearchDisplayController(UISearchDisplayController controller, UITableView willHideSearchResultsTableView, double NAME_YOUR_PARAMS = 4.2); /// <summary> /// Tells the delegate that the controller just hid its table view. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> /// <param name="didHideSearchResultsTableView">The search display controller’s table view.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("searchDisplayController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void SearchDisplayController(UISearchDisplayController controller, UITableView didHideSearchResultsTableView, uint NAME_YOUR_PARAMS = 4.2); /// <summary> /// Asks the delegate if the table view should be reloaded for a given search string. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> /// <param name="shouldReloadTableForSearchString">The string in the search bar.</param> //[iOSVersion(3)] //[Export("searchDisplayController")] //[Optional] bool SearchDisplayController(UISearchDisplayController controller, string shouldReloadTableForSearchString); /// <summary> /// Asks the delegate if the table view should be reloaded for a given scope. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> /// <param name="shouldReloadTableForSearchScope">The index of the selected scope button in the search bar.</param> //[iOSVersion(3)] //[Export("searchDisplayController")] //[Optional] bool SearchDisplayController(UISearchDisplayController controller, int shouldReloadTableForSearchScope); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// This protocol defines delegate methods for UISearchDisplayController objects. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UISearchDisplayDelegate_Protocol/index.html#//apple_ref/occ/intf/UISearchDisplayDelegate"/> [iOSVersion(3)] public interface UISearchDisplayDelegate//: NSObjectProtocol { /// <summary> /// Tells the delegate that the controller is about to begin searching. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> //[iOSVersion(3)] //[Export("searchDisplayControllerWillBeginSearch")] //[Optional] //void SearchDisplayControllerWillBeginSearch(UISearchDisplayController controller); /// <summary> /// Tells the delegate that the controller has started searching. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> //[iOSVersion(3)] //[Export("searchDisplayControllerDidBeginSearch")] //[Optional] //void SearchDisplayControllerDidBeginSearch(UISearchDisplayController controller); /// <summary> /// Tells the delegate that the controller is about to end searching. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> //[iOSVersion(3)] //[Export("searchDisplayControllerWillEndSearch")] //[Optional] //void SearchDisplayControllerWillEndSearch(UISearchDisplayController controller); /// <summary> /// Tells the delegate that the controller has finished searching. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> //[iOSVersion(3)] //[Export("searchDisplayControllerDidEndSearch")] //[Optional] //void SearchDisplayControllerDidEndSearch(UISearchDisplayController controller); /// <summary> /// Tells the delegate that the controller has loaded its table view. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> /// <param name="didLoadSearchResultsTableView">The search display controller’s table view.</param> //[iOSVersion(3)] //[Export("searchDisplayController")] //[Optional] //void SearchDisplayController(UISearchDisplayController controller, UITableView didLoadSearchResultsTableView); /// <summary> /// Tells the delegate that the controller is about to unload its table view. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> /// <param name="willUnloadSearchResultsTableView">The search display controller’s table view.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("searchDisplayController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void SearchDisplayController(UISearchDisplayController controller, UITableView willUnloadSearchResultsTableView, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the controller is about to display its table view. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> /// <param name="willShowSearchResultsTableView">The search display controller’s table view.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("searchDisplayController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void SearchDisplayController(UISearchDisplayController controller, UITableView willShowSearchResultsTableView, int NAME_YOUR_PARAMS = 0); /// <summary> /// Tells the delegate that the controller just displayed its table view. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> /// <param name="didShowSearchResultsTableView">The search display controller’s table view.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("searchDisplayController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void SearchDisplayController(UISearchDisplayController controller, UITableView didShowSearchResultsTableView, string NAME_YOUR_PARAMS = ""); /// <summary> /// Tells the delegate that the controller is about to hide its table view. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> /// <param name="willHideSearchResultsTableView">The search display controller’s table view.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("searchDisplayController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void SearchDisplayController(UISearchDisplayController controller, UITableView willHideSearchResultsTableView, double NAME_YOUR_PARAMS = 4.2); /// <summary> /// Tells the delegate that the controller just hid its table view. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> /// <param name="didHideSearchResultsTableView">The search display controller’s table view.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("searchDisplayController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void SearchDisplayController(UISearchDisplayController controller, UITableView didHideSearchResultsTableView, uint NAME_YOUR_PARAMS = 4.2); /// <summary> /// Asks the delegate if the table view should be reloaded for a given search string. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> /// <param name="shouldReloadTableForSearchString">The string in the search bar.</param> //[iOSVersion(3)] //[Export("searchDisplayController")] //[Optional] //bool SearchDisplayController(UISearchDisplayController controller, string shouldReloadTableForSearchString); /// <summary> /// Asks the delegate if the table view should be reloaded for a given scope. /// </summary> /// <param name="controller">The search display controller for which the receiver is the delegate.</param> /// <param name="shouldReloadTableForSearchScope">The index of the selected scope button in the search bar.</param> //[iOSVersion(3)] //[Export("searchDisplayController")] //[Optional] //bool SearchDisplayController(UISearchDisplayController controller, int shouldReloadTableForSearchScope); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UISplitViewControllerDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UISplitViewControllerDelegate.cs
index b812cee6..de3f8ccc 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UISplitViewControllerDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UISplitViewControllerDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UISplitViewControllerDelegate protocol defines methods that allow you to manage changes to a split view interface. Use the methods of this protocol to respond to changes in the current display mode and to the current interface orientation. When the split view interface collapses and expands, or when a new view controller is added to the interface, you can also use these methods to configure the child view controllers appropriately. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UISplitViewControllerDelegate_protocol/index.html#//apple_ref/occ/intf/UISplitViewControllerDelegate"/> [iOSVersion(3.2)] public interface UISplitViewControllerDelegate//: { /// <summary> /// Tells the delegate that the display mode for the split view controller is about to change. /// </summary> /// <param name="svc">The split view controller whose display mode is changing.</param> /// <param name="willChangeToDisplayMode">The new display mode that is about to be applied to the split view controller.</param> //[iOSVersion(8)] //[Export("splitViewController")] //[Optional] void SplitViewController(UISplitViewController svc, UISplitViewControllerDisplayMode willChangeToDisplayMode); /// <summary> /// Asks the delegate to provide the display mode to apply when a split view controller action occurs. /// </summary> /// <param name="svc">The split view controller whose action may be triggered. Use this object to obtain the current display mode and configuration of the split view interface.</param> //[iOSVersion(8)] //[Export("targetDisplayModeForActionInSplitViewController")] //[Optional] UISplitViewControllerDisplayMode TargetDisplayModeForActionInSplitViewController(UISplitViewController svc); /// <summary> /// Asks the delegate for the orientation to use when presenting the split view controller. /// </summary> /// <param name="splitViewController">The split view controller that is about to be presented onscreen.</param> //[iOSVersion(7)] //[Export("splitViewControllerPreferredInterfaceOrientationForPresentation")] //[Optional] UIInterfaceOrientation SplitViewControllerPreferredInterfaceOrientationForPresentation(UISplitViewController splitViewController); /// <summary> /// Asks the delegate to specify the interface orientations that the split view controller supports. /// </summary> /// <param name="splitViewController">The split view controller.</param> //[iOSVersion(7)] //[Export("splitViewControllerSupportedInterfaceOrientations")] //[Optional] int SplitViewControllerSupportedInterfaceOrientations(UISplitViewController splitViewController); /// <summary> /// Asks the delegate to provide the single view controller to display after the split view interface collapses. /// </summary> /// <param name="splitViewController">The split view controller whose interface is collapsing.</param> //[iOSVersion(8)] //[Export("primaryViewControllerForCollapsingSplitViewController")] //[Optional] UIViewController PrimaryViewControllerForCollapsingSplitViewController(UISplitViewController splitViewController); /// <summary> /// Asks the delegate to adjust the primary view controller and to incorporate the secondary view controller into the collapsed interface. /// </summary> /// <param name="splitViewController">The split view controller whose interface is collapsing.</param> /// <param name="collapseSecondaryViewController">The secondary view controller of the split view interface.</param> /// <param name="ontoPrimaryViewController">The primary view controller of the split view interface. If you implement the primaryViewControllerForCollapsingSplitViewController: method in your delegate, this object is the one returned by that method.</param> //[iOSVersion(8)] //[Export("splitViewController")] //[Optional] bool SplitViewController(UISplitViewController splitViewController, UIViewController collapseSecondaryViewController, UIViewController ontoPrimaryViewController); /// <summary> /// Asks the delegate to provide the view controller to display in the primary position when the split view interface expands. /// </summary> /// <param name="splitViewController">The split view controller whose interface is expanding.</param> //[iOSVersion(8)] //[Export("primaryViewControllerForExpandingSplitViewController")] //[Optional] UIViewController PrimaryViewControllerForExpandingSplitViewController(UISplitViewController splitViewController); /// <summary> /// Asks the delegate to provide the new secondary view controller for the split view interface. /// </summary> /// <param name="splitViewController">The split view controller whose interface is expanding.</param> /// <param name="separateSecondaryViewControllerFromPrimaryViewController">The primary view controller in the expanded split view interface. If you implement the primaryViewControllerForExpandingSplitViewController: method in your delegate, this object is the one returned by that method.</param> //[iOSVersion(8)] //[Export("splitViewController")] //[Optional] UIViewController SplitViewController(UISplitViewController splitViewController, UIViewController separateSecondaryViewControllerFromPrimaryViewController); /// <summary> /// Asks the delegate if it wants to do the work of displaying a view controller in the primary position of the split view interface. /// </summary> /// <param name="splitViewController">The split view controller whose primary view controller is being updated.</param> /// <param name="showViewController">The view controller being displayed in the primary position.</param> /// <param name="sender">The object that made the request.</param> //[iOSVersion(8)] //[Export("splitViewController")] //[Optional] bool SplitViewController(UISplitViewController splitViewController, UIViewController showViewController, AnyObject sender); /// <summary> /// Asks the delegate if it wants to do the work of displaying a view controller in the secondary position of the split view interface. /// </summary> /// <param name="splitViewController">The split view controller whose secondary view controller is being updated.</param> /// <param name="showDetailViewController">The view controller being displayed in the secondary position.</param> /// <param name="sender">The object that made the request.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(8)] //[Export("splitViewController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] bool SplitViewController(UISplitViewController splitViewController, UIViewController showDetailViewController, AnyObject sender, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate whether the first view controller should be hidden for the specified orientation. /// </summary> /// <param name="svc">The split view controller that owns the first view controller.</param> /// <param name="shouldHideViewController">The first view controller in the array of view controllers.</param> /// <param name="inOrientation">The orientation being considered.</param> //[iOSVersion(5)] //[Export("splitViewController")] //[Optional] bool SplitViewController(UISplitViewController svc, UIViewController shouldHideViewController, UIInterfaceOrientation inOrientation); /// <summary> /// Tells the delegate that the specified view controller is about to be hidden. /// </summary> /// <param name="svc">The split view controller that owns the specified view controller.</param> /// <param name="willHideViewController">The view controller being hidden.</param> /// <param name="withBarButtonItem">A button you can add to your toolbar.</param> /// <param name="forPopoverController">The popover controller that uses taps in barButtonItem to display the specified view controller.</param> //[iOSVersion(2)] //[Export("splitViewController")] //[Optional] void SplitViewController(UISplitViewController svc, UIViewController willHideViewController, UIBarButtonItem withBarButtonItem, UIPopoverController forPopoverController); /// <summary> /// Tells the delegate that the specified view controller is about to be shown again. /// </summary> /// <param name="svc">The split view controller that owns the specified view controller.</param> /// <param name="willShowViewController">The view controller being hidden.</param> /// <param name="invalidatingBarButtonItem">The button used to display the view controller while it was hidden.</param> //[iOSVersion(2)] //[Export("splitViewController")] //[Optional] void SplitViewController(UISplitViewController svc, UIViewController willShowViewController, UIBarButtonItem invalidatingBarButtonItem); /// <summary> /// Tells the delegate that the hidden view controller is about to be displayed in a popover. /// </summary> /// <param name="svc">The split view controller that owns the hidden view controller.</param> /// <param name="popoverController">The popover controller that is about to display the view controller.</param> /// <param name="willPresentViewController">The view controller to be displayed in the popover.</param> //[iOSVersion(2)] //[Export("splitViewController")] //[Optional] void SplitViewController(UISplitViewController svc, UIPopoverController popoverController, UIViewController willPresentViewController); } } \ 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 UISplitViewControllerDelegate protocol defines methods that allow you to manage changes to a split view interface. Use the methods of this protocol to respond to changes in the current display mode and to the current interface orientation. When the split view interface collapses and expands, or when a new view controller is added to the interface, you can also use these methods to configure the child view controllers appropriately. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UISplitViewControllerDelegate_protocol/index.html#//apple_ref/occ/intf/UISplitViewControllerDelegate"/> [iOSVersion(3.2)] public interface UISplitViewControllerDelegate//: { /// <summary> /// Tells the delegate that the display mode for the split view controller is about to change. /// </summary> /// <param name="svc">The split view controller whose display mode is changing.</param> /// <param name="willChangeToDisplayMode">The new display mode that is about to be applied to the split view controller.</param> //[iOSVersion(8)] //[Export("splitViewController")] //[Optional] //void SplitViewController(UISplitViewController svc, UISplitViewControllerDisplayMode willChangeToDisplayMode); /// <summary> /// Asks the delegate to provide the display mode to apply when a split view controller action occurs. /// </summary> /// <param name="svc">The split view controller whose action may be triggered. Use this object to obtain the current display mode and configuration of the split view interface.</param> //[iOSVersion(8)] //[Export("targetDisplayModeForActionInSplitViewController")] //[Optional] //UISplitViewControllerDisplayMode TargetDisplayModeForActionInSplitViewController(UISplitViewController svc); /// <summary> /// Asks the delegate for the orientation to use when presenting the split view controller. /// </summary> /// <param name="splitViewController">The split view controller that is about to be presented onscreen.</param> //[iOSVersion(7)] //[Export("splitViewControllerPreferredInterfaceOrientationForPresentation")] //[Optional] //UIInterfaceOrientation SplitViewControllerPreferredInterfaceOrientationForPresentation(UISplitViewController splitViewController); /// <summary> /// Asks the delegate to specify the interface orientations that the split view controller supports. /// </summary> /// <param name="splitViewController">The split view controller.</param> //[iOSVersion(7)] //[Export("splitViewControllerSupportedInterfaceOrientations")] //[Optional] //int SplitViewControllerSupportedInterfaceOrientations(UISplitViewController splitViewController); /// <summary> /// Asks the delegate to provide the single view controller to display after the split view interface collapses. /// </summary> /// <param name="splitViewController">The split view controller whose interface is collapsing.</param> //[iOSVersion(8)] //[Export("primaryViewControllerForCollapsingSplitViewController")] //[Optional] //UIViewController PrimaryViewControllerForCollapsingSplitViewController(UISplitViewController splitViewController); /// <summary> /// Asks the delegate to adjust the primary view controller and to incorporate the secondary view controller into the collapsed interface. /// </summary> /// <param name="splitViewController">The split view controller whose interface is collapsing.</param> /// <param name="collapseSecondaryViewController">The secondary view controller of the split view interface.</param> /// <param name="ontoPrimaryViewController">The primary view controller of the split view interface. If you implement the primaryViewControllerForCollapsingSplitViewController: method in your delegate, this object is the one returned by that method.</param> //[iOSVersion(8)] //[Export("splitViewController")] //[Optional] //bool SplitViewController(UISplitViewController splitViewController, UIViewController collapseSecondaryViewController, UIViewController ontoPrimaryViewController); /// <summary> /// Asks the delegate to provide the view controller to display in the primary position when the split view interface expands. /// </summary> /// <param name="splitViewController">The split view controller whose interface is expanding.</param> //[iOSVersion(8)] //[Export("primaryViewControllerForExpandingSplitViewController")] //[Optional] //UIViewController PrimaryViewControllerForExpandingSplitViewController(UISplitViewController splitViewController); /// <summary> /// Asks the delegate to provide the new secondary view controller for the split view interface. /// </summary> /// <param name="splitViewController">The split view controller whose interface is expanding.</param> /// <param name="separateSecondaryViewControllerFromPrimaryViewController">The primary view controller in the expanded split view interface. If you implement the primaryViewControllerForExpandingSplitViewController: method in your delegate, this object is the one returned by that method.</param> //[iOSVersion(8)] //[Export("splitViewController")] //[Optional] //UIViewController SplitViewController(UISplitViewController splitViewController, UIViewController separateSecondaryViewControllerFromPrimaryViewController); /// <summary> /// Asks the delegate if it wants to do the work of displaying a view controller in the primary position of the split view interface. /// </summary> /// <param name="splitViewController">The split view controller whose primary view controller is being updated.</param> /// <param name="showViewController">The view controller being displayed in the primary position.</param> /// <param name="sender">The object that made the request.</param> //[iOSVersion(8)] //[Export("splitViewController")] //[Optional] //bool SplitViewController(UISplitViewController splitViewController, UIViewController showViewController, AnyObject sender); /// <summary> /// Asks the delegate if it wants to do the work of displaying a view controller in the secondary position of the split view interface. /// </summary> /// <param name="splitViewController">The split view controller whose secondary view controller is being updated.</param> /// <param name="showDetailViewController">The view controller being displayed in the secondary position.</param> /// <param name="sender">The object that made the request.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(8)] //[Export("splitViewController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool SplitViewController(UISplitViewController splitViewController, UIViewController showDetailViewController, AnyObject sender, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate whether the first view controller should be hidden for the specified orientation. /// </summary> /// <param name="svc">The split view controller that owns the first view controller.</param> /// <param name="shouldHideViewController">The first view controller in the array of view controllers.</param> /// <param name="inOrientation">The orientation being considered.</param> //[iOSVersion(5)] //[Export("splitViewController")] //[Optional] //bool SplitViewController(UISplitViewController svc, UIViewController shouldHideViewController, UIInterfaceOrientation inOrientation); /// <summary> /// Tells the delegate that the specified view controller is about to be hidden. /// </summary> /// <param name="svc">The split view controller that owns the specified view controller.</param> /// <param name="willHideViewController">The view controller being hidden.</param> /// <param name="withBarButtonItem">A button you can add to your toolbar.</param> /// <param name="forPopoverController">The popover controller that uses taps in barButtonItem to display the specified view controller.</param> //[iOSVersion(2)] //[Export("splitViewController")] //[Optional] //void SplitViewController(UISplitViewController svc, UIViewController willHideViewController, UIBarButtonItem withBarButtonItem, UIPopoverController forPopoverController); /// <summary> /// Tells the delegate that the specified view controller is about to be shown again. /// </summary> /// <param name="svc">The split view controller that owns the specified view controller.</param> /// <param name="willShowViewController">The view controller being hidden.</param> /// <param name="invalidatingBarButtonItem">The button used to display the view controller while it was hidden.</param> //[iOSVersion(2)] //[Export("splitViewController")] //[Optional] //void SplitViewController(UISplitViewController svc, UIViewController willShowViewController, UIBarButtonItem invalidatingBarButtonItem); /// <summary> /// Tells the delegate that the hidden view controller is about to be displayed in a popover. /// </summary> /// <param name="svc">The split view controller that owns the hidden view controller.</param> /// <param name="popoverController">The popover controller that is about to display the view controller.</param> /// <param name="willPresentViewController">The view controller to be displayed in the popover.</param> //[iOSVersion(2)] //[Export("splitViewController")] //[Optional] //void SplitViewController(UISplitViewController svc, UIPopoverController popoverController, UIViewController willPresentViewController); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UITabBarControllerDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UITabBarControllerDelegate.cs
index 3ade7f13..45eac29e 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UITabBarControllerDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UITabBarControllerDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// You use the UITabBarControllerDelegate protocol when you want to augment the behavior of a tab bar. In particular, you can use it to determine whether specific tabs should be selected, to perform actions after a tab is selected, or to perform actions before or after the user customizes the order of the tabs. After implementing these methods in your custom object, you should then assign that object to the delegate property of the corresponding UITabBarController object. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITabBarControllerDelegate_Protocol/index.html#//apple_ref/occ/intf/UITabBarControllerDelegate"/> [iOSVersion(2)] public interface UITabBarControllerDelegate//: NSObjectProtocol { /// <summary> /// Asks the delegate whether the specified view controller should be made active. /// </summary> /// <param name="tabBarController">The tab bar controller containing viewController.</param> /// <param name="shouldSelectViewController">The view controller belonging to the tab that was tapped by the user.</param> //[iOSVersion(3)] //[Export("tabBarController")] //[Optional] bool TabBarController(UITabBarController tabBarController, UIViewController shouldSelectViewController); /// <summary> /// Tells the delegate that the user selected an item in the tab bar. /// </summary> /// <param name="tabBarController">The tab bar controller containing viewController.</param> /// <param name="didSelectViewController">The view controller that the user selected. In iOS v3.0 and later, this could be the same view controller that was already selected.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tabBarController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void TabBarController(UITabBarController tabBarController, UIViewController didSelectViewController, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the tab bar customization sheet is about to be displayed. /// </summary> /// <param name="tabBarController">The tab bar controller that is being customized.</param> /// <param name="willBeginCustomizingViewControllers">The view controllers to be displayed in the customization sheet. This list typically contains all custom view controllers you added but does not include some standard controllers, such as the one that manages the More tab.</param> //[iOSVersion(3)] //[Export("tabBarController")] //[Optional] void TabBarController(UITabBarController tabBarController, AnyObject[] willBeginCustomizingViewControllers); /// <summary> /// Tells the delegate that the tab bar customization sheet is about to be dismissed. /// </summary> /// <param name="tabBarController">The tab bar controller that is being customized.</param> /// <param name="willEndCustomizingViewControllers">The view controllers of the tab bar controller. The arrangement of the controllers in the array represents the new display order within the tab bar.</param> /// <param name="changed">A Boolean value indicating whether items changed on the tab bar. true if items changed or false if they did not.</param> //[iOSVersion(3)] //[Export("tabBarController")] //[Optional] void TabBarController(UITabBarController tabBarController, AnyObject[] willEndCustomizingViewControllers, bool changed); /// <summary> /// Tells the delegate that the tab bar customization sheet was dismissed. /// </summary> /// <param name="tabBarController">The tab bar controller that is being customized.</param> /// <param name="didEndCustomizingViewControllers">The view controllers of the tab bar controller. The arrangement of the controllers in the array represents the new display order within the tab bar.</param> /// <param name="changed">A Boolean value indicating whether items changed on the tab bar. true if items changed or false if they did not.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tabBarController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void TabBarController(UITabBarController tabBarController, AnyObject[] didEndCustomizingViewControllers, bool changed, bool NAME_YOUR_PARAMS = false); /// <summary> /// Called to allow the delegate to provide the complete set of supported interface orientations for the tab bar controller. /// </summary> /// <param name="tabBarController">The tab bar controller that is asking the delegate object for the supported interface orientations.</param> //[iOSVersion(7)] //[Export("tabBarControllerSupportedInterfaceOrientations")] //[Optional] int TabBarControllerSupportedInterfaceOrientations(UITabBarController tabBarController); /// <summary> /// Called to allow the delegate to provide the preferred orientation for presentation of the tab bar controller. /// </summary> /// <param name="tabBarController">The tab bar controller that is asking the delegate object for the preferred presentation orientation.</param> //[iOSVersion(7)] //[Export("tabBarControllerPreferredInterfaceOrientationForPresentation")] //[Optional] UIInterfaceOrientation TabBarControllerPreferredInterfaceOrientationForPresentation(UITabBarController tabBarController); /// <summary> /// Called to allow the delegate to return a UIViewControllerAnimatedTransitioning delegate object for use during a noninteractive tab bar view controller transition. /// </summary> /// <param name="tabBarController">The tab bar controller whose view controller is transitioning.</param> /// <param name="animationControllerForTransitionFromViewController">The currently visible view controller.</param> /// <param name="toViewController">The view controller intended to be visible after the transition ends.</param> //[iOSVersion(7)] //[Export("tabBarController")] //[Optional] UIViewControllerAnimatedTransitioning TabBarController(UITabBarController tabBarController, UIViewController animationControllerForTransitionFromViewController, UIViewController toViewController); /// <summary> /// Called to allow the delegate to return a UIViewControllerInteractiveTransitioning delegate object for use during an animated tab bar transition. /// </summary> /// <param name="tabBarController">The tab bar controller participating in the interactive, animated transition.</param> /// <param name="interactionControllerForAnimationController">The noninteractive animation controller</param> //[iOSVersion(7)] //[Export("tabBarController")] //[Optional] UIViewControllerInteractiveTransitioning TabBarController(UITabBarController tabBarController, UIViewControllerAnimatedTransitioning interactionControllerForAnimationController); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// You use the UITabBarControllerDelegate protocol when you want to augment the behavior of a tab bar. In particular, you can use it to determine whether specific tabs should be selected, to perform actions after a tab is selected, or to perform actions before or after the user customizes the order of the tabs. After implementing these methods in your custom object, you should then assign that object to the delegate property of the corresponding UITabBarController object. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITabBarControllerDelegate_Protocol/index.html#//apple_ref/occ/intf/UITabBarControllerDelegate"/> [iOSVersion(2)] public interface UITabBarControllerDelegate//: NSObjectProtocol { /// <summary> /// Asks the delegate whether the specified view controller should be made active. /// </summary> /// <param name="tabBarController">The tab bar controller containing viewController.</param> /// <param name="shouldSelectViewController">The view controller belonging to the tab that was tapped by the user.</param> //[iOSVersion(3)] //[Export("tabBarController")] //[Optional] //bool TabBarController(UITabBarController tabBarController, UIViewController shouldSelectViewController); /// <summary> /// Tells the delegate that the user selected an item in the tab bar. /// </summary> /// <param name="tabBarController">The tab bar controller containing viewController.</param> /// <param name="didSelectViewController">The view controller that the user selected. In iOS v3.0 and later, this could be the same view controller that was already selected.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tabBarController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void TabBarController(UITabBarController tabBarController, UIViewController didSelectViewController, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the tab bar customization sheet is about to be displayed. /// </summary> /// <param name="tabBarController">The tab bar controller that is being customized.</param> /// <param name="willBeginCustomizingViewControllers">The view controllers to be displayed in the customization sheet. This list typically contains all custom view controllers you added but does not include some standard controllers, such as the one that manages the More tab.</param> //[iOSVersion(3)] //[Export("tabBarController")] //[Optional] //void TabBarController(UITabBarController tabBarController, AnyObject[] willBeginCustomizingViewControllers); /// <summary> /// Tells the delegate that the tab bar customization sheet is about to be dismissed. /// </summary> /// <param name="tabBarController">The tab bar controller that is being customized.</param> /// <param name="willEndCustomizingViewControllers">The view controllers of the tab bar controller. The arrangement of the controllers in the array represents the new display order within the tab bar.</param> /// <param name="changed">A Boolean value indicating whether items changed on the tab bar. true if items changed or false if they did not.</param> //[iOSVersion(3)] //[Export("tabBarController")] //[Optional] //void TabBarController(UITabBarController tabBarController, AnyObject[] willEndCustomizingViewControllers, bool changed); /// <summary> /// Tells the delegate that the tab bar customization sheet was dismissed. /// </summary> /// <param name="tabBarController">The tab bar controller that is being customized.</param> /// <param name="didEndCustomizingViewControllers">The view controllers of the tab bar controller. The arrangement of the controllers in the array represents the new display order within the tab bar.</param> /// <param name="changed">A Boolean value indicating whether items changed on the tab bar. true if items changed or false if they did not.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tabBarController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void TabBarController(UITabBarController tabBarController, AnyObject[] didEndCustomizingViewControllers, bool changed, bool NAME_YOUR_PARAMS = false); /// <summary> /// Called to allow the delegate to provide the complete set of supported interface orientations for the tab bar controller. /// </summary> /// <param name="tabBarController">The tab bar controller that is asking the delegate object for the supported interface orientations.</param> //[iOSVersion(7)] //[Export("tabBarControllerSupportedInterfaceOrientations")] //[Optional] //int TabBarControllerSupportedInterfaceOrientations(UITabBarController tabBarController); /// <summary> /// Called to allow the delegate to provide the preferred orientation for presentation of the tab bar controller. /// </summary> /// <param name="tabBarController">The tab bar controller that is asking the delegate object for the preferred presentation orientation.</param> //[iOSVersion(7)] //[Export("tabBarControllerPreferredInterfaceOrientationForPresentation")] //[Optional] //UIInterfaceOrientation TabBarControllerPreferredInterfaceOrientationForPresentation(UITabBarController tabBarController); /// <summary> /// Called to allow the delegate to return a UIViewControllerAnimatedTransitioning delegate object for use during a noninteractive tab bar view controller transition. /// </summary> /// <param name="tabBarController">The tab bar controller whose view controller is transitioning.</param> /// <param name="animationControllerForTransitionFromViewController">The currently visible view controller.</param> /// <param name="toViewController">The view controller intended to be visible after the transition ends.</param> //[iOSVersion(7)] //[Export("tabBarController")] //[Optional] //UIViewControllerAnimatedTransitioning TabBarController(UITabBarController tabBarController, UIViewController animationControllerForTransitionFromViewController, UIViewController toViewController); /// <summary> /// Called to allow the delegate to return a UIViewControllerInteractiveTransitioning delegate object for use during an animated tab bar transition. /// </summary> /// <param name="tabBarController">The tab bar controller participating in the interactive, animated transition.</param> /// <param name="interactionControllerForAnimationController">The noninteractive animation controller</param> //[iOSVersion(7)] //[Export("tabBarController")] //[Optional] //UIViewControllerInteractiveTransitioning TabBarController(UITabBarController tabBarController, UIViewControllerAnimatedTransitioning interactionControllerForAnimationController); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UITabBarDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UITabBarDelegate.cs
index b2d7f7a1..4d5cbbf8 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UITabBarDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UITabBarDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UITabBarDelegate protocol defines optional methods for a delegate of a UITabBar object. The UITabBar class provides the ability for the user to reorder, remove, and add items to the tab bar; this process is referred to as customizing the tab bar. The tab bar delegate receives messages when customizing occurs. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITabBarDelegate_Protocol/index.html#//apple_ref/occ/intf/UITabBarDelegate"/> [iOSVersion(2)] public interface UITabBarDelegate//: NSObjectProtocol { /// <summary> /// Sent to the delegate before the customizing modal view is displayed. /// </summary> /// <param name="tabBar">The tab bar that is being customized.</param> /// <param name="willBeginCustomizingItems">The items on the customizing modal view.</param> //[iOSVersion(2)] //[Export("tabBar")] //[Optional] void TabBar(UITabBar tabBar, AnyObject[] willBeginCustomizingItems); /// <summary> /// Sent to the delegate after the customizing modal view is displayed. /// </summary> /// <param name="tabBar">The tab bar that is being customized.</param> /// <param name="didBeginCustomizingItems">The items on the customizing modal view.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tabBar")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void TabBar(UITabBar tabBar, AnyObject[] didBeginCustomizingItems, bool NAME_YOUR_PARAMS = false); /// <summary> /// Sent to the delegate before the customizing modal view is dismissed. /// </summary> /// <param name="tabBar">The tab bar that is being customized.</param> /// <param name="willEndCustomizingItems">The items on the customizing modal view.</param> /// <param name="changed">true if the visible set of items on the tab bar changed; otherwise, false.</param> //[iOSVersion(2)] //[Export("tabBar")] //[Optional] void TabBar(UITabBar tabBar, AnyObject[] willEndCustomizingItems, bool changed); /// <summary> /// Sent to the delegate after the customizing modal view is dismissed. /// </summary> /// <param name="tabBar">The tab bar that is being customized.</param> /// <param name="didEndCustomizingItems">The items on the customizing modal view.</param> /// <param name="changed">true if the visible set of items on the tab bar changed; otherwise, false.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tabBar")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void TabBar(UITabBar tabBar, AnyObject[] didEndCustomizingItems, bool changed, bool NAME_YOUR_PARAMS = false); /// <summary> /// Sent to the delegate when the user selects a tab bar item. (required) /// </summary> /// <param name="tabBar">The tab bar that is being customized.</param> /// <param name="didSelectItem">The tab bar item that was selected.</param> //[iOSVersion(2)] //[Export("tabBar")] //[Optional] void TabBar(UITabBar tabBar, UITabBarItem didSelectItem); } } \ 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 UITabBarDelegate protocol defines optional methods for a delegate of a UITabBar object. The UITabBar class provides the ability for the user to reorder, remove, and add items to the tab bar; this process is referred to as customizing the tab bar. The tab bar delegate receives messages when customizing occurs. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITabBarDelegate_Protocol/index.html#//apple_ref/occ/intf/UITabBarDelegate"/> [iOSVersion(2)] public interface UITabBarDelegate//: NSObjectProtocol { /// <summary> /// Sent to the delegate before the customizing modal view is displayed. /// </summary> /// <param name="tabBar">The tab bar that is being customized.</param> /// <param name="willBeginCustomizingItems">The items on the customizing modal view.</param> //[iOSVersion(2)] //[Export("tabBar")] //[Optional] //void TabBar(UITabBar tabBar, AnyObject[] willBeginCustomizingItems); /// <summary> /// Sent to the delegate after the customizing modal view is displayed. /// </summary> /// <param name="tabBar">The tab bar that is being customized.</param> /// <param name="didBeginCustomizingItems">The items on the customizing modal view.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tabBar")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void TabBar(UITabBar tabBar, AnyObject[] didBeginCustomizingItems, bool NAME_YOUR_PARAMS = false); /// <summary> /// Sent to the delegate before the customizing modal view is dismissed. /// </summary> /// <param name="tabBar">The tab bar that is being customized.</param> /// <param name="willEndCustomizingItems">The items on the customizing modal view.</param> /// <param name="changed">true if the visible set of items on the tab bar changed; otherwise, false.</param> //[iOSVersion(2)] //[Export("tabBar")] //[Optional] //void TabBar(UITabBar tabBar, AnyObject[] willEndCustomizingItems, bool changed); /// <summary> /// Sent to the delegate after the customizing modal view is dismissed. /// </summary> /// <param name="tabBar">The tab bar that is being customized.</param> /// <param name="didEndCustomizingItems">The items on the customizing modal view.</param> /// <param name="changed">true if the visible set of items on the tab bar changed; otherwise, false.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tabBar")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void TabBar(UITabBar tabBar, AnyObject[] didEndCustomizingItems, bool changed, bool NAME_YOUR_PARAMS = false); /// <summary> /// Sent to the delegate when the user selects a tab bar item. (required) /// </summary> /// <param name="tabBar">The tab bar that is being customized.</param> /// <param name="didSelectItem">The tab bar item that was selected.</param> //[iOSVersion(2)] //[Export("tabBar")] //[Optional] //void TabBar(UITabBar tabBar, UITabBarItem didSelectItem); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UITableViewDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UITableViewDelegate.cs
index d3514221..f7f23ae9 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UITableViewDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UITableViewDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The delegate of a UITableView object must adopt the UITableViewDelegate protocol. Optional methods of the protocol allow the delegate to manage selections, configure section headings and footers, help to delete and reorder cells, and perform other actions. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITableViewDelegate_Protocol/index.html#//apple_ref/occ/intf/UITableViewDelegate"/> [iOSVersion(2)] public interface UITableViewDelegate//: NSObjectProtocol, UIScrollViewDelegate { /// <summary> /// Asks the delegate for the height to use for a row in a specified location. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="heightForRowAtIndexPath">An index path that locates a row in tableView.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] CGFloat TableView(UITableView tableView, NSIndexPath heightForRowAtIndexPath); /// <summary> /// Asks the delegate for the estimated height of a row in a specified location. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="estimatedHeightForRowAtIndexPath">An index path that locates a row in tableView.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] CGFloat TableView(UITableView tableView, NSIndexPath estimatedHeightForRowAtIndexPath, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate to return the level of indentation for a row in a given section. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="indentationLevelForRowAtIndexPath">An index path locating the row in tableView.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] int TableView(UITableView tableView, NSIndexPath indentationLevelForRowAtIndexPath, int NAME_YOUR_PARAMS = 0); /// <summary> /// Tells the delegate the table view is about to draw a cell for a particular row. /// </summary> /// <param name="tableView">The table-view object informing the delegate of this impending event.</param> /// <param name="willDisplayCell">A table-view cell object that tableView is going to use when drawing the row.</param> /// <param name="forRowAtIndexPath">An index path locating the row in tableView.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] void TableView(UITableView tableView, UITableViewCell willDisplayCell, NSIndexPath forRowAtIndexPath); /// <summary> /// Asks the delegate for the actions to display in response to a swipe in the specified row. (required) /// </summary> /// <param name="tableView">The table view object requesting this information.</param> /// <param name="editActionsForRowAtIndexPath">The index path of the row.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(8)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] AnyObject[] TableView(UITableView tableView, NSIndexPath editActionsForRowAtIndexPath, string NAME_YOUR_PARAMS = ""); /// <summary> /// Tells the delegate that the user tapped the accessory (disclosure) view associated with a given row. /// </summary> /// <param name="tableView">The table-view object informing the delegate of this event.</param> /// <param name="accessoryButtonTappedForRowWithIndexPath">An index path locating the row in tableView.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void TableView(UITableView tableView, NSIndexPath accessoryButtonTappedForRowWithIndexPath, double NAME_YOUR_PARAMS = 4.2); /// <summary> /// Tells the delegate that a specified row is about to be selected. /// </summary> /// <param name="tableView">A table-view object informing the delegate about the impending selection.</param> /// <param name="willSelectRowAtIndexPath">An index path locating the row in tableView.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] NSIndexPath TableView(UITableView tableView, NSIndexPath willSelectRowAtIndexPath, uint NAME_YOUR_PARAMS = 4.2); /// <summary> /// Tells the delegate that the specified row is now selected. /// </summary> /// <param name="tableView">A table-view object informing the delegate about the new row selection.</param> /// <param name="didSelectRowAtIndexPath">An index path locating the new selected row in tableView.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void TableView(UITableView tableView, NSIndexPath didSelectRowAtIndexPath, UInt16 NAME_YOUR_PARAMS = 4.2); /// <summary> /// Tells the delegate that a specified row is about to be deselected. /// </summary> /// <param name="tableView">A table-view object informing the delegate about the impending deselection.</param> /// <param name="willDeselectRowAtIndexPath">An index path locating the row in tableView to be deselected.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] NSIndexPath TableView(UITableView tableView, NSIndexPath willDeselectRowAtIndexPath, UInt64 NAME_YOUR_PARAMS = 4.2); /// <summary> /// Tells the delegate that the specified row is now deselected. /// </summary> /// <param name="tableView">A table-view object informing the delegate about the row deselection.</param> /// <param name="didDeselectRowAtIndexPath">An index path locating the deselected row in tableView.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void TableView(UITableView tableView, NSIndexPath didDeselectRowAtIndexPath, long NAME_YOUR_PARAMS = 4.2); /// <summary> /// Asks the delegate for a view object to display in the header of the specified section of the table view. /// </summary> /// <param name="tableView">The table-view object asking for the view object.</param> /// <param name="viewForHeaderInSection">An index number identifying a section of tableView .</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] UIView TableView(UITableView tableView, int viewForHeaderInSection); /// <summary> /// Asks the delegate for a view object to display in the footer of the specified section of the table view. /// </summary> /// <param name="tableView">The table-view object asking for the view object.</param> /// <param name="viewForFooterInSection">An index number identifying a section of tableView .</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] UIView TableView(UITableView tableView, int viewForFooterInSection, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate for the height to use for the header of a particular section. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="heightForHeaderInSection">An index number identifying a section of tableView .</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] CGFloat TableView(UITableView tableView, int heightForHeaderInSection, int NAME_YOUR_PARAMS = 0); /// <summary> /// Asks the delegate for the estimated height of the header of a particular section. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="estimatedHeightForHeaderInSection">An index number identifying a section of tableView .</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] CGFloat TableView(UITableView tableView, int estimatedHeightForHeaderInSection, string NAME_YOUR_PARAMS = ""); /// <summary> /// Asks the delegate for the height to use for the footer of a particular section. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="heightForFooterInSection">An index number identifying a section of tableView .</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] CGFloat TableView(UITableView tableView, int heightForFooterInSection, double NAME_YOUR_PARAMS = 4.2); /// <summary> /// Asks the delegate for the estimated height of the footer of a particular section. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="estimatedHeightForFooterInSection">An index number identifying a section of tableView .</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] CGFloat TableView(UITableView tableView, int estimatedHeightForFooterInSection, uint NAME_YOUR_PARAMS = 4.2); /// <summary> /// Tells the delegate that a header view is about to be displayed for the specified section. /// </summary> /// <param name="tableView">The table-view object informing the delegate of this event.</param> /// <param name="willDisplayHeaderView">The header view that is about to be displayed.</param> /// <param name="forSection">An index number identifying a section of tableView.</param> //[iOSVersion(6)] //[Export("tableView")] //[Optional] void TableView(UITableView tableView, UIView willDisplayHeaderView, int forSection); /// <summary> /// Tells the delegate that a footer view is about to be displayed for the specified section. /// </summary> /// <param name="tableView">The table-view object informing the delegate of this event.</param> /// <param name="willDisplayFooterView">The footer view that is about to be displayed.</param> /// <param name="forSection">An index number identifying a section of tableView .</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void TableView(UITableView tableView, UIView willDisplayFooterView, int forSection, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the table view is about to go into editing mode. /// </summary> /// <param name="tableView">The table-view object providing this information.</param> /// <param name="willBeginEditingRowAtIndexPath">An index path locating the row in tableView.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void TableView(UITableView tableView, NSIndexPath willBeginEditingRowAtIndexPath, char NAME_YOUR_PARAMS = ' '); /// <summary> /// Tells the delegate that the table view has left editing mode. /// </summary> /// <param name="tableView">The table-view object providing this information.</param> /// <param name="didEndEditingRowAtIndexPath">An index path locating the row in tableView.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] void TableView(UITableView tableView, NSIndexPath didEndEditingRowAtIndexPath); /// <summary> /// Asks the delegate for the editing style of a row at a particular location in a table view. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="editingStyleForRowAtIndexPath">An index path locating a row in tableView.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] UITableViewCellEditingStyle TableView(UITableView tableView, NSIndexPath editingStyleForRowAtIndexPath); /// <summary> /// Changes the default title of the delete-confirmation button. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="titleForDeleteConfirmationButtonForRowAtIndexPath">An index-path object locating the row in its section.</param> //[iOSVersion(3)] //[Export("tableView")] //[Optional] string TableView(UITableView tableView, NSIndexPath titleForDeleteConfirmationButtonForRowAtIndexPath); /// <summary> /// Asks the delegate whether the background of the specified row should be indented while the table view is in editing mode. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="shouldIndentWhileEditingRowAtIndexPath">An index-path object locating the row in its section.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] bool TableView(UITableView tableView, NSIndexPath shouldIndentWhileEditingRowAtIndexPath); /// <summary> /// Asks the delegate to return a new index path to retarget a proposed move of a row. /// </summary> /// <param name="tableView">The table-view object that is requesting this information.</param> /// <param name="targetIndexPathForMoveFromRowAtIndexPath">An index-path object identifying the original location of a row (in its section) that is being dragged.</param> /// <param name="toProposedIndexPath">An index-path object identifying the currently proposed destination of the row being dragged.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] NSIndexPath TableView(UITableView tableView, NSIndexPath targetIndexPathForMoveFromRowAtIndexPath, NSIndexPath toProposedIndexPath); /// <summary> /// Tells the delegate that the specified cell was removed from the table. /// </summary> /// <param name="tableView">The table-view object that removed the view.</param> /// <param name="didEndDisplayingCell">The cell that was removed.</param> /// <param name="forRowAtIndexPath">The index path of the cell.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void TableView(UITableView tableView, UITableViewCell didEndDisplayingCell, NSIndexPath forRowAtIndexPath, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the specified header view was removed from the table. /// </summary> /// <param name="tableView">The table-view object that removed the view.</param> /// <param name="didEndDisplayingHeaderView">The header view that was removed.</param> /// <param name="forSection">The index of the section that contained the header.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void TableView(UITableView tableView, UIView didEndDisplayingHeaderView, int forSection, int NAME_YOUR_PARAMS = 0); /// <summary> /// Tells the delegate that the specified footer view was removed from the table. /// </summary> /// <param name="tableView">The table-view object that removed the view.</param> /// <param name="didEndDisplayingFooterView">The footer view that was removed.</param> /// <param name="forSection">The index of the section that contained the footer.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void TableView(UITableView tableView, UIView didEndDisplayingFooterView, int forSection, string NAME_YOUR_PARAMS = ""); /// <summary> /// Asks the delegate if the editing menu should be shown for a certain row. /// </summary> /// <param name="tableView">The table-view object that is making this request.</param> /// <param name="shouldShowMenuForRowAtIndexPath">An index-path object locating the row in its section.</param> //[iOSVersion(5)] //[Export("tableView")] //[Optional] bool TableView(UITableView tableView, NSIndexPath shouldShowMenuForRowAtIndexPath); /// <summary> /// Asks the delegate if the editing menu should omit the Copy or Paste command for a given row. /// </summary> /// <param name="tableView">The table-view object that is making this request.</param> /// <param name="canPerformAction">A selector type identifying the copy: or paste: method of the UIResponderStandardEditActions informal protocol.</param> /// <param name="forRowAtIndexPath">An index-path object locating the row in its section.</param> /// <param name="withSender">The object that initially sent the copy: or paste: message. T</param> //[iOSVersion(5)] //[Export("tableView")] //[Optional] bool TableView(UITableView tableView, Selector canPerformAction, NSIndexPath forRowAtIndexPath, AnyObject withSender); /// <summary> /// Tells the delegate to perform a copy or paste operation on the content of a given row. /// </summary> /// <param name="tableView">The table-view object that is making this request.</param> /// <param name="performAction">A selector type identifying the copy: or paste: method of the UIResponderStandardEditActions informal protocol.</param> /// <param name="forRowAtIndexPath">An index-path object locating the row in its section.</param> /// <param name="withSender">The object that initially sent the copy: or paste: message.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(5)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] void TableView(UITableView tableView, Selector performAction, NSIndexPath forRowAtIndexPath, AnyObject withSender, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate if the specified row should be highlighted. /// </summary> /// <param name="tableView">The table-view object that is making this request.</param> /// <param name="shouldHighlightRowAtIndexPath">The index path of the row being highlighted.</param> //[iOSVersion(6)] //[Export("tableView")] //[Optional] bool TableView(UITableView tableView, NSIndexPath shouldHighlightRowAtIndexPath); /// <summary> /// Tells the delegate that the specified row was highlighted. /// </summary> /// <param name="tableView">The table-view object that highlighted the cell.</param> /// <param name="didHighlightRowAtIndexPath">The index path of the row that was highlighted.</param> //[iOSVersion(6)] //[Export("tableView")] //[Optional] void TableView(UITableView tableView, NSIndexPath didHighlightRowAtIndexPath); /// <summary> /// Tells the delegate that the highlight was removed from the row at the specified index path. /// </summary> /// <param name="tableView">The table-view object that removed the highlight from the cell.</param> /// <param name="didUnhighlightRowAtIndexPath">The index path of the row that had its highlight removed.</param> //[iOSVersion(6)] //[Export("tableView")] //[Optional] void TableView(UITableView tableView, NSIndexPath didUnhighlightRowAtIndexPath); } } \ 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 delegate of a UITableView object must adopt the UITableViewDelegate protocol. Optional methods of the protocol allow the delegate to manage selections, configure section headings and footers, help to delete and reorder cells, and perform other actions. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITableViewDelegate_Protocol/index.html#//apple_ref/occ/intf/UITableViewDelegate"/> [iOSVersion(2)] public interface UITableViewDelegate//: NSObjectProtocol, UIScrollViewDelegate { /// <summary> /// Asks the delegate for the height to use for a row in a specified location. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="heightForRowAtIndexPath">An index path that locates a row in tableView.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //CGFloat TableView(UITableView tableView, NSIndexPath heightForRowAtIndexPath); /// <summary> /// Asks the delegate for the estimated height of a row in a specified location. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="estimatedHeightForRowAtIndexPath">An index path that locates a row in tableView.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //CGFloat TableView(UITableView tableView, NSIndexPath estimatedHeightForRowAtIndexPath, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate to return the level of indentation for a row in a given section. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="indentationLevelForRowAtIndexPath">An index path locating the row in tableView.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //int TableView(UITableView tableView, NSIndexPath indentationLevelForRowAtIndexPath, int NAME_YOUR_PARAMS = 0); /// <summary> /// Tells the delegate the table view is about to draw a cell for a particular row. /// </summary> /// <param name="tableView">The table-view object informing the delegate of this impending event.</param> /// <param name="willDisplayCell">A table-view cell object that tableView is going to use when drawing the row.</param> /// <param name="forRowAtIndexPath">An index path locating the row in tableView.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //void TableView(UITableView tableView, UITableViewCell willDisplayCell, NSIndexPath forRowAtIndexPath); /// <summary> /// Asks the delegate for the actions to display in response to a swipe in the specified row. (required) /// </summary> /// <param name="tableView">The table view object requesting this information.</param> /// <param name="editActionsForRowAtIndexPath">The index path of the row.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(8)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //AnyObject[] TableView(UITableView tableView, NSIndexPath editActionsForRowAtIndexPath, string NAME_YOUR_PARAMS = ""); /// <summary> /// Tells the delegate that the user tapped the accessory (disclosure) view associated with a given row. /// </summary> /// <param name="tableView">The table-view object informing the delegate of this event.</param> /// <param name="accessoryButtonTappedForRowWithIndexPath">An index path locating the row in tableView.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void TableView(UITableView tableView, NSIndexPath accessoryButtonTappedForRowWithIndexPath, double NAME_YOUR_PARAMS = 4.2); /// <summary> /// Tells the delegate that a specified row is about to be selected. /// </summary> /// <param name="tableView">A table-view object informing the delegate about the impending selection.</param> /// <param name="willSelectRowAtIndexPath">An index path locating the row in tableView.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //NSIndexPath TableView(UITableView tableView, NSIndexPath willSelectRowAtIndexPath, uint NAME_YOUR_PARAMS = 4.2); /// <summary> /// Tells the delegate that the specified row is now selected. /// </summary> /// <param name="tableView">A table-view object informing the delegate about the new row selection.</param> /// <param name="didSelectRowAtIndexPath">An index path locating the new selected row in tableView.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void TableView(UITableView tableView, NSIndexPath didSelectRowAtIndexPath, UInt16 NAME_YOUR_PARAMS = 4.2); /// <summary> /// Tells the delegate that a specified row is about to be deselected. /// </summary> /// <param name="tableView">A table-view object informing the delegate about the impending deselection.</param> /// <param name="willDeselectRowAtIndexPath">An index path locating the row in tableView to be deselected.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //NSIndexPath TableView(UITableView tableView, NSIndexPath willDeselectRowAtIndexPath, UInt64 NAME_YOUR_PARAMS = 4.2); /// <summary> /// Tells the delegate that the specified row is now deselected. /// </summary> /// <param name="tableView">A table-view object informing the delegate about the row deselection.</param> /// <param name="didDeselectRowAtIndexPath">An index path locating the deselected row in tableView.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(3)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void TableView(UITableView tableView, NSIndexPath didDeselectRowAtIndexPath, long NAME_YOUR_PARAMS = 4.2); /// <summary> /// Asks the delegate for a view object to display in the header of the specified section of the table view. /// </summary> /// <param name="tableView">The table-view object asking for the view object.</param> /// <param name="viewForHeaderInSection">An index number identifying a section of tableView .</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //UIView TableView(UITableView tableView, int viewForHeaderInSection); /// <summary> /// Asks the delegate for a view object to display in the footer of the specified section of the table view. /// </summary> /// <param name="tableView">The table-view object asking for the view object.</param> /// <param name="viewForFooterInSection">An index number identifying a section of tableView .</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //UIView TableView(UITableView tableView, int viewForFooterInSection, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate for the height to use for the header of a particular section. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="heightForHeaderInSection">An index number identifying a section of tableView .</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //CGFloat TableView(UITableView tableView, int heightForHeaderInSection, int NAME_YOUR_PARAMS = 0); /// <summary> /// Asks the delegate for the estimated height of the header of a particular section. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="estimatedHeightForHeaderInSection">An index number identifying a section of tableView .</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //CGFloat TableView(UITableView tableView, int estimatedHeightForHeaderInSection, string NAME_YOUR_PARAMS = ""); /// <summary> /// Asks the delegate for the height to use for the footer of a particular section. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="heightForFooterInSection">An index number identifying a section of tableView .</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //CGFloat TableView(UITableView tableView, int heightForFooterInSection, double NAME_YOUR_PARAMS = 4.2); /// <summary> /// Asks the delegate for the estimated height of the footer of a particular section. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="estimatedHeightForFooterInSection">An index number identifying a section of tableView .</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //CGFloat TableView(UITableView tableView, int estimatedHeightForFooterInSection, uint NAME_YOUR_PARAMS = 4.2); /// <summary> /// Tells the delegate that a header view is about to be displayed for the specified section. /// </summary> /// <param name="tableView">The table-view object informing the delegate of this event.</param> /// <param name="willDisplayHeaderView">The header view that is about to be displayed.</param> /// <param name="forSection">An index number identifying a section of tableView.</param> //[iOSVersion(6)] //[Export("tableView")] //[Optional] //void TableView(UITableView tableView, UIView willDisplayHeaderView, int forSection); /// <summary> /// Tells the delegate that a footer view is about to be displayed for the specified section. /// </summary> /// <param name="tableView">The table-view object informing the delegate of this event.</param> /// <param name="willDisplayFooterView">The footer view that is about to be displayed.</param> /// <param name="forSection">An index number identifying a section of tableView .</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void TableView(UITableView tableView, UIView willDisplayFooterView, int forSection, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the table view is about to go into editing mode. /// </summary> /// <param name="tableView">The table-view object providing this information.</param> /// <param name="willBeginEditingRowAtIndexPath">An index path locating the row in tableView.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void TableView(UITableView tableView, NSIndexPath willBeginEditingRowAtIndexPath, char NAME_YOUR_PARAMS = ' '); /// <summary> /// Tells the delegate that the table view has left editing mode. /// </summary> /// <param name="tableView">The table-view object providing this information.</param> /// <param name="didEndEditingRowAtIndexPath">An index path locating the row in tableView.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //void TableView(UITableView tableView, NSIndexPath didEndEditingRowAtIndexPath); /// <summary> /// Asks the delegate for the editing style of a row at a particular location in a table view. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="editingStyleForRowAtIndexPath">An index path locating a row in tableView.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //UITableViewCellEditingStyle TableView(UITableView tableView, NSIndexPath editingStyleForRowAtIndexPath); /// <summary> /// Changes the default title of the delete-confirmation button. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="titleForDeleteConfirmationButtonForRowAtIndexPath">An index-path object locating the row in its section.</param> //[iOSVersion(3)] //[Export("tableView")] //[Optional] //string TableView(UITableView tableView, NSIndexPath titleForDeleteConfirmationButtonForRowAtIndexPath); /// <summary> /// Asks the delegate whether the background of the specified row should be indented while the table view is in editing mode. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="shouldIndentWhileEditingRowAtIndexPath">An index-path object locating the row in its section.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //bool TableView(UITableView tableView, NSIndexPath shouldIndentWhileEditingRowAtIndexPath); /// <summary> /// Asks the delegate to return a new index path to retarget a proposed move of a row. /// </summary> /// <param name="tableView">The table-view object that is requesting this information.</param> /// <param name="targetIndexPathForMoveFromRowAtIndexPath">An index-path object identifying the original location of a row (in its section) that is being dragged.</param> /// <param name="toProposedIndexPath">An index-path object identifying the currently proposed destination of the row being dragged.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //NSIndexPath TableView(UITableView tableView, NSIndexPath targetIndexPathForMoveFromRowAtIndexPath, NSIndexPath toProposedIndexPath); /// <summary> /// Tells the delegate that the specified cell was removed from the table. /// </summary> /// <param name="tableView">The table-view object that removed the view.</param> /// <param name="didEndDisplayingCell">The cell that was removed.</param> /// <param name="forRowAtIndexPath">The index path of the cell.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void TableView(UITableView tableView, UITableViewCell didEndDisplayingCell, NSIndexPath forRowAtIndexPath, bool NAME_YOUR_PARAMS = false); /// <summary> /// Tells the delegate that the specified header view was removed from the table. /// </summary> /// <param name="tableView">The table-view object that removed the view.</param> /// <param name="didEndDisplayingHeaderView">The header view that was removed.</param> /// <param name="forSection">The index of the section that contained the header.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void TableView(UITableView tableView, UIView didEndDisplayingHeaderView, int forSection, int NAME_YOUR_PARAMS = 0); /// <summary> /// Tells the delegate that the specified footer view was removed from the table. /// </summary> /// <param name="tableView">The table-view object that removed the view.</param> /// <param name="didEndDisplayingFooterView">The footer view that was removed.</param> /// <param name="forSection">The index of the section that contained the footer.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(6)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void TableView(UITableView tableView, UIView didEndDisplayingFooterView, int forSection, string NAME_YOUR_PARAMS = ""); /// <summary> /// Asks the delegate if the editing menu should be shown for a certain row. /// </summary> /// <param name="tableView">The table-view object that is making this request.</param> /// <param name="shouldShowMenuForRowAtIndexPath">An index-path object locating the row in its section.</param> //[iOSVersion(5)] //[Export("tableView")] //[Optional] //bool TableView(UITableView tableView, NSIndexPath shouldShowMenuForRowAtIndexPath); /// <summary> /// Asks the delegate if the editing menu should omit the Copy or Paste command for a given row. /// </summary> /// <param name="tableView">The table-view object that is making this request.</param> /// <param name="canPerformAction">A selector type identifying the copy: or paste: method of the UIResponderStandardEditActions informal protocol.</param> /// <param name="forRowAtIndexPath">An index-path object locating the row in its section.</param> /// <param name="withSender">The object that initially sent the copy: or paste: message. T</param> //[iOSVersion(5)] //[Export("tableView")] //[Optional] //bool TableView(UITableView tableView, Selector canPerformAction, NSIndexPath forRowAtIndexPath, AnyObject withSender); /// <summary> /// Tells the delegate to perform a copy or paste operation on the content of a given row. /// </summary> /// <param name="tableView">The table-view object that is making this request.</param> /// <param name="performAction">A selector type identifying the copy: or paste: method of the UIResponderStandardEditActions informal protocol.</param> /// <param name="forRowAtIndexPath">An index-path object locating the row in its section.</param> /// <param name="withSender">The object that initially sent the copy: or paste: message.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(5)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //void TableView(UITableView tableView, Selector performAction, NSIndexPath forRowAtIndexPath, AnyObject withSender, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the delegate if the specified row should be highlighted. /// </summary> /// <param name="tableView">The table-view object that is making this request.</param> /// <param name="shouldHighlightRowAtIndexPath">The index path of the row being highlighted.</param> //[iOSVersion(6)] //[Export("tableView")] //[Optional] //bool TableView(UITableView tableView, NSIndexPath shouldHighlightRowAtIndexPath); /// <summary> /// Tells the delegate that the specified row was highlighted. /// </summary> /// <param name="tableView">The table-view object that highlighted the cell.</param> /// <param name="didHighlightRowAtIndexPath">The index path of the row that was highlighted.</param> //[iOSVersion(6)] //[Export("tableView")] //[Optional] //void TableView(UITableView tableView, NSIndexPath didHighlightRowAtIndexPath); /// <summary> /// Tells the delegate that the highlight was removed from the row at the specified index path. /// </summary> /// <param name="tableView">The table-view object that removed the highlight from the cell.</param> /// <param name="didUnhighlightRowAtIndexPath">The index path of the row that had its highlight removed.</param> //[iOSVersion(6)] //[Export("tableView")] //[Optional] //void TableView(UITableView tableView, NSIndexPath didUnhighlightRowAtIndexPath); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UITextFieldDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UITextFieldDelegate.cs
index 34fdb09c..eda12d4b 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UITextFieldDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UITextFieldDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UITextFieldDelegate protocol defines the messages sent to a text field delegate as part of the sequence of editing its text. All of the methods of this protocol are optional. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITextFieldDelegate_Protocol/index.html#//apple_ref/occ/intf/UITextFieldDelegate"/> [iOSVersion(2)] public interface UITextFieldDelegate//: NSObjectProtocol { /// <summary> /// Asks the delegate if editing should begin in the specified text field. /// </summary> /// <param name="textField">The text field for which editing is about to begin.</param> //[iOSVersion(2)] //[Export("textFieldShouldBeginEditing")] //[Optional] bool TextFieldShouldBeginEditing(UITextField textField); /// <summary> /// Tells the delegate that editing began for the specified text field. /// </summary> /// <param name="textField">The text field for which an editing session began.</param> //[iOSVersion(2)] //[Export("textFieldDidBeginEditing")] //[Optional] void TextFieldDidBeginEditing(UITextField textField); /// <summary> /// Asks the delegate if editing should stop in the specified text field. /// </summary> /// <param name="textField">The text field for which editing is about to end.</param> //[iOSVersion(2)] //[Export("textFieldShouldEndEditing")] //[Optional] bool TextFieldShouldEndEditing(UITextField textField); /// <summary> /// Tells the delegate that editing stopped for the specified text field. /// </summary> /// <param name="textField">The text field for which editing ended.</param> //[iOSVersion(2)] //[Export("textFieldDidEndEditing")] //[Optional] void TextFieldDidEndEditing(UITextField textField); /// <summary> /// Asks the delegate if the specified text should be changed. /// </summary> /// <param name="textField">The text field containing the text.</param> /// <param name="shouldChangeCharactersInRange">The range of characters to be replaced</param> /// <param name="replacementString">The replacement string.</param> //[iOSVersion(2)] //[Export("textField")] //[Optional] bool TextField(UITextField textField, NSRange shouldChangeCharactersInRange, string replacementString); /// <summary> /// Asks the delegate if the text field’s current contents should be removed. /// </summary> /// <param name="textField">The text field containing the text.</param> //[iOSVersion(2)] //[Export("textFieldShouldClear")] //[Optional] bool TextFieldShouldClear(UITextField textField); /// <summary> /// Asks the delegate if the text field should process the pressing of the return button. /// </summary> /// <param name="textField">The text field whose return button was pressed.</param> //[iOSVersion(2)] //[Export("textFieldShouldReturn")] //[Optional] bool TextFieldShouldReturn(UITextField textField); } } \ 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 UITextFieldDelegate protocol defines the messages sent to a text field delegate as part of the sequence of editing its text. All of the methods of this protocol are optional. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITextFieldDelegate_Protocol/index.html#//apple_ref/occ/intf/UITextFieldDelegate"/> [iOSVersion(2)] public interface UITextFieldDelegate//: NSObjectProtocol { /// <summary> /// Asks the delegate if editing should begin in the specified text field. /// </summary> /// <param name="textField">The text field for which editing is about to begin.</param> //[iOSVersion(2)] //[Export("textFieldShouldBeginEditing")] //[Optional] //bool TextFieldShouldBeginEditing(UITextField textField); /// <summary> /// Tells the delegate that editing began for the specified text field. /// </summary> /// <param name="textField">The text field for which an editing session began.</param> //[iOSVersion(2)] //[Export("textFieldDidBeginEditing")] //[Optional] //void TextFieldDidBeginEditing(UITextField textField); /// <summary> /// Asks the delegate if editing should stop in the specified text field. /// </summary> /// <param name="textField">The text field for which editing is about to end.</param> //[iOSVersion(2)] //[Export("textFieldShouldEndEditing")] //[Optional] //bool TextFieldShouldEndEditing(UITextField textField); /// <summary> /// Tells the delegate that editing stopped for the specified text field. /// </summary> /// <param name="textField">The text field for which editing ended.</param> //[iOSVersion(2)] //[Export("textFieldDidEndEditing")] //[Optional] //void TextFieldDidEndEditing(UITextField textField); /// <summary> /// Asks the delegate if the specified text should be changed. /// </summary> /// <param name="textField">The text field containing the text.</param> /// <param name="shouldChangeCharactersInRange">The range of characters to be replaced</param> /// <param name="replacementString">The replacement string.</param> //[iOSVersion(2)] //[Export("textField")] //[Optional] //bool TextField(UITextField textField, NSRange shouldChangeCharactersInRange, string replacementString); /// <summary> /// Asks the delegate if the text field’s current contents should be removed. /// </summary> /// <param name="textField">The text field containing the text.</param> //[iOSVersion(2)] //[Export("textFieldShouldClear")] //[Optional] //bool TextFieldShouldClear(UITextField textField); /// <summary> /// Asks the delegate if the text field should process the pressing of the return button. /// </summary> /// <param name="textField">The text field whose return button was pressed.</param> //[iOSVersion(2)] //[Export("textFieldShouldReturn")] //[Optional] //bool TextFieldShouldReturn(UITextField textField); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UITextViewDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UITextViewDelegate.cs
index f7c7414a..171848db 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UITextViewDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UITextViewDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UITextViewDelegate protocol defines a set of optional methods you can use to receive editing-related messages for UITextView objects. All of the methods in this protocol are optional. You can use them in situations where you might want to adjust the text being edited (such as in the case of a spell checker program) or modify the intended insertion point. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITextViewDelegate_Protocol/index.html#//apple_ref/occ/intf/UITextViewDelegate"/> [iOSVersion(2)] public interface UITextViewDelegate//: NSObjectProtocol, UIScrollViewDelegate { /// <summary> /// Asks the delegate if editing should begin in the specified text view. /// </summary> /// <param name="textView">The text view for which editing is about to begin.</param> //[iOSVersion(2)] //[Export("textViewShouldBeginEditing")] //[Optional] bool TextViewShouldBeginEditing(UITextView textView); /// <summary> /// Tells the delegate that editing of the specified text view has begun. /// </summary> /// <param name="textView">The text view in which editing began.</param> //[iOSVersion(2)] //[Export("textViewDidBeginEditing")] //[Optional] void TextViewDidBeginEditing(UITextView textView); /// <summary> /// Asks the delegate if editing should stop in the specified text view. /// </summary> /// <param name="textView">The text view for which editing is about to end.</param> //[iOSVersion(2)] //[Export("textViewShouldEndEditing")] //[Optional] bool TextViewShouldEndEditing(UITextView textView); /// <summary> /// Tells the delegate that editing of the specified text view has ended. /// </summary> /// <param name="textView">The text view in which editing ended.</param> //[iOSVersion(2)] //[Export("textViewDidEndEditing")] //[Optional] void TextViewDidEndEditing(UITextView textView); /// <summary> /// Asks the delegate whether the specified text should be replaced in the text view. /// </summary> /// <param name="textView">The text view containing the changes.</param> /// <param name="shouldChangeTextInRange">The current selection range. If the length of the range is 0, range reflects the current insertion point. If the user presses the Delete key, the length of the range is 1 and an empty string object replaces that single character.</param> /// <param name="replacementText">The text to insert.</param> //[iOSVersion(2)] //[Export("textView")] //[Optional] bool TextView(UITextView textView, NSRange shouldChangeTextInRange, string replacementText); /// <summary> /// Tells the delegate that the text or attributes in the specified text view were changed by the user. /// </summary> /// <param name="textView">The text view containing the changes.</param> //[iOSVersion(2)] //[Export("textViewDidChange")] //[Optional] void TextViewDidChange(UITextView textView); /// <summary> /// Tells the delegate that the text selection changed in the specified text view. /// </summary> /// <param name="textView">The text view whose selection changed.</param> //[iOSVersion(2)] //[Export("textViewDidChangeSelection")] //[Optional] void TextViewDidChangeSelection(UITextView textView); /// <summary> /// Asks the delegate if the specified text view should allow user interaction with the provided text attachment in the given range of text. /// </summary> /// <param name="textView">The text view containing the text attachment.</param> /// <param name="shouldInteractWithTextAttachment">The text attachment.</param> /// <param name="inRange">The character range containing the text attachment.</param> //[iOSVersion(7)] //[Export("textView")] //[Optional] bool TextView(UITextView textView, NSTextAttachment shouldInteractWithTextAttachment, NSRange inRange); /// <summary> /// Asks the delegate if the specified text view should allow user interaction with the given URL in the given range of text. /// </summary> /// <param name="textView">The text view containing the text attachment.</param> /// <param name="shouldInteractWithURL">The URL to be processed.</param> /// <param name="inRange">The character range containing the URL.</param> //[iOSVersion(7)] //[Export("textView")] //[Optional] bool TextView(UITextView textView, NSURL shouldInteractWithURL, NSRange inRange); } } \ 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 UITextViewDelegate protocol defines a set of optional methods you can use to receive editing-related messages for UITextView objects. All of the methods in this protocol are optional. You can use them in situations where you might want to adjust the text being edited (such as in the case of a spell checker program) or modify the intended insertion point. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITextViewDelegate_Protocol/index.html#//apple_ref/occ/intf/UITextViewDelegate"/> [iOSVersion(2)] public interface UITextViewDelegate//: NSObjectProtocol, UIScrollViewDelegate { /// <summary> /// Asks the delegate if editing should begin in the specified text view. /// </summary> /// <param name="textView">The text view for which editing is about to begin.</param> //[iOSVersion(2)] //[Export("textViewShouldBeginEditing")] //[Optional] //bool TextViewShouldBeginEditing(UITextView textView); /// <summary> /// Tells the delegate that editing of the specified text view has begun. /// </summary> /// <param name="textView">The text view in which editing began.</param> //[iOSVersion(2)] //[Export("textViewDidBeginEditing")] //[Optional] //void TextViewDidBeginEditing(UITextView textView); /// <summary> /// Asks the delegate if editing should stop in the specified text view. /// </summary> /// <param name="textView">The text view for which editing is about to end.</param> //[iOSVersion(2)] //[Export("textViewShouldEndEditing")] //[Optional] //bool TextViewShouldEndEditing(UITextView textView); /// <summary> /// Tells the delegate that editing of the specified text view has ended. /// </summary> /// <param name="textView">The text view in which editing ended.</param> //[iOSVersion(2)] //[Export("textViewDidEndEditing")] //[Optional] //void TextViewDidEndEditing(UITextView textView); /// <summary> /// Asks the delegate whether the specified text should be replaced in the text view. /// </summary> /// <param name="textView">The text view containing the changes.</param> /// <param name="shouldChangeTextInRange">The current selection range. If the length of the range is 0, range reflects the current insertion point. If the user presses the Delete key, the length of the range is 1 and an empty string object replaces that single character.</param> /// <param name="replacementText">The text to insert.</param> //[iOSVersion(2)] //[Export("textView")] //[Optional] //bool TextView(UITextView textView, NSRange shouldChangeTextInRange, string replacementText); /// <summary> /// Tells the delegate that the text or attributes in the specified text view were changed by the user. /// </summary> /// <param name="textView">The text view containing the changes.</param> //[iOSVersion(2)] //[Export("textViewDidChange")] //[Optional] //void TextViewDidChange(UITextView textView); /// <summary> /// Tells the delegate that the text selection changed in the specified text view. /// </summary> /// <param name="textView">The text view whose selection changed.</param> //[iOSVersion(2)] //[Export("textViewDidChangeSelection")] //[Optional] //void TextViewDidChangeSelection(UITextView textView); /// <summary> /// Asks the delegate if the specified text view should allow user interaction with the provided text attachment in the given range of text. /// </summary> /// <param name="textView">The text view containing the text attachment.</param> /// <param name="shouldInteractWithTextAttachment">The text attachment.</param> /// <param name="inRange">The character range containing the text attachment.</param> //[iOSVersion(7)] //[Export("textView")] //[Optional] //bool TextView(UITextView textView, NSTextAttachment shouldInteractWithTextAttachment, NSRange inRange); /// <summary> /// Asks the delegate if the specified text view should allow user interaction with the given URL in the given range of text. /// </summary> /// <param name="textView">The text view containing the text attachment.</param> /// <param name="shouldInteractWithURL">The URL to be processed.</param> /// <param name="inRange">The character range containing the URL.</param> //[iOSVersion(7)] //[Export("textView")] //[Optional] //bool TextView(UITextView textView, NSURL shouldInteractWithURL, NSRange inRange); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIVideoEditorControllerDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIVideoEditorControllerDelegate.cs
index 94c5d430..c80ba74b 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIVideoEditorControllerDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIVideoEditorControllerDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIVideoEditorControllerDelegate protocol defines methods that your delegate object must implement to respond to the video editor. The methods of this protocol notify your delegate when the system has saved an edited movie or the user has cancelled editing to discard any changes. There is also a method for responding to errors encountered by the video editor. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIVideoEditorControllerDelegate_ProtocolReference/index.html#//apple_ref/occ/intf/UIVideoEditorControllerDelegate"/> [iOSVersion(3.1)] public interface UIVideoEditorControllerDelegate//: NSObjectProtocol { /// <summary> /// Called when the system has finished saving an edited movie. (required) /// </summary> /// <param name="editor">The video editor that has finished editing and saving a movie.</param> /// <param name="didSaveEditedVideoToPath">The filesystem path to the edited movie.</param> //[iOSVersion(3.1)] //[Export("videoEditorController")] //[Optional] void VideoEditorController(UIVideoEditorController editor, string didSaveEditedVideoToPath); /// <summary> /// Called when the user has cancelled a movie editing operation. (required) /// </summary> /// <param name="editor">The video editor that the user cancelled, not wanting to save changes.</param> //[iOSVersion(3.1)] //[Export("videoEditorControllerDidCancel")] //[Optional] void VideoEditorControllerDidCancel(UIVideoEditorController editor); /// <summary> /// Called when the video editor is unable to load or save a movie. (required) /// </summary> /// <param name="editor">The video editor that was unable to load or save a movie.</param> /// <param name="didFailWithError">The loading or saving error.</param> //[iOSVersion(3.1)] //[Export("videoEditorController")] //[Optional] void VideoEditorController(UIVideoEditorController editor, NSError didFailWithError); } } \ 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 UIVideoEditorControllerDelegate protocol defines methods that your delegate object must implement to respond to the video editor. The methods of this protocol notify your delegate when the system has saved an edited movie or the user has cancelled editing to discard any changes. There is also a method for responding to errors encountered by the video editor. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIVideoEditorControllerDelegate_ProtocolReference/index.html#//apple_ref/occ/intf/UIVideoEditorControllerDelegate"/> [iOSVersion(3.1)] public interface UIVideoEditorControllerDelegate//: NSObjectProtocol { /// <summary> /// Called when the system has finished saving an edited movie. (required) /// </summary> /// <param name="editor">The video editor that has finished editing and saving a movie.</param> /// <param name="didSaveEditedVideoToPath">The filesystem path to the edited movie.</param> //[iOSVersion(3.1)] //[Export("videoEditorController")] //[Optional] //void VideoEditorController(UIVideoEditorController editor, string didSaveEditedVideoToPath); /// <summary> /// Called when the user has cancelled a movie editing operation. (required) /// </summary> /// <param name="editor">The video editor that the user cancelled, not wanting to save changes.</param> //[iOSVersion(3.1)] //[Export("videoEditorControllerDidCancel")] //[Optional] //void VideoEditorControllerDidCancel(UIVideoEditorController editor); /// <summary> /// Called when the video editor is unable to load or save a movie. (required) /// </summary> /// <param name="editor">The video editor that was unable to load or save a movie.</param> /// <param name="didFailWithError">The loading or saving error.</param> //[iOSVersion(3.1)] //[Export("videoEditorController")] //[Optional] //void VideoEditorController(UIVideoEditorController editor, NSError didFailWithError); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIViewControllerTransitioningDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIViewControllerTransitioningDelegate.cs
index fdd28854..f474db3f 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIViewControllerTransitioningDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIViewControllerTransitioningDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// An object that implements the UIViewControllerTransitioningDelegate protocol vends the objects used to manage a fixed-length or interactive transition between view controllers. When you want to present a view controller using a custom modal presentation type, set its modalTransitionStyle property to UIModalPresentationCustom and assign an object that conforms to this protocol to its transitioningDelegate property. When you present that view controller, UIKit queries your transitioning delegate for the objects to use when animating the view controller into position. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIViewControllerTransitioningDelegate_protocol/index.html#//apple_ref/occ/intf/UIViewControllerTransitioningDelegate"/> [iOSVersion(7)] public interface UIViewControllerTransitioningDelegate//: NSObjectProtocol { /// <summary> /// Asks your delegate for the transition animator object to use when presenting a view controller. /// </summary> /// <param name="presented">The view controller object that is about to be presented onscreen.</param> /// <param name="presentingController">The view controller that is presenting the view controller in the presented parameter. The object in this parameter could be the root view controller of the window, a parent view controller that is marked as defining the current context, or the last view controller that was presented. This view controller may or may not be the same as the one in the source parameter.</param> /// <param name="sourceController">The view controller whose presentViewController:animated:completion: method was called.</param> //[iOSVersion(7)] //[Export("animationControllerForPresentedController")] //[Optional] UIViewControllerAnimatedTransitioning AnimationControllerForPresentedController(UIViewController presented, UIViewController presentingController, UIViewController sourceController); /// <summary> /// Asks your delegate for the transition animator object to use when dismissing a view controller. /// </summary> /// <param name="dismissed">The view controller object that is about to be dismissed.</param> //[iOSVersion(7)] //[Export("animationControllerForDismissedController")] //[Optional] UIViewControllerAnimatedTransitioning AnimationControllerForDismissedController(UIViewController dismissed); /// <summary> /// Asks your delegate for the interactive animator object to use when presenting a view controller. /// </summary> /// <param name="animator">The transition animator object returned by your animationControllerForPresentedController:presentingController:sourceController: method.</param> //[iOSVersion(7)] //[Export("interactionControllerForPresentation")] //[Optional] UIViewControllerInteractiveTransitioning InteractionControllerForPresentation(UIViewControllerAnimatedTransitioning animator); /// <summary> /// Asks your delegate for the interactive animator object to use when dismissing a view controller. /// </summary> /// <param name="animator">The transition animator object returned by your animationControllerForDismissedController: method.</param> //[iOSVersion(7)] //[Export("interactionControllerForDismissal")] //[Optional] UIViewControllerInteractiveTransitioning InteractionControllerForDismissal(UIViewControllerAnimatedTransitioning animator); /// <summary> /// Asks your delegate for the custom presentation controller to use for managing the view hierarchy when presenting a view controller. /// </summary> /// <param name="presented">The view controller being presented.</param> /// <param name="presentingViewController">The view controller that is presenting the view controller in the presented parameter. The object in this parameter could be the root view controller of the window, a parent view controller that is marked as defining the current context, or the last view controller that was presented. This view controller may or may not be the same as the one in the source parameter. This parameter may also be nil to indicate that the presenting view controller will be determined later.</param> /// <param name="sourceViewController">The view controller whose presentViewController:animated:completion: method was called to initiate the presentation process.</param> //[iOSVersion(8)] //[Export("presentationControllerForPresentedViewController")] //[Optional] UIPresentationController PresentationControllerForPresentedViewController(UIViewController presented, UIViewController presentingViewController, UIViewController sourceViewController); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// An object that implements the UIViewControllerTransitioningDelegate protocol vends the objects used to manage a fixed-length or interactive transition between view controllers. When you want to present a view controller using a custom modal presentation type, set its modalTransitionStyle property to UIModalPresentationCustom and assign an object that conforms to this protocol to its transitioningDelegate property. When you present that view controller, UIKit queries your transitioning delegate for the objects to use when animating the view controller into position. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIViewControllerTransitioningDelegate_protocol/index.html#//apple_ref/occ/intf/UIViewControllerTransitioningDelegate"/> [iOSVersion(7)] public interface UIViewControllerTransitioningDelegate//: NSObjectProtocol { /// <summary> /// Asks your delegate for the transition animator object to use when presenting a view controller. /// </summary> /// <param name="presented">The view controller object that is about to be presented onscreen.</param> /// <param name="presentingController">The view controller that is presenting the view controller in the presented parameter. The object in this parameter could be the root view controller of the window, a parent view controller that is marked as defining the current context, or the last view controller that was presented. This view controller may or may not be the same as the one in the source parameter.</param> /// <param name="sourceController">The view controller whose presentViewController:animated:completion: method was called.</param> //[iOSVersion(7)] //[Export("animationControllerForPresentedController")] //[Optional] //UIViewControllerAnimatedTransitioning AnimationControllerForPresentedController(UIViewController presented, UIViewController presentingController, UIViewController sourceController); /// <summary> /// Asks your delegate for the transition animator object to use when dismissing a view controller. /// </summary> /// <param name="dismissed">The view controller object that is about to be dismissed.</param> //[iOSVersion(7)] //[Export("animationControllerForDismissedController")] //[Optional] //UIViewControllerAnimatedTransitioning AnimationControllerForDismissedController(UIViewController dismissed); /// <summary> /// Asks your delegate for the interactive animator object to use when presenting a view controller. /// </summary> /// <param name="animator">The transition animator object returned by your animationControllerForPresentedController:presentingController:sourceController: method.</param> //[iOSVersion(7)] //[Export("interactionControllerForPresentation")] //[Optional] //UIViewControllerInteractiveTransitioning InteractionControllerForPresentation(UIViewControllerAnimatedTransitioning animator); /// <summary> /// Asks your delegate for the interactive animator object to use when dismissing a view controller. /// </summary> /// <param name="animator">The transition animator object returned by your animationControllerForDismissedController: method.</param> //[iOSVersion(7)] //[Export("interactionControllerForDismissal")] //[Optional] //UIViewControllerInteractiveTransitioning InteractionControllerForDismissal(UIViewControllerAnimatedTransitioning animator); /// <summary> /// Asks your delegate for the custom presentation controller to use for managing the view hierarchy when presenting a view controller. /// </summary> /// <param name="presented">The view controller being presented.</param> /// <param name="presentingViewController">The view controller that is presenting the view controller in the presented parameter. The object in this parameter could be the root view controller of the window, a parent view controller that is marked as defining the current context, or the last view controller that was presented. This view controller may or may not be the same as the one in the source parameter. This parameter may also be nil to indicate that the presenting view controller will be determined later.</param> /// <param name="sourceViewController">The view controller whose presentViewController:animated:completion: method was called to initiate the presentation process.</param> //[iOSVersion(8)] //[Export("presentationControllerForPresentedViewController")] //[Optional] //UIPresentationController PresentationControllerForPresentedViewController(UIViewController presented, UIViewController presentingViewController, UIViewController sourceViewController); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/Delegates/UIWebViewDelegate.cs b/CocoaSharp/UIKit/Protocols/Delegates/UIWebViewDelegate.cs
index fe975346..ccac702f 100644
--- a/CocoaSharp/UIKit/Protocols/Delegates/UIWebViewDelegate.cs
+++ b/CocoaSharp/UIKit/Protocols/Delegates/UIWebViewDelegate.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIWebViewDelegate protocol defines methods that a delegate of a UIWebView object can optionally implement to intervene when web content is loaded. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIWebViewDelegate_Protocol/index.html#//apple_ref/occ/intf/UIWebViewDelegate"/> [iOSVersion(2)] public interface UIWebViewDelegate//: NSObjectProtocol { /// <summary> /// Sent before a web view begins loading a frame. /// </summary> /// <param name="webView">The web view that is about to load a new frame.</param> /// <param name="shouldStartLoadWithRequest">The content location.</param> /// <param name="navigationType">The type of user action that started the load request.</param> //[iOSVersion(2)] //[Export("webView")] //[Optional] bool WebView(UIWebView webView, NSURLRequest shouldStartLoadWithRequest, UIWebViewNavigationType navigationType); /// <summary> /// Sent after a web view starts loading a frame. /// </summary> /// <param name="webView">The web view that has begun loading a new frame.</param> //[iOSVersion(2)] //[Export("webViewDidStartLoad")] //[Optional] void WebViewDidStartLoad(UIWebView webView); /// <summary> /// Sent after a web view finishes loading a frame. /// </summary> /// <param name="webView">The web view has finished loading.</param> //[iOSVersion(2)] //[Export("webViewDidFinishLoad")] //[Optional] void WebViewDidFinishLoad(UIWebView webView); /// <summary> /// Sent if a web view failed to load a frame. /// </summary> /// <param name="webView">The web view that failed to load a frame.</param> /// <param name="didFailLoadWithError">The error that occurred during loading.</param> //[iOSVersion(2)] //[Export("webView")] //[Optional] void WebView(UIWebView webView, NSError didFailLoadWithError); } } \ 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 UIWebViewDelegate protocol defines methods that a delegate of a UIWebView object can optionally implement to intervene when web content is loaded. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIWebViewDelegate_Protocol/index.html#//apple_ref/occ/intf/UIWebViewDelegate"/> [iOSVersion(2)] public interface UIWebViewDelegate//: NSObjectProtocol { /// <summary> /// Sent before a web view begins loading a frame. /// </summary> /// <param name="webView">The web view that is about to load a new frame.</param> /// <param name="shouldStartLoadWithRequest">The content location.</param> /// <param name="navigationType">The type of user action that started the load request.</param> //[iOSVersion(2)] //[Export("webView")] //[Optional] //bool WebView(UIWebView webView, NSURLRequest shouldStartLoadWithRequest, UIWebViewNavigationType navigationType); /// <summary> /// Sent after a web view starts loading a frame. /// </summary> /// <param name="webView">The web view that has begun loading a new frame.</param> //[iOSVersion(2)] //[Export("webViewDidStartLoad")] //[Optional] //void WebViewDidStartLoad(UIWebView webView); /// <summary> /// Sent after a web view finishes loading a frame. /// </summary> /// <param name="webView">The web view has finished loading.</param> //[iOSVersion(2)] //[Export("webViewDidFinishLoad")] //[Optional] //void WebViewDidFinishLoad(UIWebView webView); /// <summary> /// Sent if a web view failed to load a frame. /// </summary> /// <param name="webView">The web view that failed to load a frame.</param> /// <param name="didFailLoadWithError">The error that occurred during loading.</param> //[iOSVersion(2)] //[Export("webView")] //[Optional] //void WebView(UIWebView webView, NSError didFailLoadWithError); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UIAccessibility.cs b/CocoaSharp/UIKit/Protocols/UIAccessibility.cs
index 3f38825c..5811ce7b 100644
--- a/CocoaSharp/UIKit/Protocols/UIAccessibility.cs
+++ b/CocoaSharp/UIKit/Protocols/UIAccessibility.cs
@@ -1 +1,28 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIAccessibility informal protocol provides accessibility information about an application’s user interface elements. Assistive applications, such as VoiceOver, convey this information to users with disabilities to help them use the application. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIAccessibility_Protocol/index.html#//apple_ref/doc/uid/TP40008786"/> [iOSVersion(3)] public interface UIAccessibility//: { /// <summary> /// Accessibility traits that tell an assistive application how an accessibility element behaves or should be treated. /// </summary> UIAccessibilityTraits var UIAccessibilityTraitButton: UIAccessibilityTraits var UIAccessibilityTraitLink: UIAccessibilityTraits var UIAccessibilityTraitSearchField: UIAccessibilityTraits var UIAccessibilityTraitImage: UIAccessibilityTraits var UIAccessibilityTraitSelected: UIAccessibilityTraits var UIAccessibilityTraitPlaysSound: UIAccessibilityTraits var UIAccessibilityTraitKeyboardKey: UIAccessibilityTraits var UIAccessibilityTraitStaticText: UIAccessibilityTraits var UIAccessibilityTraitSummaryElement: UIAccessibilityTraits var UIAccessibilityTraitNotEnabled: UIAccessibilityTraits var UIAccessibilityTraitUpdatesFrequently: UIAccessibilityTraits var UIAccessibilityTraitStartsMediaSession: UIAccessibilityTraits var UIAccessibilityTraitAdjustable: UIAccessibilityTraits var UIAccessibilityTraitAllowsDirectInteraction: UIAccessibilityTraits var UIAccessibilityTraitCausesPageTurn: UIAccessibilityTraits var UIAccessibilityTraitHeader: UIAccessibilityTraits UIAccessibilityTraitNone { get; set; } } /// <summary> /// The types of system Zoom that can be in effect. /// </summary> [iOSVersion(5)] public enum UIAccessibilityZoomType { /// <summary> /// The system zoom type is the text insertion point. /// </summary> [iOSVersion(5)] InsertionPoint, } /// <summary> /// A mask that contains the OR combination of the accessibility traits that best characterize an accessibility element. /// </summary> [iOSVersion(3)] public struct UIAccessibilityTraits { static public implicit operator UIAccessibilityTraits(UInt64 value) { return default(UIAccessibilityTraits); } static public implicit operator UInt64(UIAccessibilityTraits value) { return default(UInt64); } } /// <summary> /// A notification that an accessible application can send. /// </summary> [iOSVersion(3)] public struct UIAccessibilityNotifications { static public implicit operator UIAccessibilityNotifications(uint value) { return default(UIAccessibilityNotifications); } static public implicit operator uint(UIAccessibilityNotifications value) { return default(uint); } } /// <summary> /// Use this notification to provide accessibility information about events that do not update the application user interface (UI), or that update the UI only briefly. /// </summary> [iOSVersion(4)] public class UIAccessibilityAnnouncementNotification : NSNotification { public UIAccessibilityAnnouncementNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(6)] public class UIAccessibilityAnnouncementDidFinishNotification : NSNotification { public UIAccessibilityAnnouncementDidFinishNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(5)] public class UIAccessibilityClosedCaptioningStatusDidChangeNotification : NSNotification { public UIAccessibilityClosedCaptioningStatusDidChangeNotification() : base("", null) { } } /// <summary> /// You can also use the UIAccessibilityIsGuidedAccessEnabled function to determine whether guided access is currently enabled. /// </summary> [iOSVersion(6)] public class UIAccessibilityGuidedAccessStatusDidChangeNotification : NSNotification { public UIAccessibilityGuidedAccessStatusDidChangeNotification() : base("", null) { } } /// <summary> /// You can also use the UIAccessibilityIsInvertColorsEnabled function to determine whether colors are currently inverted. /// </summary> [iOSVersion(6)] public class UIAccessibilityInvertColorsStatusDidChangeNotification : NSNotification { public UIAccessibilityInvertColorsStatusDidChangeNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(3)] public class UIAccessibilityLayoutChangedNotification : NSNotification { public UIAccessibilityLayoutChangedNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(5)] public class UIAccessibilityMonoAudioStatusDidChangeNotification : NSNotification { public UIAccessibilityMonoAudioStatusDidChangeNotification() : base("", null) { } } /// <summary> /// You can use this notification to provide custom information about the contents of the screen after a user performs a VoiceOver scroll gesture. For example, a tab-based application might provide a string such as “Tab 3 of 5,” or an application that displays information in pages might provide a string such as “Page 19 of 27.” /// </summary> [iOSVersion(4.2)] public class UIAccessibilityPageScrolledNotification : NSNotification { public UIAccessibilityPageScrolledNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(3)] public class UIAccessibilityScreenChangedNotification : NSNotification { public UIAccessibilityScreenChangedNotification() : base("", null) { } } /// <summary> /// You can use this notification to customize your application’s user interface (UI) for VoiceOver users. For example, if you display a UI element that briefly overlays other parts of your UI, you can make the display persistent for VoiceOver users, but allow it to disappear as designed for users who are not using VoiceOver. You can also use the UIAccessibilityIsVoiceOverRunning function to determine whether VoiceOver is currently running. /// </summary> [iOSVersion(4)] public class UIAccessibilityVoiceOverStatusChanged : NSNotification { public UIAccessibilityVoiceOverStatusChanged() : base("", null) { } } } \ 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 UIAccessibility informal protocol provides accessibility information about an application’s user interface elements. Assistive applications, such as VoiceOver, convey this information to users with disabilities to help them use the application. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIAccessibility_Protocol/index.html#//apple_ref/doc/uid/TP40008786"/> [iOSVersion(3)] public interface UIAccessibility//: { /// <summary> /// Accessibility traits that tell an assistive application how an accessibility element behaves or should be treated. /// </summary> //UIAccessibilityTraits var UIAccessibilityTraitButton: UIAccessibilityTraits var UIAccessibilityTraitLink: UIAccessibilityTraits var UIAccessibilityTraitSearchField: UIAccessibilityTraits var UIAccessibilityTraitImage: UIAccessibilityTraits var UIAccessibilityTraitSelected: UIAccessibilityTraits var UIAccessibilityTraitPlaysSound: UIAccessibilityTraits var UIAccessibilityTraitKeyboardKey: UIAccessibilityTraits var UIAccessibilityTraitStaticText: UIAccessibilityTraits var UIAccessibilityTraitSummaryElement: UIAccessibilityTraits var UIAccessibilityTraitNotEnabled: UIAccessibilityTraits var UIAccessibilityTraitUpdatesFrequently: UIAccessibilityTraits var UIAccessibilityTraitStartsMediaSession: UIAccessibilityTraits var UIAccessibilityTraitAdjustable: UIAccessibilityTraits var UIAccessibilityTraitAllowsDirectInteraction: UIAccessibilityTraits var UIAccessibilityTraitCausesPageTurn: UIAccessibilityTraits var UIAccessibilityTraitHeader: UIAccessibilityTraits UIAccessibilityTraitNone { get; set; } } /// <summary> /// The types of system Zoom that can be in effect. /// </summary> [iOSVersion(5)] public enum UIAccessibilityZoomType { /// <summary> /// The system zoom type is the text insertion point. /// </summary> [iOSVersion(5)] InsertionPoint, }
+
+ //TODO: comment/double-check this
+ /// <summary>
+ /// Accessibility traits that tell an assistive application how an accessibility element behaves or should be treated.
+ /// </summary>
+ public enum UIAccessibilityTraits
+ {
+ UIAccessibilityTraitButton,
+ UIAccessibilityTraitLink,
+ UIAccessibilityTraitSearchField,
+ UIAccessibilityTraitImage,
+ UIAccessibilityTraitSelected,
+ UIAccessibilityTraitPlaysSound,
+ UIAccessibilityTraitKeyboardKey,
+ UIAccessibilityTraitStaticText,
+ UIAccessibilityTraitSummaryElement,
+ UIAccessibilityTraitNotEnabled,
+ UIAccessibilityTraitUpdatesFrequently,
+ UIAccessibilityTraitStartsMediaSession,
+ UIAccessibilityTraitAdjustable,
+ UIAccessibilityTraitAllowsDirectInteraction,
+ UIAccessibilityTraitCausesPageTurn,
+ UIAccessibilityTraitHeader,
+ UIAccessibilityTraitNone
+ }
+
+ /// <summary> /// A notification that an accessible application can send. /// </summary> [iOSVersion(3)] public struct UIAccessibilityNotifications { static public implicit operator UIAccessibilityNotifications(uint value) { return default(UIAccessibilityNotifications); } static public implicit operator uint(UIAccessibilityNotifications value) { return default(uint); } } /// <summary> /// Use this notification to provide accessibility information about events that do not update the application user interface (UI), or that update the UI only briefly. /// </summary> [iOSVersion(4)] public class UIAccessibilityAnnouncementNotification : NSNotification { public UIAccessibilityAnnouncementNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(6)] public class UIAccessibilityAnnouncementDidFinishNotification : NSNotification { public UIAccessibilityAnnouncementDidFinishNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(5)] public class UIAccessibilityClosedCaptioningStatusDidChangeNotification : NSNotification { public UIAccessibilityClosedCaptioningStatusDidChangeNotification() : base("", null) { } } /// <summary> /// You can also use the UIAccessibilityIsGuidedAccessEnabled function to determine whether guided access is currently enabled. /// </summary> [iOSVersion(6)] public class UIAccessibilityGuidedAccessStatusDidChangeNotification : NSNotification { public UIAccessibilityGuidedAccessStatusDidChangeNotification() : base("", null) { } } /// <summary> /// You can also use the UIAccessibilityIsInvertColorsEnabled function to determine whether colors are currently inverted. /// </summary> [iOSVersion(6)] public class UIAccessibilityInvertColorsStatusDidChangeNotification : NSNotification { public UIAccessibilityInvertColorsStatusDidChangeNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(3)] public class UIAccessibilityLayoutChangedNotification : NSNotification { public UIAccessibilityLayoutChangedNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(5)] public class UIAccessibilityMonoAudioStatusDidChangeNotification : NSNotification { public UIAccessibilityMonoAudioStatusDidChangeNotification() : base("", null) { } } /// <summary> /// You can use this notification to provide custom information about the contents of the screen after a user performs a VoiceOver scroll gesture. For example, a tab-based application might provide a string such as “Tab 3 of 5,” or an application that displays information in pages might provide a string such as “Page 19 of 27.” /// </summary> [iOSVersion(4.2)] public class UIAccessibilityPageScrolledNotification : NSNotification { public UIAccessibilityPageScrolledNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(3)] public class UIAccessibilityScreenChangedNotification : NSNotification { public UIAccessibilityScreenChangedNotification() : base("", null) { } } /// <summary> /// You can use this notification to customize your application’s user interface (UI) for VoiceOver users. For example, if you display a UI element that briefly overlays other parts of your UI, you can make the display persistent for VoiceOver users, but allow it to disappear as designed for users who are not using VoiceOver. You can also use the UIAccessibilityIsVoiceOverRunning function to determine whether VoiceOver is currently running. /// </summary> [iOSVersion(4)] public class UIAccessibilityVoiceOverStatusChanged : NSNotification { public UIAccessibilityVoiceOverStatusChanged() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UIAccessibilityContainer.cs b/CocoaSharp/UIKit/Protocols/UIAccessibilityContainer.cs
index 71af977a..a8350c35 100644
--- a/CocoaSharp/UIKit/Protocols/UIAccessibilityContainer.cs
+++ b/CocoaSharp/UIKit/Protocols/UIAccessibilityContainer.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace { /// <summary> /// The UIAccessibilityContainer informal protocol provides a way for UIView subclasses to make selected components accessible as separate elements. For example, a view might contain icons or drawn text that, to end users, appear and function as separate items. But because these components are not implemented as instances of UIView, they are not automatically accessible to users with disabilities. Therefore, such a container view should implement the UIAccessibilityContainer methods to supply accessibility information about these components to assistive applications such as VoiceOver. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIAccessibilityContainer_Protocol/index.html#//apple_ref/doc/uid/TP40008787"/> [iOSVersion(3)] public interface UIAccessibilityContainer//: { } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit //TODO: check this { /// <summary> /// The UIAccessibilityContainer informal protocol provides a way for UIView subclasses to make selected components accessible as separate elements. For example, a view might contain icons or drawn text that, to end users, appear and function as separate items. But because these components are not implemented as instances of UIView, they are not automatically accessible to users with disabilities. Therefore, such a container view should implement the UIAccessibilityContainer methods to supply accessibility information about these components to assistive applications such as VoiceOver. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIAccessibilityContainer_Protocol/index.html#//apple_ref/doc/uid/TP40008787"/> [iOSVersion(3)] public interface UIAccessibilityContainer//: { } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UIAccessibilityFocus.cs b/CocoaSharp/UIKit/Protocols/UIAccessibilityFocus.cs
index fe53d81c..3113820e 100644
--- a/CocoaSharp/UIKit/Protocols/UIAccessibilityFocus.cs
+++ b/CocoaSharp/UIKit/Protocols/UIAccessibilityFocus.cs
@@ -1 +1,2 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace { /// <summary> /// The UIAccessibilityFocus informal protocol provides a way to find out whether an assistive technology, such as VoiceOver, is focused on an accessible element. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIAccessibilityFocus_Protocol/index.html#//apple_ref/doc/uid/TP40009679"/> [iOSVersion(4)] public interface UIAccessibilityFocus//: { } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit //TODO: check this
+{ /// <summary> /// The UIAccessibilityFocus informal protocol provides a way to find out whether an assistive technology, such as VoiceOver, is focused on an accessible element. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIAccessibilityFocus_Protocol/index.html#//apple_ref/doc/uid/TP40009679"/> [iOSVersion(4)] public interface UIAccessibilityFocus//: { } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UIActivityItemSource.cs b/CocoaSharp/UIKit/Protocols/UIActivityItemSource.cs
index c458af2f..4dac0454 100644
--- a/CocoaSharp/UIKit/Protocols/UIActivityItemSource.cs
+++ b/CocoaSharp/UIKit/Protocols/UIActivityItemSource.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIActivityItemSource protocol defines the methods used by a UIActivityViewController object to retrieve the data items to act on. You can use this protocol in situations where you want to provide the data from one of your app’s existing objects instead of creating a separate UIActivityItemProvider object. When implementing this protocol, your object becomes the data provider, providing the view controller with access to the items. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIActivityItemSource_protocol/index.html#//apple_ref/occ/intf/UIActivityItemSource"/> [iOSVersion(6)] public interface UIActivityItemSource//: NSObjectProtocol { /// <summary> /// Returns the placeholder object for the data. (required) /// </summary> /// <param name="activityViewController">The activity view controller object requesting the placeholder item.</param> [iOSVersion(6)] [Export("activityViewControllerPlaceholderItem")] AnyObject ActivityViewControllerPlaceholderItem(UIActivityViewController activityViewController); /// <summary> /// Returns the data object to be acted upon. (required) /// </summary> /// <param name="activityViewController">The activity view controller object requesting the data item.</param> /// <param name="itemForActivityType">The type of activity to be performed with the data object. You can use this string to decide how best to prepare the data object.</param> [iOSVersion(6)] [Export("activityViewController")] AnyObject ActivityViewController(UIActivityViewController activityViewController, string itemForActivityType); /// <summary> /// For activities that support a subject field, returns the subject for the item. /// </summary> /// <param name="activityViewController">The activity view controller object requesting information about the data item.</param> /// <param name="subjectForActivityType">The selected activity type; may be nil.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("activityViewController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] string ActivityViewController(UIActivityViewController activityViewController, string subjectForActivityType, bool NAME_YOUR_PARAMS = false); /// <summary> /// For items that are provided as NSData, returns the UTI for the item. /// </summary> /// <param name="activityViewController">The activity view controller object requesting information about the data item.</param> /// <param name="dataTypeIdentifierForActivityType">The selected activity type; may be nil.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("activityViewController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] string ActivityViewController(UIActivityViewController activityViewController, string dataTypeIdentifierForActivityType, int NAME_YOUR_PARAMS = 0); /// <summary> /// For activities that support a preview image, returns a thumbnail preview image for the item. /// </summary> /// <param name="activityViewController">The activity view controller object requesting information about the data item.</param> /// <param name="thumbnailImageForActivityType">The selected activity type.</param> /// <param name="suggestedSize">The suggested size for the thumbnail image, in points. You should provide an image using the appropriate scale for the screen. Images provided at the suggested size will result in the best experience.</param> //[iOSVersion(7)] //[Export("activityViewController")] //[Optional] UIImage ActivityViewController(UIActivityViewController activityViewController, string thumbnailImageForActivityType, CGSize suggestedSize); } } \ 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 UIActivityItemSource protocol defines the methods used by a UIActivityViewController object to retrieve the data items to act on. You can use this protocol in situations where you want to provide the data from one of your app’s existing objects instead of creating a separate UIActivityItemProvider object. When implementing this protocol, your object becomes the data provider, providing the view controller with access to the items. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIActivityItemSource_protocol/index.html#//apple_ref/occ/intf/UIActivityItemSource"/> [iOSVersion(6)] public interface UIActivityItemSource//: NSObjectProtocol { /// <summary> /// Returns the placeholder object for the data. (required) /// </summary> /// <param name="activityViewController">The activity view controller object requesting the placeholder item.</param> [iOSVersion(6)] [Export("activityViewControllerPlaceholderItem")] AnyObject ActivityViewControllerPlaceholderItem(UIActivityViewController activityViewController); /// <summary> /// Returns the data object to be acted upon. (required) /// </summary> /// <param name="activityViewController">The activity view controller object requesting the data item.</param> /// <param name="itemForActivityType">The type of activity to be performed with the data object. You can use this string to decide how best to prepare the data object.</param> [iOSVersion(6)] [Export("activityViewController")] AnyObject ActivityViewController(UIActivityViewController activityViewController, string itemForActivityType); /// <summary> /// For activities that support a subject field, returns the subject for the item. /// </summary> /// <param name="activityViewController">The activity view controller object requesting information about the data item.</param> /// <param name="subjectForActivityType">The selected activity type; may be nil.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("activityViewController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //string ActivityViewController(UIActivityViewController activityViewController, string subjectForActivityType, bool NAME_YOUR_PARAMS = false); /// <summary> /// For items that are provided as NSData, returns the UTI for the item. /// </summary> /// <param name="activityViewController">The activity view controller object requesting information about the data item.</param> /// <param name="dataTypeIdentifierForActivityType">The selected activity type; may be nil.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(7)] //[Export("activityViewController")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //string ActivityViewController(UIActivityViewController activityViewController, string dataTypeIdentifierForActivityType, int NAME_YOUR_PARAMS = 0); /// <summary> /// For activities that support a preview image, returns a thumbnail preview image for the item. /// </summary> /// <param name="activityViewController">The activity view controller object requesting information about the data item.</param> /// <param name="thumbnailImageForActivityType">The selected activity type.</param> /// <param name="suggestedSize">The suggested size for the thumbnail image, in points. You should provide an image using the appropriate scale for the screen. Images provided at the suggested size will result in the best experience.</param> //[iOSVersion(7)] //[Export("activityViewController")] //[Optional] //UIImage ActivityViewController(UIActivityViewController activityViewController, string thumbnailImageForActivityType, CGSize suggestedSize); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UIBarPositioning.cs b/CocoaSharp/UIKit/Protocols/UIBarPositioning.cs
index 8f853060..c665021c 100644
--- a/CocoaSharp/UIKit/Protocols/UIBarPositioning.cs
+++ b/CocoaSharp/UIKit/Protocols/UIBarPositioning.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIBarPositioning protocol defines the ways that bars can be positioned on iOS devices. Bars can be positioned at the bottom of their enclosing view, at the top of their enclosing view, or at both the top of their enclosing view and also the top of the screen. In this last case, the bar will abut the status bar displayed by the system. Bars in this position need to have their background extend above their own frame to the top of the screen. This allows the background to show through the status bar. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIBarPositioning_Protocol/index.html#//apple_ref/occ/intf/UIBarPositioning"/> [iOSVersion(7)] public interface UIBarPositioning//: NSObjectProtocol { /// <summary> /// The position of the bar. (required) /// </summary> [iOSVersion(7)] [Export("barPosition")] UIBarPosition BarPosition { get; private set; } } /// <summary> /// Constants to specify metrics to use for appearance. /// </summary> [iOSVersion(5)] public enum UIBarMetrics { /// <summary> /// Specifies default metrics for the device. /// </summary> [iOSVersion(5)] Default, /// <summary> /// /// </summary> Compact, /// <summary> /// Specifies default metrics for the device for bars with the prompt property, such as UINavigationBar and UISearchBar. /// </summary> [iOSVersion(7)] DefaultPrompt, /// <summary> /// /// </summary> CompactPrompt, } /// <summary> /// Constants to identify the position of a bar. /// </summary> [iOSVersion(7)] public enum UIBarPosition { /// <summary> /// Specifies that the position is unspecified. /// </summary> [iOSVersion(7)] Any, /// <summary> /// Specifies that the bar is at the bottom of its containing view. /// The system uses this as a hint to draw directional decoration accordingly. For example, any shadow would be drawn above the bar. /// </summary> [iOSVersion(7)] Bottom, /// <summary> /// Specifies that the bar is at the top of its containing view. /// The system uses this as a hint to draw directional decoration accordingly. For example, any shadow would be drawn below the bar. /// Instances of UIToolbar do not appear with this position on iPhone, but they can on iPad. /// </summary> [iOSVersion(7)] Top, /// <summary> /// Specifies that the bar is at the top of the screen, as well as its containing view. /// Bars with this position draw their background extended upwards, allowing their background content to show through the status bar. /// </summary> [iOSVersion(7)] TopAttached, } } \ 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 UIBarPositioning protocol defines the ways that bars can be positioned on iOS devices. Bars can be positioned at the bottom of their enclosing view, at the top of their enclosing view, or at both the top of their enclosing view and also the top of the screen. In this last case, the bar will abut the status bar displayed by the system. Bars in this position need to have their background extend above their own frame to the top of the screen. This allows the background to show through the status bar. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIBarPositioning_Protocol/index.html#//apple_ref/occ/intf/UIBarPositioning"/> [iOSVersion(7)] public interface UIBarPositioning//: NSObjectProtocol { /// <summary> /// The position of the bar. (required) /// </summary> [iOSVersion(7)] [Export("barPosition")] UIBarPosition BarPosition { get; } } /// <summary> /// Constants to specify metrics to use for appearance. /// </summary> [iOSVersion(5)] public enum UIBarMetrics { /// <summary> /// Specifies default metrics for the device. /// </summary> [iOSVersion(5)] Default, /// <summary> /// /// </summary> Compact, /// <summary> /// Specifies default metrics for the device for bars with the prompt property, such as UINavigationBar and UISearchBar. /// </summary> [iOSVersion(7)] DefaultPrompt, /// <summary> /// /// </summary> CompactPrompt, } /// <summary> /// Constants to identify the position of a bar. /// </summary> [iOSVersion(7)] public enum UIBarPosition { /// <summary> /// Specifies that the position is unspecified. /// </summary> [iOSVersion(7)] Any, /// <summary> /// Specifies that the bar is at the bottom of its containing view. /// The system uses this as a hint to draw directional decoration accordingly. For example, any shadow would be drawn above the bar. /// </summary> [iOSVersion(7)] Bottom, /// <summary> /// Specifies that the bar is at the top of its containing view. /// The system uses this as a hint to draw directional decoration accordingly. For example, any shadow would be drawn below the bar. /// Instances of UIToolbar do not appear with this position on iPhone, but they can on iPad. /// </summary> [iOSVersion(7)] Top, /// <summary> /// Specifies that the bar is at the top of the screen, as well as its containing view. /// Bars with this position draw their background extended upwards, allowing their background content to show through the status bar. /// </summary> [iOSVersion(7)] TopAttached, } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UICollectionViewDataSource.cs b/CocoaSharp/UIKit/Protocols/UICollectionViewDataSource.cs
index 7de626f8..0d3c91cf 100644
--- a/CocoaSharp/UIKit/Protocols/UICollectionViewDataSource.cs
+++ b/CocoaSharp/UIKit/Protocols/UICollectionViewDataSource.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// An object that adopts the UICollectionViewDataSource protocol is responsible for providing the data and views required by a collection view. A data source object represents your app’s data model and vends information to the collection view as needed. It also handles the creation and configuration of cells and supplementary views used by the collection view to display your data. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UICollectionViewDataSource_protocol/index.html#//apple_ref/occ/intf/UICollectionViewDataSource"/> [iOSVersion(6)] public interface UICollectionViewDataSource//: NSObjectProtocol { /// <summary> /// Asks the data source for the number of items in the specified section. (required) /// </summary> /// <param name="collectionView">An object representing the collection view requesting this information.</param> /// <param name="numberOfItemsInSection">An index number identifying a section in collectionView. This index value is 0-based.</param> [iOSVersion(6)] [Export("collectionView")] int CollectionView(UICollectionView collectionView, int numberOfItemsInSection); /// <summary> /// Asks the data source for the number of sections in the collection view. /// </summary> /// <param name="collectionView">An object representing the collection view requesting this information.</param> //[iOSVersion(6)] //[Export("numberOfSectionsInCollectionView")] //[Optional] int NumberOfSectionsInCollectionView(UICollectionView collectionView); /// <summary> /// Asks the data source for the cell that corresponds to the specified item in the collection view. (required) /// </summary> /// <param name="collectionView">An object representing the collection view requesting this information.</param> /// <param name="cellForItemAtIndexPath">The index path that specifies the location of the item.</param> [iOSVersion(6)] [Export("collectionView")] UICollectionViewCell CollectionView(UICollectionView collectionView, NSIndexPath cellForItemAtIndexPath); /// <summary> /// Asks the collection view to provide a supplementary view to display in the collection view. /// </summary> /// <param name="collectionView">An object representing the collection view requesting this information.</param> /// <param name="viewForSupplementaryElementOfKind">The kind of supplementary view to provide. The value of this string is defined by the layout object that supports the supplementary view.</param> /// <param name="atIndexPath">The index path that specifies the location of the new supplementary view.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] UICollectionReusableView CollectionView(UICollectionView collectionView, string viewForSupplementaryElementOfKind, NSIndexPath atIndexPath); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// An object that adopts the UICollectionViewDataSource protocol is responsible for providing the data and views required by a collection view. A data source object represents your app’s data model and vends information to the collection view as needed. It also handles the creation and configuration of cells and supplementary views used by the collection view to display your data. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UICollectionViewDataSource_protocol/index.html#//apple_ref/occ/intf/UICollectionViewDataSource"/> [iOSVersion(6)] public interface UICollectionViewDataSource//: NSObjectProtocol { /// <summary> /// Asks the data source for the number of items in the specified section. (required) /// </summary> /// <param name="collectionView">An object representing the collection view requesting this information.</param> /// <param name="numberOfItemsInSection">An index number identifying a section in collectionView. This index value is 0-based.</param> [iOSVersion(6)] [Export("collectionView")] int CollectionView(UICollectionView collectionView, int numberOfItemsInSection); /// <summary> /// Asks the data source for the number of sections in the collection view. /// </summary> /// <param name="collectionView">An object representing the collection view requesting this information.</param> //[iOSVersion(6)] //[Export("numberOfSectionsInCollectionView")] //[Optional] //int NumberOfSectionsInCollectionView(UICollectionView collectionView); /// <summary> /// Asks the data source for the cell that corresponds to the specified item in the collection view. (required) /// </summary> /// <param name="collectionView">An object representing the collection view requesting this information.</param> /// <param name="cellForItemAtIndexPath">The index path that specifies the location of the item.</param> [iOSVersion(6)] [Export("collectionView")] UICollectionViewCell CollectionView(UICollectionView collectionView, NSIndexPath cellForItemAtIndexPath); /// <summary> /// Asks the collection view to provide a supplementary view to display in the collection view. /// </summary> /// <param name="collectionView">An object representing the collection view requesting this information.</param> /// <param name="viewForSupplementaryElementOfKind">The kind of supplementary view to provide. The value of this string is defined by the layout object that supports the supplementary view.</param> /// <param name="atIndexPath">The index path that specifies the location of the new supplementary view.</param> //[iOSVersion(6)] //[Export("collectionView")] //[Optional] //UICollectionReusableView CollectionView(UICollectionView collectionView, string viewForSupplementaryElementOfKind, NSIndexPath atIndexPath); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UIContentContainer.cs b/CocoaSharp/UIKit/Protocols/UIContentContainer.cs
index 8ae31cb1..9c453af4 100644
--- a/CocoaSharp/UIKit/Protocols/UIContentContainer.cs
+++ b/CocoaSharp/UIKit/Protocols/UIContentContainer.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The methods of the UIContentContainer protocol help you adapt the contents of your view controllers to size and trait changes. All UIViewController and UIPresentationController objects provide default implementations for the methods of this protocol. When creating your own custom view controller or presentation controller, you can override the default implementations to make adjustments to your content. For example, you might use these methods to adjust the size or position of any child view controllers. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIContentContainer_Ref/index.html#//apple_ref/occ/intf/UIContentContainer"/> [iOSVersion(8)] public interface UIContentContainer//: NSObjectProtocol { /// <summary> /// Notifies the container that the size of its view is about to change. (required) /// </summary> /// <param name="size">The new size for the container’s view.</param> /// <param name="withTransitionCoordinator">The transition coordinator object managing the size change. You can use this object to animate your changes or get information about the transition that is in progress.</param> [iOSVersion(8)] [Export("viewWillTransitionToSize")] void ViewWillTransitionToSize(CGSize size, UIViewControllerTransitionCoordinator withTransitionCoordinator); /// <summary> /// Notifies the container that its trait collection changed. (required) /// </summary> /// <param name="newCollection">The traits to be applied to the container.</param> /// <param name="withTransitionCoordinator">The transition coordinator object managing the trait change. You can use this object to animate any changes or to get information about the transition that is in progress.</param> [iOSVersion(8)] [Export("willTransitionToTraitCollection")] void WillTransitionToTraitCollection(UITraitCollection newCollection, UIViewControllerTransitionCoordinator withTransitionCoordinator); /// <summary> /// Returns the size of the specified child view controller’s content. (required) /// </summary> /// <param name="container">The child view controller.</param> /// <param name="withParentContainerSize">The size of the parent view controller.</param> [iOSVersion(8)] [Export("sizeForChildContentContainer")] CGSize SizeForChildContentContainer(UIContentContainer container, CGSize withParentContainerSize); /// <summary> /// Notifies an interested controller that the preferred content size of one of its children changed. /// </summary> /// <param name="container">The child view controller who’s preferred content size has changed.</param> [iOSVersion(8)] [Export("preferredContentSizeDidChangeForChildContentContainer")] void PreferredContentSizeDidChangeForChildContentContainer(UIContentContainer container); /// <summary> /// Notifies the container that a child view controller was resized using auto layout. /// </summary> /// <param name="container">The child view controller that received the resizing message.</param> [iOSVersion(8)] [Export("systemLayoutFittingSizeDidChangeForChildContentContainer")] void SystemLayoutFittingSizeDidChangeForChildContentContainer(UIContentContainer container); /// <summary> /// The preferred size for the container’s content. (required) (read-only) /// </summary> [iOSVersion(8)] [Export("preferredContentSize")] CGSize PreferredContentSize { get; private set; } } } \ 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 methods of the UIContentContainer protocol help you adapt the contents of your view controllers to size and trait changes. All UIViewController and UIPresentationController objects provide default implementations for the methods of this protocol. When creating your own custom view controller or presentation controller, you can override the default implementations to make adjustments to your content. For example, you might use these methods to adjust the size or position of any child view controllers. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIContentContainer_Ref/index.html#//apple_ref/occ/intf/UIContentContainer"/> [iOSVersion(8)] public interface UIContentContainer//: NSObjectProtocol { /// <summary> /// Notifies the container that the size of its view is about to change. (required) /// </summary> /// <param name="size">The new size for the container’s view.</param> /// <param name="withTransitionCoordinator">The transition coordinator object managing the size change. You can use this object to animate your changes or get information about the transition that is in progress.</param> [iOSVersion(8)] [Export("viewWillTransitionToSize")] void ViewWillTransitionToSize(CGSize size, UIViewControllerTransitionCoordinator withTransitionCoordinator); /// <summary> /// Notifies the container that its trait collection changed. (required) /// </summary> /// <param name="newCollection">The traits to be applied to the container.</param> /// <param name="withTransitionCoordinator">The transition coordinator object managing the trait change. You can use this object to animate any changes or to get information about the transition that is in progress.</param> [iOSVersion(8)] [Export("willTransitionToTraitCollection")] void WillTransitionToTraitCollection(UITraitCollection newCollection, UIViewControllerTransitionCoordinator withTransitionCoordinator); /// <summary> /// Returns the size of the specified child view controller’s content. (required) /// </summary> /// <param name="container">The child view controller.</param> /// <param name="withParentContainerSize">The size of the parent view controller.</param> [iOSVersion(8)] [Export("sizeForChildContentContainer")] CGSize SizeForChildContentContainer(UIContentContainer container, CGSize withParentContainerSize); /// <summary> /// Notifies an interested controller that the preferred content size of one of its children changed. /// </summary> /// <param name="container">The child view controller who’s preferred content size has changed.</param> [iOSVersion(8)] [Export("preferredContentSizeDidChangeForChildContentContainer")] void PreferredContentSizeDidChangeForChildContentContainer(UIContentContainer container); /// <summary> /// Notifies the container that a child view controller was resized using auto layout. /// </summary> /// <param name="container">The child view controller that received the resizing message.</param> [iOSVersion(8)] [Export("systemLayoutFittingSizeDidChangeForChildContentContainer")] void SystemLayoutFittingSizeDidChangeForChildContentContainer(UIContentContainer container); /// <summary> /// The preferred size for the container’s content. (required) (read-only) /// </summary> [iOSVersion(8)] [Export("preferredContentSize")] CGSize PreferredContentSize { get; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UICoordinateSpace.cs b/CocoaSharp/UIKit/Protocols/UICoordinateSpace.cs
index 84df9eb6..3e5e96fa 100644
--- a/CocoaSharp/UIKit/Protocols/UICoordinateSpace.cs
+++ b/CocoaSharp/UIKit/Protocols/UICoordinateSpace.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UICoordinateSpace protocol defines methods for converting between different frames of reference on a screen. The UIView and UIScreen classes adopt this protocol so that you can convert easily between most coordinate spaces in your app. The UIScreen class also provides coordinate space with a fixed frame of reference for tasks that require it. You can adopt this protocol in your own classes to convert between your custom coordinate spaces and the coordinate spaces of your app’s views and screens. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UICoordinateSpace_protocol/index.html#//apple_ref/occ/intf/UICoordinateSpace"/> [iOSVersion(8)] public interface UICoordinateSpace//: NSObjectProtocol { /// <summary> /// Converts a point from the coordinate space of the current object to the specified coordinate space. (required) /// </summary> /// <param name="point">A point specified in the coordinate system of the current object.</param> /// <param name="toCoordinateSpace">The coordinate space into which point is to be converted.</param> [iOSVersion(8)] [Export("convertPoint")] CGPoint ConvertPoint(CGPoint point, UICoordinateSpace toCoordinateSpace); /// <summary> /// Converts a point from the specified coordinate space to the coordinate space of the current object. (required) /// </summary> /// <param name="point">A point in the specified coordinate space.</param> /// <param name="fromCoordinateSpace">The coordinate space in which point is specified.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(8)] [Export("convertPoint")] [IgnoreParameter("NAME_YOUR_PARAMS")] CGPoint ConvertPoint(CGPoint point, UICoordinateSpace fromCoordinateSpace, bool NAME_YOUR_PARAMS = false); /// <summary> /// Converts a rectangle from the coordinate space of the current object to the specified coordinate space. (required) /// </summary> /// <param name="rect">A rectangle specified in the coordinate system of the current object.</param> /// <param name="toCoordinateSpace">The coordinate space into which rect is to be converted.</param> [iOSVersion(8)] [Export("convertRect")] CGRect ConvertRect(CGRect rect, UICoordinateSpace toCoordinateSpace); /// <summary> /// Converts a rectangle from the specified coordinate space to the coordinate space of the current object. (required) /// </summary> /// <param name="rect">A rectangle in the specified coordinate space.</param> /// <param name="fromCoordinateSpace">The coordinate space in which rect is specified.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(8)] [Export("convertRect")] [IgnoreParameter("NAME_YOUR_PARAMS")] CGRect ConvertRect(CGRect rect, UICoordinateSpace fromCoordinateSpace, bool NAME_YOUR_PARAMS = false); /// <summary> /// The bounds rectangle describing the item’s location and size in its own coordinate system. (required) (read-only) /// </summary> [iOSVersion(8)] [Export("bounds")] CGRect Bounds { get; private set; } } } \ 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 UICoordinateSpace protocol defines methods for converting between different frames of reference on a screen. The UIView and UIScreen classes adopt this protocol so that you can convert easily between most coordinate spaces in your app. The UIScreen class also provides coordinate space with a fixed frame of reference for tasks that require it. You can adopt this protocol in your own classes to convert between your custom coordinate spaces and the coordinate spaces of your app’s views and screens. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UICoordinateSpace_protocol/index.html#//apple_ref/occ/intf/UICoordinateSpace"/> [iOSVersion(8)] [Export("UICoordinateSpace")] public interface IUICoordinateSpace//: NSObjectProtocol { /// <summary> /// Converts a point from the coordinate space of the current object to the specified coordinate space. (required) /// </summary> /// <param name="point">A point specified in the coordinate system of the current object.</param> /// <param name="toCoordinateSpace">The coordinate space into which point is to be converted.</param> [iOSVersion(8)] [Export("convertPoint")] CGPoint ConvertPoint(CGPoint point, IUICoordinateSpace toCoordinateSpace); /// <summary> /// Converts a point from the specified coordinate space to the coordinate space of the current object. (required) /// </summary> /// <param name="point">A point in the specified coordinate space.</param> /// <param name="fromCoordinateSpace">The coordinate space in which point is specified.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(8)] [Export("convertPoint")] [IgnoreParameter("NAME_YOUR_PARAMS")] CGPoint ConvertPoint(CGPoint point, IUICoordinateSpace fromCoordinateSpace, bool NAME_YOUR_PARAMS = false); /// <summary> /// Converts a rectangle from the coordinate space of the current object to the specified coordinate space. (required) /// </summary> /// <param name="rect">A rectangle specified in the coordinate system of the current object.</param> /// <param name="toCoordinateSpace">The coordinate space into which rect is to be converted.</param> [iOSVersion(8)] [Export("convertRect")] CGRect ConvertRect(CGRect rect, IUICoordinateSpace toCoordinateSpace); /// <summary> /// Converts a rectangle from the specified coordinate space to the coordinate space of the current object. (required) /// </summary> /// <param name="rect">A rectangle in the specified coordinate space.</param> /// <param name="fromCoordinateSpace">The coordinate space in which rect is specified.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(8)] [Export("convertRect")] [IgnoreParameter("NAME_YOUR_PARAMS")] CGRect ConvertRect(CGRect rect, IUICoordinateSpace fromCoordinateSpace, bool NAME_YOUR_PARAMS = false); /// <summary> /// The bounds rectangle describing the item’s location and size in its own coordinate system. (required) (read-only) /// </summary> [iOSVersion(8)] [Export("bounds")] CGRect Bounds { get; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UIDynamicItem.cs b/CocoaSharp/UIKit/Protocols/UIDynamicItem.cs
index edeb3df0..e30429cf 100644
--- a/CocoaSharp/UIKit/Protocols/UIDynamicItem.cs
+++ b/CocoaSharp/UIKit/Protocols/UIDynamicItem.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// To make a custom object eligible to participate in UIKit Dynamics, adopt the UIDynamicItem protocol in the object’s class. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDynamicItem_Protocol/index.html#//apple_ref/occ/intf/UIDynamicItem"/> [iOSVersion(7)] public interface UIDynamicItem//: NSObjectProtocol { /// <summary> /// Called when a dynamic animator needs the bounds of the dynamic item. (required) (read-only) /// </summary> [iOSVersion(7)] [Export("bounds")] CGRect Bounds { get; private set; } /// <summary> /// The center point of the dynamic item. (required) /// </summary> [iOSVersion(7)] [Export("center")] CGPoint Center { get; set; } /// <summary> /// The rotation of the dynamic item. (required) /// </summary> [iOSVersion(7)] [Export("transform")] CGAffineTransform Transform { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// To make a custom object eligible to participate in UIKit Dynamics, adopt the UIDynamicItem protocol in the object’s class. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDynamicItem_Protocol/index.html#//apple_ref/occ/intf/UIDynamicItem"/> [iOSVersion(7)] public interface UIDynamicItem//: NSObjectProtocol { /// <summary> /// Called when a dynamic animator needs the bounds of the dynamic item. (required) (read-only) /// </summary> [iOSVersion(7)] [Export("bounds")] CGRect Bounds { get; } /// <summary> /// The center point of the dynamic item. (required) /// </summary> [iOSVersion(7)] [Export("center")] CGPoint Center { get; set; } /// <summary> /// The rotation of the dynamic item. (required) /// </summary> [iOSVersion(7)] [Export("transform")] CGAffineTransform Transform { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UIInputViewAudioFeedback.cs b/CocoaSharp/UIKit/Protocols/UIInputViewAudioFeedback.cs
index 41435880..393e2473 100644
--- a/CocoaSharp/UIKit/Protocols/UIInputViewAudioFeedback.cs
+++ b/CocoaSharp/UIKit/Protocols/UIInputViewAudioFeedback.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIInputViewAudioFeedback protocol defines a single property for enabling a custom input or keyboard accessory view to play standard keyboard input clicks. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIInputViewAudioFeedback_ProtocolReference/index.html#//apple_ref/occ/intf/UIInputViewAudioFeedback"/> [iOSVersion(4.2)] public interface UIInputViewAudioFeedback//: NSObjectProtocol { /// <summary> /// Specifies whether or not an input view enables input clicks. /// </summary> [iOSVersion(4.2)] [Export("enableInputClicksWhenVisible")] bool EnableInputClicksWhenVisible { get; private set; } } } \ 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 UIInputViewAudioFeedback protocol defines a single property for enabling a custom input or keyboard accessory view to play standard keyboard input clicks. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIInputViewAudioFeedback_ProtocolReference/index.html#//apple_ref/occ/intf/UIInputViewAudioFeedback"/> [iOSVersion(4.2)] public interface UIInputViewAudioFeedback//: NSObjectProtocol { /// <summary> /// Specifies whether or not an input view enables input clicks. /// </summary> [iOSVersion(4.2)] [Export("enableInputClicksWhenVisible")] bool EnableInputClicksWhenVisible { get; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UILayoutSupport.cs b/CocoaSharp/UIKit/Protocols/UILayoutSupport.cs
index dbc59621..aca456b6 100644
--- a/CocoaSharp/UIKit/Protocols/UILayoutSupport.cs
+++ b/CocoaSharp/UIKit/Protocols/UILayoutSupport.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// This protocol is implemented by the UIViewController properties topLayoutGuide and bottomLayoutGuide to support using Auto Layout with a view controller’s view, starting in iOS 7. You can use layout guides as layout items in the NSLayoutConstraint factory methods. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UILayoutSupport_Protocol/index.html#//apple_ref/occ/intf/UILayoutSupport"/> [iOSVersion(7)] public interface UILayoutSupport//: NSObjectProtocol { /// <summary> /// Provides the length, in points, of the portion of a view controller’s view that is overlaid by translucent or transparent UIKit bars. (required) /// </summary> [iOSVersion(7)] [Export("length")] CGFloat Length { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// This protocol is implemented by the UIViewController properties topLayoutGuide and bottomLayoutGuide to support using Auto Layout with a view controller’s view, starting in iOS 7. You can use layout guides as layout items in the NSLayoutConstraint factory methods. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UILayoutSupport_Protocol/index.html#//apple_ref/occ/intf/UILayoutSupport"/> [iOSVersion(7)] public interface UILayoutSupport//: NSObjectProtocol { /// <summary> /// Provides the length, in points, of the portion of a view controller’s view that is overlaid by translucent or transparent UIKit bars. (required) /// </summary> [iOSVersion(7)] [Export("length")] CGFloat Length { get; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UIPageViewControllerDataSource.cs b/CocoaSharp/UIKit/Protocols/UIPageViewControllerDataSource.cs
index 7f8394eb..dfb650a1 100644
--- a/CocoaSharp/UIKit/Protocols/UIPageViewControllerDataSource.cs
+++ b/CocoaSharp/UIKit/Protocols/UIPageViewControllerDataSource.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIPageViewControllerDataSource protocol is adopted by an object that provides view controllers to the page view controller on an as-needed basis, in response to navigation gestures. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPageViewControllerDataSourceProtocolRef/index.html#//apple_ref/occ/intf/UIPageViewControllerDataSource"/> [iOSVersion(5)] public interface UIPageViewControllerDataSource//: NSObjectProtocol { /// <summary> /// Returns the view controller before the given view controller. (required) /// </summary> /// <param name="pageViewController">The page view controller</param> /// <param name="viewControllerBeforeViewController">The view controller that the user navigated away from.</param> [iOSVersion(5)] [Export("pageViewController")] UIViewController PageViewController(UIPageViewController pageViewController, UIViewController viewControllerBeforeViewController); /// <summary> /// Returns the view controller after the given view controller. (required) /// </summary> /// <param name="pageViewController">The page view controller</param> /// <param name="viewControllerAfterViewController">The view controller that the user navigated away from.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(5)] [Export("pageViewController")] [IgnoreParameter("NAME_YOUR_PARAMS")] UIViewController PageViewController(UIPageViewController pageViewController, UIViewController viewControllerAfterViewController, bool NAME_YOUR_PARAMS = false); /// <summary> /// Returns the number of items to be reflected in the page indicator. /// </summary> /// <param name="pageViewController">The page view controller.</param> //[iOSVersion(6)] //[Export("presentationCountForPageViewController")] //[Optional] int PresentationCountForPageViewController(UIPageViewController pageViewController); /// <summary> /// Returns the index of the selected item to be reflected in the page indicator. /// </summary> /// <param name="pageViewController">The page view controller.</param> //[iOSVersion(6)] //[Export("presentationIndexForPageViewController")] //[Optional] int PresentationIndexForPageViewController(UIPageViewController pageViewController); } } \ 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 UIPageViewControllerDataSource protocol is adopted by an object that provides view controllers to the page view controller on an as-needed basis, in response to navigation gestures. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPageViewControllerDataSourceProtocolRef/index.html#//apple_ref/occ/intf/UIPageViewControllerDataSource"/> [iOSVersion(5)] public interface UIPageViewControllerDataSource//: NSObjectProtocol { /// <summary> /// Returns the view controller before the given view controller. (required) /// </summary> /// <param name="pageViewController">The page view controller</param> /// <param name="viewControllerBeforeViewController">The view controller that the user navigated away from.</param> [iOSVersion(5)] [Export("pageViewController")] UIViewController PageViewController(UIPageViewController pageViewController, UIViewController viewControllerBeforeViewController); /// <summary> /// Returns the view controller after the given view controller. (required) /// </summary> /// <param name="pageViewController">The page view controller</param> /// <param name="viewControllerAfterViewController">The view controller that the user navigated away from.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(5)] [Export("pageViewController")] [IgnoreParameter("NAME_YOUR_PARAMS")] UIViewController PageViewController(UIPageViewController pageViewController, UIViewController viewControllerAfterViewController, bool NAME_YOUR_PARAMS = false); /// <summary> /// Returns the number of items to be reflected in the page indicator. /// </summary> /// <param name="pageViewController">The page view controller.</param> //[iOSVersion(6)] //[Export("presentationCountForPageViewController")] //[Optional] //int PresentationCountForPageViewController(UIPageViewController pageViewController); /// <summary> /// Returns the index of the selected item to be reflected in the page indicator. /// </summary> /// <param name="pageViewController">The page view controller.</param> //[iOSVersion(6)] //[Export("presentationIndexForPageViewController")] //[Optional] //int PresentationIndexForPageViewController(UIPageViewController pageViewController); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UIResponderStandardEditActions.cs b/CocoaSharp/UIKit/Protocols/UIResponderStandardEditActions.cs
index e67bf009..2627b3b3 100644
--- a/CocoaSharp/UIKit/Protocols/UIResponderStandardEditActions.cs
+++ b/CocoaSharp/UIKit/Protocols/UIResponderStandardEditActions.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace { /// <summary> /// The UIResponderStandardEditActions informal protocol declares methods that responder classes should override to handle common editing commands invoked in the user interface, such as Copy, Paste, and Select. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIResponderStandardEditActions_Protocol/index.html#//apple_ref/doc/uid/TP40008313"/> [iOSVersion(3)] public interface UIResponderStandardEditActions//: { } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit //TODO: check this { /// <summary> /// The UIResponderStandardEditActions informal protocol declares methods that responder classes should override to handle common editing commands invoked in the user interface, such as Copy, Paste, and Select. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIResponderStandardEditActions_Protocol/index.html#//apple_ref/doc/uid/TP40008313"/> [iOSVersion(3)] public interface UIResponderStandardEditActions//: { } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UIStateRestoring.cs b/CocoaSharp/UIKit/Protocols/UIStateRestoring.cs
index 1eb7905e..326dbed1 100644
--- a/CocoaSharp/UIKit/Protocols/UIStateRestoring.cs
+++ b/CocoaSharp/UIKit/Protocols/UIStateRestoring.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIStateRestoring protocol lets you include any object in your state restoration archives. You can add state restoring objects to an archive directly or by referencing them from another object that is preserved, such as a view controller. The methods of the protocol let you save enough information about the object to find or recreate it during the next launch cycle. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIStateRestoring_protocol/index.html#//apple_ref/occ/intf/UIStateRestoring"/> [iOSVersion(7)] public interface UIStateRestoring//: NSObjectProtocol { /// <summary> /// Encodes state-related information for the object. /// </summary> /// <param name="coder">The coder object to use to encode the state of the object.</param> //[iOSVersion(7)] //[Export("encodeRestorableStateWithCoder")] //[Optional] void EncodeRestorableStateWithCoder(NSCoder coder); /// <summary> /// Decodes and restores state-related information for the object. /// </summary> /// <param name="coder">The coder object to use to decode the state of the view.</param> //[iOSVersion(7)] //[Export("decodeRestorableStateWithCoder")] //[Optional] void DecodeRestorableStateWithCoder(NSCoder coder); /// <summary> /// Called after all objects have had a chance to decode their state. /// </summary> //[iOSVersion(7)] //[Export("applicationFinishedRestoringState")] //[Optional] void ApplicationFinishedRestoringState(); /// <summary> /// The parent object used to scope the current object. (read-only) /// </summary> [iOSVersion(7)] [Export("restorationParent")] UIStateRestoring RestorationParent { get; private set; } /// <summary> /// The class responsible for creating this object when restoring the app’s state. (read-only) /// </summary> [iOSVersion(7)] [Export("objectRestorationClass")] AnyObject.Type ObjectRestorationClass { get; private set; } } } \ 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 UIStateRestoring protocol lets you include any object in your state restoration archives. You can add state restoring objects to an archive directly or by referencing them from another object that is preserved, such as a view controller. The methods of the protocol let you save enough information about the object to find or recreate it during the next launch cycle. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIStateRestoring_protocol/index.html#//apple_ref/occ/intf/UIStateRestoring"/> [iOSVersion(7)] public interface UIStateRestoring//: NSObjectProtocol { /// <summary> /// Encodes state-related information for the object. /// </summary> /// <param name="coder">The coder object to use to encode the state of the object.</param> //[iOSVersion(7)] //[Export("encodeRestorableStateWithCoder")] //[Optional] //void EncodeRestorableStateWithCoder(NSCoder coder); /// <summary> /// Decodes and restores state-related information for the object. /// </summary> /// <param name="coder">The coder object to use to decode the state of the view.</param> //[iOSVersion(7)] //[Export("decodeRestorableStateWithCoder")] //[Optional] //void DecodeRestorableStateWithCoder(NSCoder coder); /// <summary> /// Called after all objects have had a chance to decode their state. /// </summary> //[iOSVersion(7)] //[Export("applicationFinishedRestoringState")] //[Optional] //void ApplicationFinishedRestoringState(); /// <summary> /// The parent object used to scope the current object. (read-only) /// </summary> [iOSVersion(7)] [Export("restorationParent")] UIStateRestoring RestorationParent { get; } /// <summary> /// The class responsible for creating this object when restoring the app’s state. (read-only) /// </summary> [iOSVersion(7)] [Export("objectRestorationClass")] AnyObject.Type ObjectRestorationClass { get; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UITableViewDataSource.cs b/CocoaSharp/UIKit/Protocols/UITableViewDataSource.cs
index 56089f33..a711504b 100644
--- a/CocoaSharp/UIKit/Protocols/UITableViewDataSource.cs
+++ b/CocoaSharp/UIKit/Protocols/UITableViewDataSource.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UITableViewDataSource protocol is adopted by an object that mediates the application’™s data model for a UITableView object. The data source provides the table-view object with the information it needs to construct and modify a table view. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITableViewDataSource_Protocol/index.html#//apple_ref/occ/intf/UITableViewDataSource"/> [iOSVersion(2)] public interface UITableViewDataSource//: NSObjectProtocol { /// <summary> /// Asks the data source for a cell to insert in a particular location of the table view. (required) /// </summary> /// <param name="tableView">A table-view object requesting the cell.</param> /// <param name="cellForRowAtIndexPath">An index path locating a row in tableView.</param> [iOSVersion(2)] [Export("tableView")] UITableViewCell TableView(UITableView tableView, NSIndexPath cellForRowAtIndexPath); /// <summary> /// Asks the data source to return the number of sections in the table view. /// </summary> /// <param name="tableView">An object representing the table view requesting this information.</param> //[iOSVersion(2)] //[Export("numberOfSectionsInTableView")] //[Optional] int NumberOfSectionsInTableView(UITableView tableView); /// <summary> /// Tells the data source to return the number of rows in a given section of a table view. (required) /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="numberOfRowsInSection">An index number identifying a section in tableView.</param> [iOSVersion(2)] [Export("tableView")] int TableView(UITableView tableView, int numberOfRowsInSection); /// <summary> /// Asks the data source to return the titles for the sections for a table view. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> //[iOSVersion(2)] //[Export("sectionIndexTitlesForTableView")] //[Optional] AnyObject[] SectionIndexTitlesForTableView(UITableView tableView); /// <summary> /// Asks the data source to return the index of the section having the given title and section title index. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="sectionForSectionIndexTitle">The title as displayed in the section index of tableView.</param> /// <param name="atIndex">An index number identifying a section title in the array returned by sectionIndexTitlesForTableView:.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] int TableView(UITableView tableView, string sectionForSectionIndexTitle, int atIndex); /// <summary> /// Asks the data source for the title of the header of the specified section of the table view. /// </summary> /// <param name="tableView">The table-view object asking for the title.</param> /// <param name="titleForHeaderInSection">An index number identifying a section of tableView .</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] string TableView(UITableView tableView, int titleForHeaderInSection, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the data source for the title of the footer of the specified section of the table view. /// </summary> /// <param name="tableView">The table-view object asking for the title.</param> /// <param name="titleForFooterInSection">An index number identifying a section of tableView .</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] string TableView(UITableView tableView, int titleForFooterInSection, int NAME_YOUR_PARAMS = 0); /// <summary> /// Asks the data source to commit the insertion or deletion of a specified row in the receiver. /// </summary> /// <param name="tableView">The table-view object requesting the insertion or deletion.</param> /// <param name="commitEditingStyle">The cell editing style corresponding to a insertion or deletion requested for the row specified by indexPath. Possible editing styles are UITableViewCellEditingStyleInsert or UITableViewCellEditingStyleDelete.</param> /// <param name="forRowAtIndexPath">An index path locating the row in tableView.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] void TableView(UITableView tableView, UITableViewCellEditingStyle commitEditingStyle, NSIndexPath forRowAtIndexPath); /// <summary> /// Asks the data source to verify that the given row is editable. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="canEditRowAtIndexPath">An index path locating a row in tableView.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] bool TableView(UITableView tableView, NSIndexPath canEditRowAtIndexPath, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the data source whether a given row can be moved to another location in the table view. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="canMoveRowAtIndexPath">An index path locating a row in tableView.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] bool TableView(UITableView tableView, NSIndexPath canMoveRowAtIndexPath, int NAME_YOUR_PARAMS = 0); /// <summary> /// Tells the data source to move a row at a specific location in the table view to another location. /// </summary> /// <param name="tableView">The table-view object requesting this action.</param> /// <param name="moveRowAtIndexPath">An index path locating the row to be moved in tableView.</param> /// <param name="toIndexPath">An index path locating the row in tableView that is the destination of the move.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] void TableView(UITableView tableView, NSIndexPath moveRowAtIndexPath, NSIndexPath toIndexPath); } } \ 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 UITableViewDataSource protocol is adopted by an object that mediates the application’™s data model for a UITableView object. The data source provides the table-view object with the information it needs to construct and modify a table view. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITableViewDataSource_Protocol/index.html#//apple_ref/occ/intf/UITableViewDataSource"/> [iOSVersion(2)] public interface UITableViewDataSource//: NSObjectProtocol { /// <summary> /// Asks the data source for a cell to insert in a particular location of the table view. (required) /// </summary> /// <param name="tableView">A table-view object requesting the cell.</param> /// <param name="cellForRowAtIndexPath">An index path locating a row in tableView.</param> [iOSVersion(2)] [Export("tableView")] UITableViewCell TableView(UITableView tableView, NSIndexPath cellForRowAtIndexPath); /// <summary> /// Asks the data source to return the number of sections in the table view. /// </summary> /// <param name="tableView">An object representing the table view requesting this information.</param> //[iOSVersion(2)] //[Export("numberOfSectionsInTableView")] //[Optional] //int NumberOfSectionsInTableView(UITableView tableView); /// <summary> /// Tells the data source to return the number of rows in a given section of a table view. (required) /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="numberOfRowsInSection">An index number identifying a section in tableView.</param> [iOSVersion(2)] [Export("tableView")] int TableView(UITableView tableView, int numberOfRowsInSection); /// <summary> /// Asks the data source to return the titles for the sections for a table view. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> //[iOSVersion(2)] //[Export("sectionIndexTitlesForTableView")] //[Optional] //AnyObject[] SectionIndexTitlesForTableView(UITableView tableView); /// <summary> /// Asks the data source to return the index of the section having the given title and section title index. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="sectionForSectionIndexTitle">The title as displayed in the section index of tableView.</param> /// <param name="atIndex">An index number identifying a section title in the array returned by sectionIndexTitlesForTableView:.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //int TableView(UITableView tableView, string sectionForSectionIndexTitle, int atIndex); /// <summary> /// Asks the data source for the title of the header of the specified section of the table view. /// </summary> /// <param name="tableView">The table-view object asking for the title.</param> /// <param name="titleForHeaderInSection">An index number identifying a section of tableView .</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //string TableView(UITableView tableView, int titleForHeaderInSection, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the data source for the title of the footer of the specified section of the table view. /// </summary> /// <param name="tableView">The table-view object asking for the title.</param> /// <param name="titleForFooterInSection">An index number identifying a section of tableView .</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //string TableView(UITableView tableView, int titleForFooterInSection, int NAME_YOUR_PARAMS = 0); /// <summary> /// Asks the data source to commit the insertion or deletion of a specified row in the receiver. /// </summary> /// <param name="tableView">The table-view object requesting the insertion or deletion.</param> /// <param name="commitEditingStyle">The cell editing style corresponding to a insertion or deletion requested for the row specified by indexPath. Possible editing styles are UITableViewCellEditingStyleInsert or UITableViewCellEditingStyleDelete.</param> /// <param name="forRowAtIndexPath">An index path locating the row in tableView.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //void TableView(UITableView tableView, UITableViewCellEditingStyle commitEditingStyle, NSIndexPath forRowAtIndexPath); /// <summary> /// Asks the data source to verify that the given row is editable. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="canEditRowAtIndexPath">An index path locating a row in tableView.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool TableView(UITableView tableView, NSIndexPath canEditRowAtIndexPath, bool NAME_YOUR_PARAMS = false); /// <summary> /// Asks the data source whether a given row can be moved to another location in the table view. /// </summary> /// <param name="tableView">The table-view object requesting this information.</param> /// <param name="canMoveRowAtIndexPath">An index path locating a row in tableView.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //[IgnoreParameter("NAME_YOUR_PARAMS")] //bool TableView(UITableView tableView, NSIndexPath canMoveRowAtIndexPath, int NAME_YOUR_PARAMS = 0); /// <summary> /// Tells the data source to move a row at a specific location in the table view to another location. /// </summary> /// <param name="tableView">The table-view object requesting this action.</param> /// <param name="moveRowAtIndexPath">An index path locating the row to be moved in tableView.</param> /// <param name="toIndexPath">An index path locating the row in tableView that is the destination of the move.</param> //[iOSVersion(2)] //[Export("tableView")] //[Optional] //void TableView(UITableView tableView, NSIndexPath moveRowAtIndexPath, NSIndexPath toIndexPath); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UITextDocumentProxy.cs b/CocoaSharp/UIKit/Protocols/UITextDocumentProxy.cs
index 4c9e1178..69b05427 100644
--- a/CocoaSharp/UIKit/Protocols/UITextDocumentProxy.cs
+++ b/CocoaSharp/UIKit/Protocols/UITextDocumentProxy.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// A text document proxy provides textual context to a custom keyboard (which is based on the UIInputViewController class) by way of the keyboard’s textDocumentProxy property. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITextDocumentProxy_Protocol/index.html#//apple_ref/occ/intf/UITextDocumentProxy"/> [iOSVersion(8)] public interface UITextDocumentProxy//: NSObjectProtocol, UIKeyInput, UITextInputTraits { /// <summary> /// Moves the insertion point forward or backward in the current text input object. (required) /// </summary> /// <param name="offset">The number of characters to adjust the insertion point by. A positive value moves the insertion point forward (according to the text storage direction for the current language). A negative value moves the insertion point backward.</param> [iOSVersion(8)] [Export("adjustTextPositionByCharacterOffset")] void AdjustTextPositionByCharacterOffset(int offset); /// <summary> /// Textual context after the insertion point in the current text input object. (required) (read-only) /// </summary> [iOSVersion(8)] [Export("documentContextAfterInput")] string DocumentContextAfterInput { get; private set; } /// <summary> /// Textual context before the insertion point in the current text input object. (required) (read-only) /// </summary> [iOSVersion(8)] [Export("documentContextBeforeInput")] string DocumentContextBeforeInput { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// A text document proxy provides textual context to a custom keyboard (which is based on the UIInputViewController class) by way of the keyboard’s textDocumentProxy property. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITextDocumentProxy_Protocol/index.html#//apple_ref/occ/intf/UITextDocumentProxy"/> [iOSVersion(8)] public interface UITextDocumentProxy//: NSObjectProtocol, UIKeyInput, UITextInputTraits { /// <summary> /// Moves the insertion point forward or backward in the current text input object. (required) /// </summary> /// <param name="offset">The number of characters to adjust the insertion point by. A positive value moves the insertion point forward (according to the text storage direction for the current language). A negative value moves the insertion point backward.</param> [iOSVersion(8)] [Export("adjustTextPositionByCharacterOffset")] void AdjustTextPositionByCharacterOffset(int offset); /// <summary> /// Textual context after the insertion point in the current text input object. (required) (read-only) /// </summary> [iOSVersion(8)] [Export("documentContextAfterInput")] string DocumentContextAfterInput { get; } /// <summary> /// Textual context before the insertion point in the current text input object. (required) (read-only) /// </summary> [iOSVersion(8)] [Export("documentContextBeforeInput")] string DocumentContextBeforeInput { get; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UITextInput.cs b/CocoaSharp/UIKit/Protocols/UITextInput.cs
index b7119e4c..32e35953 100644
--- a/CocoaSharp/UIKit/Protocols/UITextInput.cs
+++ b/CocoaSharp/UIKit/Protocols/UITextInput.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// Classes that adopt the UITextInput protocol (and conform with inherited protocols) interact with the text input system and thus acquire features such as autocorrection and multistage text input for their documents. (Multistage text input is required when the language is ideographic and the keyboard is phonetic.) /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITextInput_Protocol/index.html#//apple_ref/occ/intf/UITextInput"/> [iOSVersion(3.2)] public interface UITextInput//: NSObjectProtocol, UIKeyInput, UITextInputTraits { /// <summary> /// Return the text in the specified range. (required) /// </summary> /// <param name="range">A range of text in a document.</param> [iOSVersion(3.2)] [Export("textInRange")] string TextInRange(UITextRange range); /// <summary> /// Replace the text in a document that is in the specified range. (required) /// </summary> /// <param name="range">A range of text in a document.</param> /// <param name="withText">A string to replace the text in range.</param> [iOSVersion(3.2)] [Export("replaceRange")] void ReplaceRange(UITextRange range, string withText); /// <summary> /// Asks whether the text in the specified range should be replaced. /// </summary> /// <param name="range">A range of text in a document.</param> /// <param name="replacementText">The proposed text to replace the text in range.</param> //[iOSVersion(6)] //[Export("shouldChangeTextInRange")] //[Optional] bool ShouldChangeTextInRange(UITextRange range, string replacementText); /// <summary> /// Insert the provided text and marks it to indicate that it is part of an active input session. (required) /// </summary> /// <param name="markedText">The text to be marked.</param> /// <param name="selectedRange">A range within markedText that indicates the current selection. This range is always relative to markedText.</param> [iOSVersion(3.2)] [Export("setMarkedText")] void SetMarkedText(string markedText, NSRange selectedRange); /// <summary> /// Unmark the currently marked text. (required) /// </summary> [iOSVersion(3.2)] [Export("unmarkText")] void UnmarkText(); /// <summary> /// Return the range between two text positions. (required) /// </summary> /// <param name="fromPosition">An object that represents a location in a document.</param> /// <param name="toPosition">An object that represents another location in a document.</param> [iOSVersion(3.2)] [Export("textRangeFromPosition")] UITextRange TextRangeFromPosition(UITextPosition fromPosition, UITextPosition toPosition); /// <summary> /// Returns the text position at a given offset from another text position. (required) /// </summary> /// <param name="position">A custom UITextPosition object that represents a location in a document.</param> /// <param name="offset">A character offset from position. It can be a positive or negative value.</param> [iOSVersion(3.2)] [Export("positionFromPosition")] UITextPosition PositionFromPosition(UITextPosition position, int offset); /// <summary> /// Returns the text position at a given offset in a specified direction from another text position. (required) /// </summary> /// <param name="position">A custom UITextPosition object that represents a location in a document.</param> /// <param name="inDirection">A UITextLayoutDirection constant that represents the direction of the offset from position. Return nil if the computed text position is less than 0 or greater than the length of the backing string.</param> /// <param name="offset">A character offset from position.</param> [iOSVersion(3.2)] [Export("positionFromPosition")] UITextPosition PositionFromPosition(UITextPosition position, UITextLayoutDirection inDirection, int offset); /// <summary> /// Return how one text position compares to another text position. (required) /// </summary> /// <param name="position">A custom object that represents a location within a document.</param> /// <param name="toPosition">A custom object that represents another location within a document.</param> [iOSVersion(3.2)] [Export("comparePosition")] NSComparisonResult ComparePosition(UITextPosition position, UITextPosition toPosition); /// <summary> /// Return the number of visible characters between one text position and another text position. (required) /// </summary> /// <param name="fromPosition">A custom object that represents a location within a document.</param> /// <param name="toPosition">A custom object that represents another location within document.</param> [iOSVersion(3.2)] [Export("offsetFromPosition")] int OffsetFromPosition(UITextPosition fromPosition, UITextPosition toPosition); /// <summary> /// Return the text position that is at the farthest extent in a given layout direction within a range of text. (required) /// </summary> /// <param name="range">A text-range object that demarcates a range of text in a document.</param> /// <param name="farthestInDirection">A constant that indicates a direction of layout (right, left, up, down).</param> [iOSVersion(3.2)] [Export("positionWithinRange")] UITextPosition PositionWithinRange(UITextRange range, UITextLayoutDirection farthestInDirection); /// <summary> /// Return a text range from a given text position to its farthest extent in a certain direction of layout. (required) /// </summary> /// <param name="position">A text-position object that identifies a location in a document.</param> /// <param name="inDirection">A constant that indicates a direction of layout (right, left, up, down).</param> [iOSVersion(3.2)] [Export("characterRangeByExtendingPosition")] UITextRange CharacterRangeByExtendingPosition(UITextPosition position, UITextLayoutDirection inDirection); /// <summary> /// Return the base writing direction for a position in the text going in a certain direction. (required) /// </summary> /// <param name="position">An object that identifies a location in a document.</param> /// <param name="inDirection">A constant that indicates a direction of storage (forward or backward).</param> [iOSVersion(3.2)] [Export("baseWritingDirectionForPosition")] UITextWritingDirection BaseWritingDirectionForPosition(UITextPosition position, UITextStorageDirection inDirection); /// <summary> /// Set the base writing direction for a given range of text in a document. (required) /// </summary> /// <param name="writingDirection">A constant that represents a writing direction (for example, left-to-right or right-to-left)</param> /// <param name="forRange">An object that represents a range of text in a document.</param> [iOSVersion(3.2)] [Export("setBaseWritingDirection")] void SetBaseWritingDirection(UITextWritingDirection writingDirection, UITextRange forRange); /// <summary> /// Return the first rectangle that encloses a range of text in a document. (required) /// </summary> /// <param name="range">An object that represents a range of text in a document.</param> [iOSVersion(3.2)] [Export("firstRectForRange")] CGRect FirstRectForRange(UITextRange range); /// <summary> /// Return a rectangle used to draw the caret at a given insertion point. (required) /// </summary> /// <param name="position">An object that identifies a location in a document.</param> [iOSVersion(3.2)] [Export("caretRectForPosition")] CGRect CaretRectForPosition(UITextPosition position); /// <summary> /// Return the position in a document that is closest to a specified point. (required) /// </summary> /// <param name="point">A point in the view that is drawing a document’s text.</param> [iOSVersion(3.2)] [Export("closestPositionToPoint")] UITextPosition ClosestPositionToPoint(CGPoint point); /// <summary> /// Returns an array of selection rects corresponding to the range of text. (required) /// </summary> /// <param name="range">An object representing a range in a document’s text.</param> [iOSVersion(6)] [Export("selectionRectsForRange")] AnyObject[] SelectionRectsForRange(UITextRange range); /// <summary> /// Return the position in a document that is closest to a specified point in a given range. (required) /// </summary> /// <param name="point">A point in the view that is drawing a document’s text.</param> /// <param name="withinRange">An object representing a range in a document’s text.</param> [iOSVersion(3.2)] [Export("closestPositionToPoint")] UITextPosition ClosestPositionToPoint(CGPoint point, UITextRange withinRange); /// <summary> /// Return the character or range of characters that is at a given point in a document. (required) /// </summary> /// <param name="point">A point in the view that is drawing a document’s text.</param> [iOSVersion(3.2)] [Export("characterRangeAtPoint")] UITextRange CharacterRangeAtPoint(CGPoint point); /// <summary> /// Called when there is a pending dictation result. /// </summary> //[iOSVersion(5.1)] //[Export("dictationRecordingDidEnd")] //[Optional] void DictationRecordingDidEnd(); /// <summary> /// Called when dictation ended but recognition failed. /// </summary> //[iOSVersion(5.1)] //[Export("dictationRecognitionFailed")] //[Optional] void DictationRecognitionFailed(); /// <summary> /// Called when there is more than one interpretation of a spoken phrase in a dictation result. /// </summary> /// <param name="dictationResult">An array of UIDictationPhrase objects.</param> //[iOSVersion(5.1)] //[Export("insertDictationResult")] //[Optional] void InsertDictationResult(AnyObject[] dictationResult); /// <summary> /// Asks for the placeholder object to use while dictation results are being generated. /// </summary> //[iOSVersion(6)] //[Export("insertDictationResultPlaceholder")] //[Optional] AnyObject InsertDictationResultPlaceholder(); /// <summary> /// Asks for the rectangle in which to display the dictation placeholder animation. /// </summary> /// <param name="placeholder">A placeholder object provided by your app and used to identify the location of the dictation results.</param> //[iOSVersion(6)] //[Export("frameForDictationResultPlaceholder")] //[Optional] CGRect FrameForDictationResultPlaceholder(AnyObject placeholder); /// <summary> /// Tells the view that the specified placeholder object is no longer needed. /// </summary> /// <param name="placeholder">The placeholder object that is no longer needed.</param> /// <param name="willInsertResult">The value of this parameter is true if the dictation value was generated successfully or false if an error occurred.</param> //[iOSVersion(6)] //[Export("removeDictationResultPlaceholder")] //[Optional] void RemoveDictationResultPlaceholder(AnyObject placeholder, bool willInsertResult); /// <summary> /// Return a dictionary with properties that specify how text is to be style at a certain location in a document. /// </summary> /// <param name="position">An object that indicates a location in the text of a document.</param> /// <param name="inDirection">The direction of the styling attributes in text storage.</param> //[iOSVersion(3.2)] //[Export("textStylingAtPosition")] //[Optional] Dictionary<NSObject, AnyObject> TextStylingAtPosition(UITextPosition position, UITextStorageDirection inDirection); /// <summary> /// Return the position within a range of a document’s text that corresponds to the character offset from the start of that range. /// </summary> /// <param name="range">An object that specifies a range of text in a document.</param> /// <param name="atCharacterOffset">A character offset from the start of range.</param> //[iOSVersion(3.2)] //[Export("positionWithinRange")] //[Optional] UITextPosition PositionWithinRange(UITextRange range, int atCharacterOffset); /// <summary> /// Return the character offset of a position in a document’s text that falls within a given range. /// </summary> /// <param name="position">An object that identifies a location in a document’s text.</param> /// <param name="withinRange">An object that specifies a range of text in a document.</param> //[iOSVersion(3.2)] //[Export("characterOffsetOfPosition")] //[Optional] int CharacterOffsetOfPosition(UITextPosition position, UITextRange withinRange); /// <summary> /// The range of selected text in a document. (required) /// </summary> [iOSVersion(3.2)] [Export("selectedTextRange")] UITextRange SelectedTextRange { get; set; } /// <summary> /// The range of text that is currently marked in a document. (required) (read-only) /// </summary> [iOSVersion(3.2)] [Export("markedTextRange")] UITextRange MarkedTextRange { get; private set; } /// <summary> /// A dictionary of attributes that describes how marked text should be drawn. (required) /// </summary> [iOSVersion(3.2)] [Export("markedTextStyle")] Dictionary<NSObject, AnyObject> MarkedTextStyle { get; set; } /// <summary> /// The desired location for the insertion point. /// </summary> [iOSVersion(3.2)] [Export("selectionAffinity")] UITextStorageDirection SelectionAffinity { get; set; } /// <summary> /// The text position for the beginning of a document. (required) (read-only) /// </summary> [iOSVersion(3.2)] [Export("beginningOfDocument")] UITextPosition BeginningOfDocument { get; private set; } /// <summary> /// The text position for the end of a document. (required) (read-only) /// </summary> [iOSVersion(3.2)] [Export("endOfDocument")] UITextPosition EndOfDocument { get; private set; } /// <summary> /// An input delegate that is notified when text changes or when the selection changes. (required) /// </summary> [iOSVersion(3.2)] [Export("inputDelegate")] UITextInputDelegate InputDelegate { get; set; } /// <summary> /// An input tokenizer that provides information about the granularity of text units. (required) (read-only) /// </summary> [iOSVersion(3.2)] [Export("tokenizer")] UITextInputTokenizer Tokenizer { get; private set; } /// <summary> /// An affiliated view that provides a coordinate system for all geometric values in this protocol. (read-only) /// </summary> [iOSVersion(3.2)] [Export("textInputView")] UIView TextInputView { get; private set; } } /// <summary> /// The direction of text storage. /// </summary> [iOSVersion(3.2)] public enum UITextStorageDirection { /// <summary> /// Storage of the text in a forward direction. /// </summary> [iOSVersion(3.2)] Forward, /// <summary> /// Storage of the text in a backward direction. /// </summary> [iOSVersion(3.2)] Backward, } /// <summary> /// The direction of text layout. /// </summary> [iOSVersion(3.2)] public enum UITextLayoutDirection { /// <summary> /// Layout of the text to the right. /// </summary> [iOSVersion(3.2)] Right, /// <summary> /// Layout of the text to the left. /// </summary> [iOSVersion(3.2)] Left, /// <summary> /// Layout of the text in an upward direction. /// </summary> [iOSVersion(3.2)] Up, /// <summary> /// Layout of the text in a downward direction. /// </summary> [iOSVersion(3.2)] Down, } /// <summary> /// The writing direction of the text, based on language. /// </summary> [iOSVersion(3.2)] public enum UITextWritingDirection { /// <summary> /// The natural writing direction as defined by the Bidi algorithm. /// </summary> [iOSVersion(3.2)] Natural, /// <summary> /// Writing that goes from left to right. /// </summary> [iOSVersion(3.2)] LeftToRight, /// <summary> /// Writing that goes from right to left. /// </summary> [iOSVersion(3.2)] RightToLeft, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// Classes that adopt the UITextInput protocol (and conform with inherited protocols) interact with the text input system and thus acquire features such as autocorrection and multistage text input for their documents. (Multistage text input is required when the language is ideographic and the keyboard is phonetic.) /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITextInput_Protocol/index.html#//apple_ref/occ/intf/UITextInput"/> [iOSVersion(3.2)] public interface UITextInput//: NSObjectProtocol, UIKeyInput, UITextInputTraits { /// <summary> /// Return the text in the specified range. (required) /// </summary> /// <param name="range">A range of text in a document.</param> [iOSVersion(3.2)] [Export("textInRange")] string TextInRange(UITextRange range); /// <summary> /// Replace the text in a document that is in the specified range. (required) /// </summary> /// <param name="range">A range of text in a document.</param> /// <param name="withText">A string to replace the text in range.</param> [iOSVersion(3.2)] [Export("replaceRange")] void ReplaceRange(UITextRange range, string withText); /// <summary> /// Asks whether the text in the specified range should be replaced. /// </summary> /// <param name="range">A range of text in a document.</param> /// <param name="replacementText">The proposed text to replace the text in range.</param> //[iOSVersion(6)] //[Export("shouldChangeTextInRange")] //[Optional] //bool ShouldChangeTextInRange(UITextRange range, string replacementText); /// <summary> /// Insert the provided text and marks it to indicate that it is part of an active input session. (required) /// </summary> /// <param name="markedText">The text to be marked.</param> /// <param name="selectedRange">A range within markedText that indicates the current selection. This range is always relative to markedText.</param> [iOSVersion(3.2)] [Export("setMarkedText")] void SetMarkedText(string markedText, NSRange selectedRange); /// <summary> /// Unmark the currently marked text. (required) /// </summary> [iOSVersion(3.2)] [Export("unmarkText")] void UnmarkText(); /// <summary> /// Return the range between two text positions. (required) /// </summary> /// <param name="fromPosition">An object that represents a location in a document.</param> /// <param name="toPosition">An object that represents another location in a document.</param> [iOSVersion(3.2)] [Export("textRangeFromPosition")] UITextRange TextRangeFromPosition(UITextPosition fromPosition, UITextPosition toPosition); /// <summary> /// Returns the text position at a given offset from another text position. (required) /// </summary> /// <param name="position">A custom UITextPosition object that represents a location in a document.</param> /// <param name="offset">A character offset from position. It can be a positive or negative value.</param> [iOSVersion(3.2)] [Export("positionFromPosition")] UITextPosition PositionFromPosition(UITextPosition position, int offset); /// <summary> /// Returns the text position at a given offset in a specified direction from another text position. (required) /// </summary> /// <param name="position">A custom UITextPosition object that represents a location in a document.</param> /// <param name="inDirection">A UITextLayoutDirection constant that represents the direction of the offset from position. Return nil if the computed text position is less than 0 or greater than the length of the backing string.</param> /// <param name="offset">A character offset from position.</param> [iOSVersion(3.2)] [Export("positionFromPosition")] UITextPosition PositionFromPosition(UITextPosition position, UITextLayoutDirection inDirection, int offset); /// <summary> /// Return how one text position compares to another text position. (required) /// </summary> /// <param name="position">A custom object that represents a location within a document.</param> /// <param name="toPosition">A custom object that represents another location within a document.</param> [iOSVersion(3.2)] [Export("comparePosition")] NSComparisonResult ComparePosition(UITextPosition position, UITextPosition toPosition); /// <summary> /// Return the number of visible characters between one text position and another text position. (required) /// </summary> /// <param name="fromPosition">A custom object that represents a location within a document.</param> /// <param name="toPosition">A custom object that represents another location within document.</param> [iOSVersion(3.2)] [Export("offsetFromPosition")] int OffsetFromPosition(UITextPosition fromPosition, UITextPosition toPosition); /// <summary> /// Return the text position that is at the farthest extent in a given layout direction within a range of text. (required) /// </summary> /// <param name="range">A text-range object that demarcates a range of text in a document.</param> /// <param name="farthestInDirection">A constant that indicates a direction of layout (right, left, up, down).</param> [iOSVersion(3.2)] [Export("positionWithinRange")] UITextPosition PositionWithinRange(UITextRange range, UITextLayoutDirection farthestInDirection); /// <summary> /// Return a text range from a given text position to its farthest extent in a certain direction of layout. (required) /// </summary> /// <param name="position">A text-position object that identifies a location in a document.</param> /// <param name="inDirection">A constant that indicates a direction of layout (right, left, up, down).</param> [iOSVersion(3.2)] [Export("characterRangeByExtendingPosition")] UITextRange CharacterRangeByExtendingPosition(UITextPosition position, UITextLayoutDirection inDirection); /// <summary> /// Return the base writing direction for a position in the text going in a certain direction. (required) /// </summary> /// <param name="position">An object that identifies a location in a document.</param> /// <param name="inDirection">A constant that indicates a direction of storage (forward or backward).</param> [iOSVersion(3.2)] [Export("baseWritingDirectionForPosition")] UITextWritingDirection BaseWritingDirectionForPosition(UITextPosition position, UITextStorageDirection inDirection); /// <summary> /// Set the base writing direction for a given range of text in a document. (required) /// </summary> /// <param name="writingDirection">A constant that represents a writing direction (for example, left-to-right or right-to-left)</param> /// <param name="forRange">An object that represents a range of text in a document.</param> [iOSVersion(3.2)] [Export("setBaseWritingDirection")] void SetBaseWritingDirection(UITextWritingDirection writingDirection, UITextRange forRange); /// <summary> /// Return the first rectangle that encloses a range of text in a document. (required) /// </summary> /// <param name="range">An object that represents a range of text in a document.</param> [iOSVersion(3.2)] [Export("firstRectForRange")] CGRect FirstRectForRange(UITextRange range); /// <summary> /// Return a rectangle used to draw the caret at a given insertion point. (required) /// </summary> /// <param name="position">An object that identifies a location in a document.</param> [iOSVersion(3.2)] [Export("caretRectForPosition")] CGRect CaretRectForPosition(UITextPosition position); /// <summary> /// Return the position in a document that is closest to a specified point. (required) /// </summary> /// <param name="point">A point in the view that is drawing a document’s text.</param> [iOSVersion(3.2)] [Export("closestPositionToPoint")] UITextPosition ClosestPositionToPoint(CGPoint point); /// <summary> /// Returns an array of selection rects corresponding to the range of text. (required) /// </summary> /// <param name="range">An object representing a range in a document’s text.</param> [iOSVersion(6)] [Export("selectionRectsForRange")] AnyObject[] SelectionRectsForRange(UITextRange range); /// <summary> /// Return the position in a document that is closest to a specified point in a given range. (required) /// </summary> /// <param name="point">A point in the view that is drawing a document’s text.</param> /// <param name="withinRange">An object representing a range in a document’s text.</param> [iOSVersion(3.2)] [Export("closestPositionToPoint")] UITextPosition ClosestPositionToPoint(CGPoint point, UITextRange withinRange); /// <summary> /// Return the character or range of characters that is at a given point in a document. (required) /// </summary> /// <param name="point">A point in the view that is drawing a document’s text.</param> [iOSVersion(3.2)] [Export("characterRangeAtPoint")] UITextRange CharacterRangeAtPoint(CGPoint point); /// <summary> /// Called when there is a pending dictation result. /// </summary> //[iOSVersion(5.1)] //[Export("dictationRecordingDidEnd")] //[Optional] //void DictationRecordingDidEnd(); /// <summary> /// Called when dictation ended but recognition failed. /// </summary> //[iOSVersion(5.1)] //[Export("dictationRecognitionFailed")] //[Optional] //void DictationRecognitionFailed(); /// <summary> /// Called when there is more than one interpretation of a spoken phrase in a dictation result. /// </summary> /// <param name="dictationResult">An array of UIDictationPhrase objects.</param> //[iOSVersion(5.1)] //[Export("insertDictationResult")] //[Optional] //void InsertDictationResult(AnyObject[] dictationResult); /// <summary> /// Asks for the placeholder object to use while dictation results are being generated. /// </summary> //[iOSVersion(6)] //[Export("insertDictationResultPlaceholder")] //[Optional] //AnyObject InsertDictationResultPlaceholder(); /// <summary> /// Asks for the rectangle in which to display the dictation placeholder animation. /// </summary> /// <param name="placeholder">A placeholder object provided by your app and used to identify the location of the dictation results.</param> //[iOSVersion(6)] //[Export("frameForDictationResultPlaceholder")] //[Optional] //CGRect FrameForDictationResultPlaceholder(AnyObject placeholder); /// <summary> /// Tells the view that the specified placeholder object is no longer needed. /// </summary> /// <param name="placeholder">The placeholder object that is no longer needed.</param> /// <param name="willInsertResult">The value of this parameter is true if the dictation value was generated successfully or false if an error occurred.</param> //[iOSVersion(6)] //[Export("removeDictationResultPlaceholder")] //[Optional] //void RemoveDictationResultPlaceholder(AnyObject placeholder, bool willInsertResult); /// <summary> /// Return a dictionary with properties that specify how text is to be style at a certain location in a document. /// </summary> /// <param name="position">An object that indicates a location in the text of a document.</param> /// <param name="inDirection">The direction of the styling attributes in text storage.</param> //[iOSVersion(3.2)] //[Export("textStylingAtPosition")] //[Optional] //Dictionary<NSObject, AnyObject> TextStylingAtPosition(UITextPosition position, UITextStorageDirection inDirection); /// <summary> /// Return the position within a range of a document’s text that corresponds to the character offset from the start of that range. /// </summary> /// <param name="range">An object that specifies a range of text in a document.</param> /// <param name="atCharacterOffset">A character offset from the start of range.</param> //[iOSVersion(3.2)] //[Export("positionWithinRange")] //[Optional] //UITextPosition PositionWithinRange(UITextRange range, int atCharacterOffset); /// <summary> /// Return the character offset of a position in a document’s text that falls within a given range. /// </summary> /// <param name="position">An object that identifies a location in a document’s text.</param> /// <param name="withinRange">An object that specifies a range of text in a document.</param> //[iOSVersion(3.2)] //[Export("characterOffsetOfPosition")] //[Optional] //int CharacterOffsetOfPosition(UITextPosition position, UITextRange withinRange); /// <summary> /// The range of selected text in a document. (required) /// </summary> [iOSVersion(3.2)] [Export("selectedTextRange")] UITextRange SelectedTextRange { get; set; } /// <summary> /// The range of text that is currently marked in a document. (required) (read-only) /// </summary> [iOSVersion(3.2)] [Export("markedTextRange")] UITextRange MarkedTextRange { get; } /// <summary> /// A dictionary of attributes that describes how marked text should be drawn. (required) /// </summary> [iOSVersion(3.2)] [Export("markedTextStyle")] Dictionary<NSObject, AnyObject> MarkedTextStyle { get; set; } /// <summary> /// The desired location for the insertion point. /// </summary> [iOSVersion(3.2)] [Export("selectionAffinity")] UITextStorageDirection SelectionAffinity { get; set; } /// <summary> /// The text position for the beginning of a document. (required) (read-only) /// </summary> [iOSVersion(3.2)] [Export("beginningOfDocument")] UITextPosition BeginningOfDocument { get; } /// <summary> /// The text position for the end of a document. (required) (read-only) /// </summary> [iOSVersion(3.2)] [Export("endOfDocument")] UITextPosition EndOfDocument { get; } /// <summary> /// An input delegate that is notified when text changes or when the selection changes. (required) /// </summary> [iOSVersion(3.2)] [Export("inputDelegate")] UITextInputDelegate InputDelegate { get; set; } /// <summary> /// An input tokenizer that provides information about the granularity of text units. (required) (read-only) /// </summary> [iOSVersion(3.2)] [Export("tokenizer")] UITextInputTokenizer Tokenizer { get; } /// <summary> /// An affiliated view that provides a coordinate system for all geometric values in this protocol. (read-only) /// </summary> [iOSVersion(3.2)] [Export("textInputView")] UIView TextInputView { get; } } /// <summary> /// The direction of text storage. /// </summary> [iOSVersion(3.2)] public enum UITextStorageDirection { /// <summary> /// Storage of the text in a forward direction. /// </summary> [iOSVersion(3.2)] Forward, /// <summary> /// Storage of the text in a backward direction. /// </summary> [iOSVersion(3.2)] Backward, } /// <summary> /// The direction of text layout. /// </summary> [iOSVersion(3.2)] public enum UITextLayoutDirection { /// <summary> /// Layout of the text to the right. /// </summary> [iOSVersion(3.2)] Right, /// <summary> /// Layout of the text to the left. /// </summary> [iOSVersion(3.2)] Left, /// <summary> /// Layout of the text in an upward direction. /// </summary> [iOSVersion(3.2)] Up, /// <summary> /// Layout of the text in a downward direction. /// </summary> [iOSVersion(3.2)] Down, } /// <summary> /// The writing direction of the text, based on language. /// </summary> [iOSVersion(3.2)] public enum UITextWritingDirection { /// <summary> /// The natural writing direction as defined by the Bidi algorithm. /// </summary> [iOSVersion(3.2)] Natural, /// <summary> /// Writing that goes from left to right. /// </summary> [iOSVersion(3.2)] LeftToRight, /// <summary> /// Writing that goes from right to left. /// </summary> [iOSVersion(3.2)] RightToLeft, } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UITraitEnvironment.cs b/CocoaSharp/UIKit/Protocols/UITraitEnvironment.cs
index ad58d827..b2cb5679 100644
--- a/CocoaSharp/UIKit/Protocols/UITraitEnvironment.cs
+++ b/CocoaSharp/UIKit/Protocols/UITraitEnvironment.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UITraitEnvironment protocol provides access to the UITraitCollection object for a view controller. The traitCollectionDidChange: method is automatically called when a trait for a view controller changes. Implement this method to respond to changes in the trait collection. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITraitEnvironment_Ref/index.html#//apple_ref/occ/intf/UITraitEnvironment"/> [iOSVersion(8)] public interface UITraitEnvironment//: NSObjectProtocol { /// <summary> /// Provides a way for you to perform custom behavior when the current trait collection changes. (required) /// </summary> /// <param name="previousTraitCollection">The UITraitCollection object before any traits were changed.</param> [iOSVersion(8)] [Export("traitCollectionDidChange")] void TraitCollectionDidChange(UITraitCollection previousTraitCollection); /// <summary> /// The collection of traits for the view. (required) (read-only) /// </summary> [iOSVersion(8)] [Export("traitCollection")] UITraitCollection TraitCollection { get; private set; } } } \ 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 UITraitEnvironment protocol provides access to the UITraitCollection object for a view controller. The traitCollectionDidChange: method is automatically called when a trait for a view controller changes. Implement this method to respond to changes in the trait collection. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITraitEnvironment_Ref/index.html#//apple_ref/occ/intf/UITraitEnvironment"/> [iOSVersion(8)] public interface UITraitEnvironment//: NSObjectProtocol { /// <summary> /// Provides a way for you to perform custom behavior when the current trait collection changes. (required) /// </summary> /// <param name="previousTraitCollection">The UITraitCollection object before any traits were changed.</param> [iOSVersion(8)] [Export("traitCollectionDidChange")] void TraitCollectionDidChange(UITraitCollection previousTraitCollection); /// <summary> /// The collection of traits for the view. (required) (read-only) /// </summary> [iOSVersion(8)] [Export("traitCollection")] UITraitCollection TraitCollection { get; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UIViewControllerAnimatedTransitioning.cs b/CocoaSharp/UIKit/Protocols/UIViewControllerAnimatedTransitioning.cs
index f096a1b3..d76b2533 100644
--- a/CocoaSharp/UIKit/Protocols/UIViewControllerAnimatedTransitioning.cs
+++ b/CocoaSharp/UIKit/Protocols/UIViewControllerAnimatedTransitioning.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// Adopt the UIViewControllerAnimatedTransitioning protocol in objects that implement the animations for a custom view controller transition. The methods in this protocol let you define an animator object, which creates the animations for transitioning a view controller on or off screen in a fixed amount of time. The animations you create using this protocol must not be interactive. To create interactive transitions, you must combine your animator object with another object that controls the timing of your animations. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIViewControllerAnimatedTransitioning_Protocol/index.html#//apple_ref/occ/intf/UIViewControllerAnimatedTransitioning"/> [iOSVersion(7)] public interface UIViewControllerAnimatedTransitioning//: NSObjectProtocol { /// <summary> /// Tells your animator object to perform the transition animations. (required) /// </summary> /// <param name="transitionContext">The context object containing information about the transition.</param> [iOSVersion(7)] [Export("animateTransition")] void AnimateTransition(UIViewControllerContextTransitioning transitionContext); /// <summary> /// Tells your animator object that the transition animations have finished. /// </summary> /// <param name="transitionCompleted">Contains the value true if the transition completed successfully and the new view controller is now displayed or false if the transition was canceled and the original view controller is still visible.</param> //[iOSVersion(7)] //[Export("animationEnded")] //[Optional] void AnimationEnded(bool transitionCompleted); /// <summary> /// Asks your animator object for the duration (in seconds) of the transition animation. (required) /// </summary> /// <param name="transitionContext">The context object containing information to use during the transition.</param> [iOSVersion(7)] [Export("transitionDuration")] NSTimeInterval TransitionDuration(UIViewControllerContextTransitioning transitionContext); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// Adopt the UIViewControllerAnimatedTransitioning protocol in objects that implement the animations for a custom view controller transition. The methods in this protocol let you define an animator object, which creates the animations for transitioning a view controller on or off screen in a fixed amount of time. The animations you create using this protocol must not be interactive. To create interactive transitions, you must combine your animator object with another object that controls the timing of your animations. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIViewControllerAnimatedTransitioning_Protocol/index.html#//apple_ref/occ/intf/UIViewControllerAnimatedTransitioning"/> [iOSVersion(7)] public interface UIViewControllerAnimatedTransitioning//: NSObjectProtocol { /// <summary> /// Tells your animator object to perform the transition animations. (required) /// </summary> /// <param name="transitionContext">The context object containing information about the transition.</param> [iOSVersion(7)] [Export("animateTransition")] void AnimateTransition(UIViewControllerContextTransitioning transitionContext); /// <summary> /// Tells your animator object that the transition animations have finished. /// </summary> /// <param name="transitionCompleted">Contains the value true if the transition completed successfully and the new view controller is now displayed or false if the transition was canceled and the original view controller is still visible.</param> //[iOSVersion(7)] //[Export("animationEnded")] //[Optional] //void AnimationEnded(bool transitionCompleted); /// <summary> /// Asks your animator object for the duration (in seconds) of the transition animation. (required) /// </summary> /// <param name="transitionContext">The context object containing information to use during the transition.</param> [iOSVersion(7)] [Export("transitionDuration")] NSTimeInterval TransitionDuration(UIViewControllerContextTransitioning transitionContext); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Protocols/UIViewControllerInteractiveTransitioning.cs b/CocoaSharp/UIKit/Protocols/UIViewControllerInteractiveTransitioning.cs
index 3c123d6b..244fa5eb 100644
--- a/CocoaSharp/UIKit/Protocols/UIViewControllerInteractiveTransitioning.cs
+++ b/CocoaSharp/UIKit/Protocols/UIViewControllerInteractiveTransitioning.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// To enable an object (such as a navigation controller) to drive a view controller transition, configure a custom class to adopt the UIViewControllerInteractiveTransitioning protocol. An object that supports this protocol is called an interactive transition delegate. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIViewControllerInteractiveTransitioning_protocol/index.html#//apple_ref/occ/intf/UIViewControllerInteractiveTransitioning"/> [iOSVersion(7)] public interface UIViewControllerInteractiveTransitioning//: NSObjectProtocol { /// <summary> /// Called when the system needs to set up the interactive portions of a view controller transition and start the animations. (required) /// </summary> /// <param name="transitionContext">The context object containing information about the transition.</param> [iOSVersion(7)] [Export("startInteractiveTransition")] void StartInteractiveTransition(UIViewControllerContextTransitioning transitionContext); /// <summary> /// Called when the system needs the animation completion curve for an interactive view controller transition. /// </summary> //[iOSVersion(7)] //[Export("completionCurve")] //[Optional] UIViewAnimationCurve CompletionCurve(); /// <summary> /// Called when the system needs the speed at which to complete an interactive transition, after the interactive portion is finished. /// </summary> //[iOSVersion(7)] //[Export("completionSpeed")] //[Optional] CGFloat CompletionSpeed(); } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// To enable an object (such as a navigation controller) to drive a view controller transition, configure a custom class to adopt the UIViewControllerInteractiveTransitioning protocol. An object that supports this protocol is called an interactive transition delegate. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIViewControllerInteractiveTransitioning_protocol/index.html#//apple_ref/occ/intf/UIViewControllerInteractiveTransitioning"/> [iOSVersion(7)] public interface UIViewControllerInteractiveTransitioning//: NSObjectProtocol { /// <summary> /// Called when the system needs to set up the interactive portions of a view controller transition and start the animations. (required) /// </summary> /// <param name="transitionContext">The context object containing information about the transition.</param> [iOSVersion(7)] [Export("startInteractiveTransition")] void StartInteractiveTransition(UIViewControllerContextTransitioning transitionContext); /// <summary> /// Called when the system needs the animation completion curve for an interactive view controller transition. /// </summary> //[iOSVersion(7)] //[Export("completionCurve")] //[Optional] //UIViewAnimationCurve CompletionCurve(); /// <summary> /// Called when the system needs the speed at which to complete an interactive transition, after the interactive portion is finished. /// </summary> //[iOSVersion(7)] //[Export("completionSpeed")] //[Optional] //CGFloat CompletionSpeed(); } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIAccelerometer.cs b/CocoaSharp/UIKit/UIAccelerometer.cs
index e19b77ad..c5bdc844 100644
--- a/CocoaSharp/UIKit/UIAccelerometer.cs
+++ b/CocoaSharp/UIKit/UIAccelerometer.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace { /// <summary> /// The UIAccelerometer class lets you register to receive acceleration-related data from the onboard hardware. As a device moves, its hardware reports linear acceleration changes along the primary axes in three-dimensional space. You can use this data to detect both the current orientation of the device (relative to the ground) and any instantaneous changes to that orientation. You might use instantaneous changes as input to a game or to initiate some action in your application. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIAccelerometer_Class/index.html#//apple_ref/occ/cl/UIAccelerometer"/> [iOSVersion(2)] public class UIAccelerometer//: { public UIAccelerometer() { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit //TODO: double-check this { /// <summary> /// The UIAccelerometer class lets you register to receive acceleration-related data from the onboard hardware. As a device moves, its hardware reports linear acceleration changes along the primary axes in three-dimensional space. You can use this data to detect both the current orientation of the device (relative to the ground) and any instantaneous changes to that orientation. You might use instantaneous changes as input to a game or to initiate some action in your application. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIAccelerometer_Class/index.html#//apple_ref/occ/cl/UIAccelerometer"/> [iOSVersion(2)] public class UIAccelerometer//: { public UIAccelerometer() { } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIActionSheet.cs b/CocoaSharp/UIKit/UIActionSheet.cs
deleted file mode 100644
index 95a88281..00000000
--- a/CocoaSharp/UIKit/UIActionSheet.cs
+++ /dev/null
@@ -1 +0,0 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// Use the UIActionSheet class to present the user with a set of alternatives for how to proceed with a given task. You can also use action sheets to prompt the user to confirm a potentially dangerous action. The action sheet contains an optional title and one or more buttons, each of which corresponds to an action to take. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIActionSheet_Class/index.html#//apple_ref/occ/cl/UIActionSheet"/> [iOSVersion(2)] public class UIActionSheet : UIView//, AnyObject, NSCoding, NSObjectProtocol, Reflectable, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UITraitEnvironment { /// <summary> /// Initializes the action sheet using the specified starting parameters. /// </summary> /// <param name="title">A string to display in the title area of the action sheet. Pass nil if you do not want to display any text in the title area.</param> /// <param name="@delegate">The receiver’s delegate object. Although this parameter may be nil, the delegate is used to respond to taps in the action sheet and should usually be provided.</param> /// <param name="cancelButtonTitle">The title of the cancel button. This button is added to the action sheet automatically and assigned an appropriate index, which is available from the cancelButtonIndex property. This button is displayed in black to indicate that it represents the cancel action. Specify nil if you do not want a cancel button or are presenting the action sheet on an iPad.</param> /// <param name="destructiveButtonTitle">The title of the destructive button. This button is added to the action sheet automatically and assigned an appropriate index, which is available from the destructiveButtonIndex property. This button is displayed in red to indicate that it represents a destructive behavior. Specify nil if you do not want a destructive button.</param> [iOSVersion(2)] public UIActionSheet(string title, UIActionSheetDelegate @delegate, string cancelButtonTitle, string destructiveButtonTitle) : base(new CGRect()) { } /// <summary> /// Adds a custom button to the action sheet. /// </summary> /// <param name="title">The title of the new button.</param> [iOSVersion(2)] [Export("addButtonWithTitle")] public int AddButtonWithTitle(string title) { return default(int); } /// <summary> /// Returns the title of the button at the specified index. /// </summary> /// <param name="buttonIndex">The index of the button. The button indices start at 0.</param> [iOSVersion(2)] [Export("buttonTitleAtIndex")] public string ButtonTitleAtIndex(int buttonIndex) { return default(string); } /// <summary> /// Displays an action sheet that originates from the specified tab bar. /// </summary> /// <param name="view">The tab bar from which the action sheet originates.</param> [iOSVersion(2)] [Export("showFromTabBar")] public void ShowFromTabBar(UITabBar view) { } /// <summary> /// Displays an action sheet that originates from the specified toolbar. /// </summary> /// <param name="view">The toolbar from which the action sheet originates.</param> [iOSVersion(2)] [Export("showFromToolbar")] public void ShowFromToolbar(UIToolbar view) { } /// <summary> /// Displays an action sheet that originates from the specified view. /// </summary> /// <param name="view">The view from which the action sheet originates.</param> [iOSVersion(2)] [Export("showInView")] public void ShowInView(UIView view) { } /// <summary> /// Displays an action sheet that originates from the specified bar button item. /// </summary> /// <param name="item">The bar button item from which the action sheet originates.</param> /// <param name="animated">Specify true to animate the presentation of the action sheet or false to present it immediately without any animation effects.</param> [iOSVersion(3.2)] [Export("showFromBarButtonItem")] public void ShowFromBarButtonItem(UIBarButtonItem item, bool animated) { } /// <summary> /// Displays an action sheet that originates from the specified view. /// </summary> /// <param name="rect">The portion of view from which to originate the action sheet.</param> /// <param name="inView">The view from which to originate the action sheet.</param> /// <param name="animated">Specify true to animate the presentation of the action sheet or false to present it immediately without any animation effects.</param> [iOSVersion(3.2)] [Export("showFromRect")] public void ShowFromRect(CGRect rect, UIView inView, bool animated) { } /// <summary> /// Dismisses the action sheet immediately using an optional animation. /// </summary> /// <param name="buttonIndex">The index of the button that was clicked. Button indices start at 0.</param> /// <param name="animated">Specify true to animate the dismissal of the action sheet or false to remove the action sheet without an animation.</param> [iOSVersion(2)] [Export("dismissWithClickedButtonIndex")] public void DismissWithClickedButtonIndex(int buttonIndex, bool animated) { } /// <summary> /// The receiver’s delegate or nil if it doesn’t have a delegate. /// </summary> [iOSVersion(2)] [Export("delegate")] public UIActionSheetDelegate Delegate { get; set; } /// <summary> /// The string that appears in the receiver’s title bar. /// </summary> [iOSVersion(2)] [Export("title")] public string Title { get; set; } /// <summary> /// A Boolean value that indicates whether the receiver is displayed. (read-only) /// </summary> [iOSVersion(2)] [Export("visible")] public bool Visible { get; private set; } /// <summary> /// The receiver’s presentation style. /// </summary> [iOSVersion(2)] [Export("actionSheetStyle")] public UIActionSheetStyle ActionSheetStyle { get; set; } /// <summary> /// The number of buttons on the action sheet. (read-only) /// </summary> [iOSVersion(2)] [Export("numberOfButtons")] public int NumberOfButtons { get; private set; } /// <summary> /// The index number of the cancel button. /// </summary> [iOSVersion(2)] [Export("cancelButtonIndex")] public int CancelButtonIndex { get; set; } /// <summary> /// The index number of the destructive button. /// </summary> [iOSVersion(2)] [Export("destructiveButtonIndex")] public int DestructiveButtonIndex { get; set; } /// <summary> /// The index of the first custom button. (read-only) /// </summary> [iOSVersion(2)] [Export("firstOtherButtonIndex")] public int FirstOtherButtonIndex { get; private set; } } /// <summary> /// Specifies the style of an action sheet. /// </summary> [iOSVersion(2)] public enum UIActionSheetStyle { /// <summary> /// Takes the appearance of the bottom bar if specified; otherwise, same as UIActionSheetStyleDefault. /// </summary> [iOSVersion(2)] Automatic, /// <summary> /// The default style. /// </summary> [iOSVersion(2)] Default, /// <summary> /// A black translucent style. /// </summary> [iOSVersion(2)] BlackTranslucent, /// <summary> /// A black opaque style. /// </summary> [iOSVersion(2)] BlackOpaque, } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIActivity.cs b/CocoaSharp/UIKit/UIActivity.cs
index eb1b6800..76c0d05d 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 virtual 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)] 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
diff --git a/CocoaSharp/UIKit/UIActivityViewController.cs b/CocoaSharp/UIKit/UIActivityViewController.cs
index 4e856c2a..473373ee 100644
--- a/CocoaSharp/UIKit/UIActivityViewController.cs
+++ b/CocoaSharp/UIKit/UIActivityViewController.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIActivityViewController class is a standard view controller that you can use to offer various services from your application. The system provides several standard services, such as copying items to the pasteboard, posting content to social media sites, sending items via email or SMS, and more. Apps can also define custom services. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIActivityViewController_Class/index.html#//apple_ref/occ/cl/UIActivityViewController"/> [iOSVersion(6)] public class UIActivityViewController : UIViewController//, AnyObject, NSCoding, NSExtensionRequestHandling, NSObjectProtocol, UIAppearanceContainer, UIContentContainer, UIStateRestoring, UITraitEnvironment { public UIActivityViewController() { } /// <summary> /// Initializes and returns a new activity view controller object that acts on the specified data. /// </summary> /// <param name="activityItems">The array of data objects on which to perform the activity. The type of objects in the array is variable and dependent on the data your application manages. For example, the data might consist of one or more string or image objects representing the currently selected content. /// Instead of actual data objects, the objects in this array can be objects that adopt the UIActivityItemSource protocol, such as UIActivityItemProvider objects. Source and provider objects act as proxies for the corresponding data in situations where you do not want to provide that data until it is needed. /// This array must not be nil and must contain at least one object.</param> /// <param name="applicationActivities">An array of UIActivity objects representing the custom services that your application supports. This parameter may be nil.</param> [iOSVersion(6)] public UIActivityViewController(AnyObject[] activityItems, AnyObject[] applicationActivities) { } /// <summary> /// The completion handler to execute after the activity view controller is dismissed. /// </summary> [iOSVersion(6)] [Export("completionHandler")] public UIActivityViewControllerCompletionHandler CompletionHandler { get; set; } /// <summary> /// The list of services that should not be displayed. /// </summary> [iOSVersion(6)] [Export("excludedActivityTypes")] public AnyObject[] ExcludedActivityTypes { get; set; } } /// <summary> /// A completion handler to execute after the activity view controller is dismissed. /// </summary> [iOSVersion(6)] public struct UIActivityViewControllerCompletionHandler { static public implicit operator UIActivityViewControllerCompletionHandler(WEIRD value) { return default(UIActivityViewControllerCompletionHandler); } static public implicit operator WEIRD(UIActivityViewControllerCompletionHandler value) { return default(WEIRD); } } } \ 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 UIActivityViewController class is a standard view controller that you can use to offer various services from your application. The system provides several standard services, such as copying items to the pasteboard, posting content to social media sites, sending items via email or SMS, and more. Apps can also define custom services. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIActivityViewController_Class/index.html#//apple_ref/occ/cl/UIActivityViewController"/> [iOSVersion(6)] public class UIActivityViewController : UIViewController//, AnyObject, NSCoding, NSExtensionRequestHandling, NSObjectProtocol, UIAppearanceContainer, UIContentContainer, UIStateRestoring, UITraitEnvironment { public UIActivityViewController() { } /// <summary> /// Initializes and returns a new activity view controller object that acts on the specified data. /// </summary> /// <param name="activityItems">The array of data objects on which to perform the activity. The type of objects in the array is variable and dependent on the data your application manages. For example, the data might consist of one or more string or image objects representing the currently selected content. /// Instead of actual data objects, the objects in this array can be objects that adopt the UIActivityItemSource protocol, such as UIActivityItemProvider objects. Source and provider objects act as proxies for the corresponding data in situations where you do not want to provide that data until it is needed. /// This array must not be nil and must contain at least one object.</param> /// <param name="applicationActivities">An array of UIActivity objects representing the custom services that your application supports. This parameter may be nil.</param> [iOSVersion(6)] public UIActivityViewController(AnyObject[] activityItems, AnyObject[] applicationActivities) { } /// <summary> /// The completion handler to execute after the activity view controller is dismissed. /// </summary> [iOSVersion(6)] [Export("completionHandler")] public UIActivityViewControllerCompletionHandler CompletionHandler { get; set; } /// <summary> /// The list of services that should not be displayed. /// </summary> [iOSVersion(6)] [Export("excludedActivityTypes")] public AnyObject[] ExcludedActivityTypes { get; set; } } /// <summary> /// A completion handler to execute after the activity view controller is dismissed. /// </summary> [iOSVersion(6)] public struct UIActivityViewControllerCompletionHandler { static public implicit operator UIActivityViewControllerCompletionHandler(Action<string, bool> value) { return default(UIActivityViewControllerCompletionHandler); } static public implicit operator Action<string, bool>(UIActivityViewControllerCompletionHandler value) { return default(Action<string, bool>); } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIAlertView.cs b/CocoaSharp/UIKit/UIAlertView.cs
deleted file mode 100644
index 203ab253..00000000
--- a/CocoaSharp/UIKit/UIAlertView.cs
+++ /dev/null
@@ -1 +0,0 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// Use the UIAlertView class to display an alert message to the user. An alert view functions similar to but differs in appearance from an action sheet (an instance of UIActionSheet). /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIAlertView_Class/index.html#//apple_ref/occ/cl/UIAlertView"/> [iOSVersion(2)] public class UIAlertView : UIView//, AnyObject, NSCoding, NSObjectProtocol, Reflectable, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UITraitEnvironment { /// <summary> /// Convenience method for initializing an alert view. /// </summary> /// <param name="title">The string that appears in the receiver’s title bar.</param> /// <param name="message">Descriptive text that provides more details than the title.</param> /// <param name="@delegate">The receiver’s delegate or nil if it doesn’t have a delegate.</param> /// <param name="cancelButtonTitle">The title of the cancel button or nil if there is no cancel button. /// Using this argument is equivalent to setting the cancel button index to the value returned by invoking addButtonWithTitle: specifying this title.</param> [iOSVersion(2)] public UIAlertView(string title, string message, AnyObject @delegate, string cancelButtonTitle) : base(new CGRect()) { } /// <summary> /// Adds a button to the receiver with the given title. /// </summary> /// <param name="title">The title of the new button.</param> [iOSVersion(2)] [Export("addButtonWithTitle")] public int AddButtonWithTitle(string title) { return default(int); } /// <summary> /// Returns the title of the button at the given index. /// </summary> /// <param name="buttonIndex">The index of the button. The button indices start at 0.</param> [iOSVersion(2)] [Export("buttonTitleAtIndex")] public string ButtonTitleAtIndex(int buttonIndex) { return default(string); } /// <summary> /// Returns the text field at the given index /// </summary> /// <param name="textFieldIndex">The index of the text field. The text field indices start at 0.</param> [iOSVersion(5)] [Export("textFieldAtIndex")] public UITextField TextFieldAtIndex(int textFieldIndex) { return default(UITextField); } /// <summary> /// Displays the receiver using animation. /// </summary> [iOSVersion(2)] [Export("show")] public void Show() { } /// <summary> /// Dismisses the receiver, optionally with animation. /// </summary> /// <param name="buttonIndex">The index of the button that was clicked just before invoking this method. The button indices start at 0.</param> /// <param name="animated">true if the receiver should be removed by animating it first; otherwise, false if it should be removed immediately with no animation.</param> [iOSVersion(2)] [Export("dismissWithClickedButtonIndex")] public void DismissWithClickedButtonIndex(int buttonIndex, bool animated) { } /// <summary> /// The receiver’s delegate or nil if it doesn’t have a delegate. /// </summary> [iOSVersion(2)] [Export("delegate")] public AnyObject Delegate { get; set; } /// <summary> /// The kind of alert displayed to the user. /// </summary> [iOSVersion(5)] [Export("alertViewStyle")] public UIAlertViewStyle AlertViewStyle { get; set; } /// <summary> /// The string that appears in the receiver’s title bar. /// </summary> [iOSVersion(2)] [Export("title")] public string Title { get; set; } /// <summary> /// Descriptive text that provides more details than the title. /// </summary> [iOSVersion(2)] [Export("message")] public string Message { get; set; } /// <summary> /// A Boolean value that indicates whether the receiver is displayed. (read-only) /// </summary> [iOSVersion(2)] [Export("visible")] public bool Visible { get; private set; } /// <summary> /// The number of buttons on the alert view. (read-only) /// </summary> [iOSVersion(2)] [Export("numberOfButtons")] public int NumberOfButtons { get; private set; } /// <summary> /// The index number of the cancel button. /// </summary> [iOSVersion(2)] [Export("cancelButtonIndex")] public int CancelButtonIndex { get; set; } /// <summary> /// The index of the first other button. (read-only) /// </summary> [iOSVersion(2)] [Export("firstOtherButtonIndex")] public int FirstOtherButtonIndex { get; private set; } } /// <summary> /// The presentation style of the alert. /// </summary> [iOSVersion(5)] public enum UIAlertViewStyle { /// <summary> /// A standard alert. /// </summary> [iOSVersion(5)] Default, /// <summary> /// An alert that allows the user to enter text. The text field is obscured. /// </summary> [iOSVersion(5)] SecureTextInput, /// <summary> /// An alert that allows the user to enter text. /// </summary> [iOSVersion(5)] PlainTextInput, /// <summary> /// An alert that allows the user to enter a login identifier and password. /// </summary> [iOSVersion(5)] LoginAndPasswordInput, } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIApplication.cs b/CocoaSharp/UIKit/UIApplication.cs
index b6c5f9ed..342695a3 100644
--- a/CocoaSharp/UIKit/UIApplication.cs
+++ b/CocoaSharp/UIKit/UIApplication.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIApplication class provides a centralized point of control and coordination for apps running on iOS. Every app must have exactly one instance of UIApplication (or a subclass of UIApplication). When an app is launched, the UIApplicationMain function is called; among its other tasks, this function creates a singleton UIApplication object. Thereafter you access this object by invoking the sharedApplication class method. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIApplication_Class/index.html#//apple_ref/occ/cl/UIApplication"/> [iOSVersion(2)] public class UIApplication : UIResponder//, AnyObject, NSObjectProtocol, UIActionSheetDelegate { public UIApplication() { } /// <summary> /// Returns the singleton app instance. /// </summary> [iOSVersion(2)] [Export("sharedApplication")] public virtual static UIApplication SharedApplication() { return default(UIApplication); } /// <summary> /// Dispatches an event to the appropriate responder objects in the app. /// </summary> /// <param name="event">A UIEvent object encapsulating the information about an event, including the touches involved.</param> [iOSVersion(2)] [Export("sendEvent")] public virtual void SendEvent(UIEvent event) { } /// <summary> /// Sends an action message identified by selector to a specified target. /// </summary> /// <param name="action">A selector identifying an action method. See the discussion for information on the permitted selector forms.</param> /// <param name="to">The object to receive the action message. If target is nil, the app sends the message to the first responder, from whence it progresses up the responder chain until it is handled.</param> /// <param name="from">The object that is sending the action message. The default sender is the UIControl object that invokes this method.</param> /// <param name="forEvent">A UIEvent object that encapsulates information about the event originating the action message.</param> [iOSVersion(2)] [Export("sendAction")] public virtual bool SendAction(Selector action, AnyObject to, AnyObject from, UIEvent forEvent) { return default(bool); } /// <summary> /// Tells the receiver to suspend the handling of touch-related events. /// </summary> [iOSVersion(2)] [Export("beginIgnoringInteractionEvents")] public virtual void BeginIgnoringInteractionEvents() { } /// <summary> /// Tells the receiver to resume the handling of touch-related events. /// </summary> [iOSVersion(2)] [Export("endIgnoringInteractionEvents")] public virtual void EndIgnoringInteractionEvents() { } /// <summary> /// Returns whether the receiver is ignoring events initiated by touches on the screen. /// </summary> [iOSVersion(2)] [Export("isIgnoringInteractionEvents")] public virtual bool IsIgnoringInteractionEvents() { return default(bool); } /// <summary> /// Opens the resource at the specified URL. /// </summary> /// <param name="url">An object representing a URL (Universal Resource Locator). UIKit supports many schemes, including http, https, tel, facetime, and mailto schemes.</param> [iOSVersion(2)] [Export("openURL")] public virtual bool OpenURL(NSURL url) { return default(bool); } /// <summary> /// Returns whether an app can open a given URL resource. /// </summary> /// <param name="url">A URL object that identifies a given resource. The URL’s scheme—possibly a custom scheme—identifies which app can handle the URL.</param> [iOSVersion(3)] [Export("canOpenURL")] public virtual bool CanOpenURL(NSURL url) { return default(bool); } /// <summary> /// Registers your preferred options for notifying the user. /// </summary> /// <param name="notificationSettings">The types of notifications that your app wants to use. You also use this object to specify custom actions that can be initiated by the user from an alert displayed in response to a local or remote notification.</param> [iOSVersion(8)] [Export("registerUserNotificationSettings")] public virtual void RegisterUserNotificationSettings(UIUserNotificationSettings notificationSettings) { } /// <summary> /// Returns the user notification settings for the app. /// </summary> [iOSVersion(8)] [Export("currentUserNotificationSettings")] public virtual UIUserNotificationSettings CurrentUserNotificationSettings() { return default(UIUserNotificationSettings); } /// <summary> /// Register to receive push notifications via Apple Push Service. /// </summary> [iOSVersion(8)] [Export("registerForRemoteNotifications")] public virtual void RegisterForRemoteNotifications() { } /// <summary> /// Unregister for all push notifications received via Apple Push Service. /// </summary> [iOSVersion(3)] [Export("unregisterForRemoteNotifications")] public virtual void UnregisterForRemoteNotifications() { } /// <summary> /// Returns a Boolean indicating whether the app is currently registered for remote notifications. /// </summary> [iOSVersion(8)] [Export("isRegisteredForRemoteNotifications")] public virtual bool IsRegisteredForRemoteNotifications() { return default(bool); } /// <summary> /// Schedules a local notification for delivery at its encapsulated date and time. /// </summary> /// <param name="notification">The local notification object that you want to schedule. This object contains information about when to deliver the notification and what to do when that date occurs. The system keeps a copy of this object so you may release the object once it is scheduled.</param> [iOSVersion(4)] [Export("scheduleLocalNotification")] public virtual void ScheduleLocalNotification(UILocalNotification notification) { } /// <summary> /// Presents a local notification immediately. /// </summary> /// <param name="notification">A local notification that the operating system presents for the app immediately, regardless of the value of the notification’s fireDate property. Apps running in the background state can immediately present local notifications when there are incoming chats, messages, or updates. Because the operating system copies notification, you may release it once you have scheduled it.</param> [iOSVersion(4)] [Export("presentLocalNotificationNow")] public virtual void PresentLocalNotificationNow(UILocalNotification notification) { } /// <summary> /// Cancels the delivery of the specified scheduled local notification. /// </summary> /// <param name="notification">The local notification to cancel.</param> [iOSVersion(4)] [Export("cancelLocalNotification")] public virtual void CancelLocalNotification(UILocalNotification notification) { } /// <summary> /// Cancels the delivery of all scheduled local notifications. /// </summary> [iOSVersion(4)] [Export("cancelAllLocalNotifications")] public virtual void CancelAllLocalNotifications() { } /// <summary> /// Specifies the minimum amount of time that must elapse between background fetch operations. /// </summary> /// <param name="minimumBackgroundFetchInterval">The minimum number of seconds that must elapse before another background fetch can be initiated. This value is advisory only and does not indicate the exact amount of time expected between fetch operations.</param> [iOSVersion(7)] [Export("setMinimumBackgroundFetchInterval")] public virtual void SetMinimumBackgroundFetchInterval(NSTimeInterval minimumBackgroundFetchInterval) { } /// <summary> /// Marks the beginning of a new long-running background task with the specified name. /// </summary> /// <param name="taskName">The name to display in the debugger when viewing the background task. If you specify nil for this parameter, this method generates a name based on the name of the calling function or method.</param> /// <param name="expirationHandler">A handler to be called shortly before the app’s remaining background time reaches 0. You should use this handler to clean up and mark the end of the background task. Failure to end the task explicitly will result in the termination of the app. The handler is called synchronously on the main thread, blocking the app’s suspension momentarily while the app is notified.</param> [iOSVersion(7)] [Export("beginBackgroundTaskWithName")] public virtual UIBackgroundTaskIdentifier BeginBackgroundTaskWithName(string taskName, Action expirationHandler) { return default(UIBackgroundTaskIdentifier); } /// <summary> /// Marks the beginning of a new long-running background task. /// </summary> /// <param name="handler">A handler to be called shortly before the app’s remaining background time reaches 0. You should use this handler to clean up and mark the end of the background task. Failure to end the task explicitly will result in the termination of the app. The handler is called synchronously on the main thread, blocking the app’s suspension momentarily while the app is notified.</param> [iOSVersion(4)] [Export("beginBackgroundTaskWithExpirationHandler")] public virtual UIBackgroundTaskIdentifier BeginBackgroundTaskWithExpirationHandler(Action handler) { return default(UIBackgroundTaskIdentifier); } /// <summary> /// Marks the end of a specific long-running background task. /// </summary> /// <param name="identifier">An identifier returned by the beginBackgroundTaskWithExpirationHandler: method.</param> [iOSVersion(4)] [Export("endBackgroundTask")] public virtual void EndBackgroundTask(UIBackgroundTaskIdentifier identifier) { } /// <summary> /// Configures a periodic handler for VoIP apps in older versions of iOS. /// </summary> /// <param name="timeout">The maximum interval (measured in seconds) at which your app should be woken up to check its VoIP connection. The minimum acceptable timeout value is 600 seconds.</param> /// <param name="handler">A block that performs the tasks needed to maintain your VoIP network connection. Setting this parameter to nil releases the current handler block and prevents UIKit from scheduling the next wake.</param> [iOSVersion(4)] [Export("setKeepAliveTimeout")] public virtual bool SetKeepAliveTimeout(NSTimeInterval timeout, Action handler) { return default(bool); } /// <summary> /// Removes a previously installed periodic handler block. /// </summary> [iOSVersion(4)] [Export("clearKeepAliveTimeout")] public virtual void ClearKeepAliveTimeout() { } /// <summary> /// Tells the app that your code is restoring state asynchronously. /// </summary> [iOSVersion(6)] [Export("extendStateRestoration")] public virtual void ExtendStateRestoration() { } /// <summary> /// Tells the app that your code has finished any asynchronous state restoration. /// </summary> [iOSVersion(6)] [Export("completeStateRestoration")] public virtual void CompleteStateRestoration() { } /// <summary> /// Prevents the app from using the recent snapshot image during the next launch cycle. /// </summary> [iOSVersion(7)] [Export("ignoreSnapshotOnNextApplicationLaunch")] public virtual void IgnoreSnapshotOnNextApplicationLaunch() { } /// <summary> /// Registers a custom object for use with the state restoration system. /// </summary> /// <param name="@object">The object to be registered with the restoration archive. The object must adopt the UIStateRestoring protocol. This parameter must not be nil.</param> /// <param name="restorationIdentifier">The restoration identifier for the object. UIKit uses this parameter to distinguish the object from other objects in the archive. This parameter must not be nil.</param> [iOSVersion(7)] [Export("registerObjectForStateRestoration")] public virtual static void RegisterObjectForStateRestoration(UIStateRestoring @object, string restorationIdentifier) { } /// <summary> /// Tells the app to begin receiving remote-control events. /// </summary> [iOSVersion(4)] [Export("beginReceivingRemoteControlEvents")] public virtual void BeginReceivingRemoteControlEvents() { } /// <summary> /// Tells the app to stop receiving remote-control events. /// </summary> [iOSVersion(4)] [Export("endReceivingRemoteControlEvents")] public virtual void EndReceivingRemoteControlEvents() { } /// <summary> /// Hides or shows the status bar, optionally animating the transition. /// </summary> /// <param name="hidden">true to hide the status bar, false to show the status bar.</param> /// <param name="withAnimation">A constant that indicates whether there should be an animation and, if one is requested, whether it should fade the status bar in or out or whether it should slide the status bar in or out.</param> [iOSVersion(3.2)] [Export("setStatusBarHidden")] public virtual void SetStatusBarHidden(bool hidden, UIStatusBarAnimation withAnimation) { } /// <summary> /// Sets the style of the status bar, optionally animating the transition to the new style. /// </summary> /// <param name="statusBarStyle">A constant that specifies a style for the status bar. See the descriptions of the constants in UIStatusBarStyle for details.</param> /// <param name="animated">true if the transition to the new style should be animated; otherwise false .</param> [iOSVersion(2)] [Export("setStatusBarStyle")] public virtual void SetStatusBarStyle(UIStatusBarStyle statusBarStyle, bool animated) { } /// <summary> /// Sets the icon of a Newsstand app to an image depicting the current issue of a publication. /// </summary> /// <param name="image">An image to use as the icon of a Newsstand app. Pass nil to clear the currently set image and revert to the icon stored in the app bundle.</param> [iOSVersion(5)] [Export("setNewsstandIconImage")] public virtual void SetNewsstandIconImage(UIImage image) { } /// <summary> /// Returns the default set of interface orientations to use for the view controllers in the specified window. /// </summary> /// <param name="window">The window whose default interface orientations you want to retrieve.</param> [iOSVersion(6)] [Export("supportedInterfaceOrientationsForWindow")] public virtual int SupportedInterfaceOrientationsForWindow(UIWindow window) { return default(int); } /// <summary> /// Sets the app's status bar to the specified orientation, optionally animating the transition. /// </summary> /// <param name="interfaceOrientation">A specific orientation of the status bar. See UIInterfaceOrientation for details. The default value is UIInterfaceOrientationPortrait.</param> /// <param name="animated">true if the transition to the new orientation should be animated; false if it should be immediate, without animation.</param> [iOSVersion(2)] [Export("setStatusBarOrientation")] public virtual void SetStatusBarOrientation(UIInterfaceOrientation interfaceOrientation, bool animated) { } /// <summary> /// Register to receive push notifications of the specified types via Apple Push Service. /// </summary> /// <param name="types">A bit mask specifying the types of notifications the app accepts. For a list of values, see UIRemoteNotificationType.</param> [iOSVersion(3)] [Export("registerForRemoteNotificationTypes")] public virtual void RegisterForRemoteNotificationTypes(UIRemoteNotificationType types) { } /// <summary> /// Returns the types of notifications the app accepts. /// </summary> [iOSVersion(3)] [Export("enabledRemoteNotificationTypes")] public virtual UIRemoteNotificationType EnabledRemoteNotificationTypes() { return default(UIRemoteNotificationType); } /// <summary> /// The delegate of the app object. /// </summary> [iOSVersion(2)] [Export("delegate")] public UIApplicationDelegate Delegate { get; set; } /// <summary> /// The app's key window. (read-only) /// </summary> [iOSVersion(2)] [Export("keyWindow")] public UIWindow KeyWindow { get; private set; } /// <summary> /// The app's visible and hidden windows. (read-only) /// </summary> [iOSVersion(2)] [Export("windows")] public AnyObject[] Windows { get; private set; } /// <summary> /// A Boolean value that determines whether shaking the device displays the undo-redo user interface. /// </summary> [iOSVersion(3)] [Export("applicationSupportsShakeToEdit")] public bool ApplicationSupportsShakeToEdit { get; set; } /// <summary> /// All currently scheduled local notifications. /// </summary> [iOSVersion(4)] [Export("scheduledLocalNotifications")] public AnyObject[] ScheduledLocalNotifications { get; set; } /// <summary> /// The runtime state of the app. (read-only) /// </summary> [iOSVersion(4)] [Export("applicationState")] public UIApplicationState ApplicationState { get; private set; } /// <summary> /// The amount of time the app has to run in the background. (read-only) /// </summary> [iOSVersion(4)] [Export("backgroundTimeRemaining")] public NSTimeInterval BackgroundTimeRemaining { get; private set; } /// <summary> /// The ability of the app to be launched into the background so that it can perform background behaviors. (read-only) /// </summary> [iOSVersion(7)] [Export("backgroundRefreshStatus")] public UIBackgroundRefreshStatus BackgroundRefreshStatus { get; private set; } /// <summary> /// A Boolean value indicating whether content protection is active. (read-only) /// </summary> [iOSVersion(4)] [Export("protectedDataAvailable")] public bool ProtectedDataAvailable { get; private set; } /// <summary> /// A Boolean value that controls whether the idle timer is disabled for the app. /// </summary> [iOSVersion(2)] [Export("idleTimerDisabled")] public bool IdleTimerDisabled { get; set; } /// <summary> /// A Boolean value that determines whether the status bar is hidden. /// </summary> [iOSVersion(2)] [Export("statusBarHidden")] public bool StatusBarHidden { get; set; } /// <summary> /// The current style of the status bar. /// </summary> [iOSVersion(2)] [Export("statusBarStyle")] public UIStatusBarStyle StatusBarStyle { get; set; } /// <summary> /// The frame rectangle defining the area of the status bar. (read-only) /// </summary> [iOSVersion(2)] [Export("statusBarFrame")] public CGRect StatusBarFrame { get; private set; } /// <summary> /// A Boolean value that turns an indicator of network activity on or off. /// </summary> [iOSVersion(2)] [Export("networkActivityIndicatorVisible")] public bool NetworkActivityIndicatorVisible { get; set; } /// <summary> /// The number currently set as the badge of the app icon in Springboard. /// </summary> [iOSVersion(2)] [Export("applicationIconBadgeNumber")] public int ApplicationIconBadgeNumber { get; set; } /// <summary> /// Returns the layout direction of the user interface. (read-only) /// </summary> [iOSVersion(5)] [Export("userInterfaceLayoutDirection")] public UIUserInterfaceLayoutDirection UserInterfaceLayoutDirection { get; private set; } /// <summary> /// The font sizing option preferred by the user. (read-only) /// </summary> [iOSVersion(7)] [Export("preferredContentSizeCategory")] public string PreferredContentSizeCategory { get; private set; } /// <summary> /// The current orientation of the app's status bar. /// </summary> [iOSVersion(2)] [Export("statusBarOrientation")] public UIInterfaceOrientation StatusBarOrientation { get; set; } /// <summary> /// The animation duration in seconds for the status bar during a 90 degree orientation change. (read-only) /// </summary> [iOSVersion(2)] [Export("statusBarOrientationAnimationDuration")] public NSTimeInterval StatusBarOrientationAnimationDuration { get; private set; } } /// <summary> /// Constants indicating the types of notifications the app may display to the user. /// </summary> [iOSVersion(3)] public enum UIRemoteNotificationType { /// <summary> /// /// </summary> None, /// <summary> /// /// </summary> Badge, /// <summary> /// /// </summary> Sound, /// <summary> /// /// </summary> Alert, /// <summary> /// /// </summary> NewsstandContentAvailability, } /// <summary> /// The style of the device’s status bar. /// </summary> [iOSVersion(2)] public enum UIStatusBarStyle { /// <summary> /// A dark status bar, intended for use on light backgrounds. /// </summary> [iOSVersion(2)] Default, /// <summary> /// A light status bar, intended for use on dark backgrounds. /// </summary> [iOSVersion(7)] LightContent, /// <summary> /// An opaque black style. /// Use UIStatusBarStyleLightContent instead. /// Available in iOS 2.0 and later. /// Deprecated in iOS 7.0. /// </summary> [Obsolete] BlackOpaque, } /// <summary> /// The animation applied to the status bar as it is hidden or made visible. /// </summary> [iOSVersion(3.2)] public enum UIStatusBarAnimation { /// <summary> /// No animation is applied to the status bar as it is shown or hidden. /// </summary> [iOSVersion(3.2)] None, /// <summary> /// The status bar fades in and out as it is shown or hidden, respectively. /// </summary> [iOSVersion(3.2)] Fade, /// <summary> /// The status bar slides in or out as it is shown or hidden, respectively. /// </summary> [iOSVersion(3.2)] Slide, } /// <summary> /// The running states of an app /// </summary> [iOSVersion(4)] public enum UIApplicationState { /// <summary> /// The app is running in the foreground and currently receiving events. /// </summary> [iOSVersion(4)] Active, /// <summary> /// The app is running in the foreground but is not receiving events. This might happen as a result of an interruption or because the app is transitioning to or from the background. /// </summary> [iOSVersion(4)] Inactive, /// <summary> /// The app is running in the background. /// </summary> [iOSVersion(4)] Background, } /// <summary> /// Constants that indicate the result of a background fetch operation. /// </summary> [iOSVersion(7)] public enum UIBackgroundFetchResult { /// <summary> /// New data was successfully downloaded. /// </summary> [iOSVersion(7)] NewData, /// <summary> /// There was no new data to download. /// </summary> [iOSVersion(7)] NoData, /// <summary> /// An attempt to download data was made but that attempt failed. /// </summary> [iOSVersion(7)] Failed, } /// <summary> /// Constants indicating whether background execution is enabled for the app. /// </summary> [iOSVersion(7)] public enum UIBackgroundRefreshStatus { /// <summary> /// Background updates are unavailable and the user cannot enable them again. For example, this status can occur when parental controls are in effect for the current user. /// </summary> [iOSVersion(7)] Restricted, /// <summary> /// The user explicitly disabled background behavior for this app or for the whole system. /// </summary> [iOSVersion(7)] Denied, /// <summary> /// Background updates are available for the app. /// </summary> [iOSVersion(7)] Available, } /// <summary> /// The orientation of the app's user interface. /// </summary> [iOSVersion(2)] public enum UIInterfaceOrientation { /// <summary> /// The orientation of the device cannot be determined. /// </summary> [iOSVersion(8)] Unknown, /// <summary> /// The device is in portrait mode, with the device held upright and the home button on the bottom. /// </summary> [iOSVersion(2)] Portrait, /// <summary> /// The device is in portrait mode but upside down, with the device held upright and the home button at the top. /// </summary> [iOSVersion(2)] PortraitUpsideDown, /// <summary> /// The device is in landscape mode, with the device held upright and the home button on the left side. /// </summary> [iOSVersion(2)] LandscapeLeft, /// <summary> /// The device is in landscape mode, with the device held upright and the home button on the right side. /// </summary> [iOSVersion(2)] LandscapeRight, } /// <summary> /// These constants are mask bits for specifying a view controller’s supported interface orientations. /// </summary> [iOSVersion(6)] public enum UIInterfaceOrientationMask { /// <summary> /// The view controller supports a portrait interface orientation. /// </summary> [iOSVersion(6)] Portrait, /// <summary> /// The view controller supports a landscape-left interface orientation. /// </summary> [iOSVersion(6)] LandscapeLeft, /// <summary> /// The view controller supports a landscape-right interface orientation. /// </summary> [iOSVersion(6)] LandscapeRight, /// <summary> /// The view controller supports an upside-down portrait interface orientation. /// </summary> [iOSVersion(6)] PortraitUpsideDown, /// <summary> /// The view controller supports both landscape-left and landscape-right interface orientation. /// </summary> [iOSVersion(6)] Landscape, /// <summary> /// The view controller supports all interface orientations. /// </summary> [iOSVersion(6)] All, /// <summary> /// The view controller supports all but the upside-down portrait interface orientation. /// </summary> [iOSVersion(6)] AllButUpsideDown, } /// <summary> /// Specifies the directional flow of the user interface. /// </summary> [iOSVersion(5)] public enum UIUserInterfaceLayoutDirection { /// <summary> /// The layout direction is left to right. /// </summary> [iOSVersion(5)] LeftToRight, /// <summary> /// The layout direction right to left. This value is appropriate when running with localizations such as Arabic or Hebrew that should have the user interface layout origin on the right edge of the coordinate system. /// </summary> [iOSVersion(5)] RightToLeft, } /// <summary> /// A unique token that identifies a request to run in the background. /// </summary> [iOSVersion(4)] public struct UIBackgroundTaskIdentifier { static public implicit operator UIBackgroundTaskIdentifier(int value) { return default(UIBackgroundTaskIdentifier); } static public implicit operator int(UIBackgroundTaskIdentifier value) { return default(int); } } /// <summary> /// The system sends this notification when the backgroundRefreshStatus property of the app object changes. That property can change in response to the user disabling multitasking support for the app. The object of the notification is the UIApplication object. There is no userInfo dictionary. /// </summary> [iOSVersion(7)] public class UIApplicationBackgroundRefreshStatusDidChangeNotification : NSNotification { public UIApplicationBackgroundRefreshStatusDidChangeNotification() : base("", null) { } } /// <summary> /// An app is active when it is receiving events. An active app can be said to have focus. It gains focus after being launched, loses focus when an overlay window pops up or when the device is locked, and gains focus when the device is unlocked. /// </summary> [iOSVersion(2)] public class UIApplicationDidBecomeActiveNotification : NSNotification { public UIApplicationDidBecomeActiveNotification() : base("", null) { } } /// <summary> /// The userInfo dictionary contains an NSValue object that encapsulates a CGRect structure expressing the location and size of the new status bar frame. Use UIApplicationStatusBarFrameUserInfoKey to access this value. /// </summary> [iOSVersion(2)] public class UIApplicationDidChangeStatusBarFrameNotification : NSNotification { public UIApplicationDidChangeStatusBarFrameNotification() : base("", null) { } } /// <summary> /// The userInfo dictionary contains an NSNumber object that encapsulates a UIInterfaceOrientation value (see UIInterfaceOrientation). Use UIApplicationStatusBarOrientationUserInfoKey to access this value /// </summary> [iOSVersion(2)] public class UIApplicationDidChangeStatusBarOrientationNotification : NSNotification { public UIApplicationDidChangeStatusBarOrientationNotification() : base("", null) { } } /// <summary> /// The object of the notification is the UIApplication object. There is no userInfo dictionary. /// </summary> [iOSVersion(4)] public class UIApplicationDidEnterBackgroundNotification : NSNotification { public UIApplicationDidEnterBackgroundNotification() : base("", null) { } } /// <summary> /// If the app was launched as a result of in remote notification targeted at it or because another app opened a URL resource claimed the posting app (the notification object), this notification contains a userInfo dictionary. You can access the contents of the dictionary using the UIApplicationLaunchOptionsURLKey and UIApplicationLaunchOptionsSourceApplicationKey constants (for URLs), the UIApplicationLaunchOptionsRemoteNotificationKey constant (for remote notifications), and the UIApplicationLaunchOptionsLocalNotificationKey constant (for local notifications). If the notification was posted for a normal app launch, there is no userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIApplicationDidFinishLaunchingNotification : NSNotification { public UIApplicationDidFinishLaunchingNotification() : base("", null) { } } /// <summary> /// This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIApplicationDidReceiveMemoryWarningNotification : NSNotification { public UIApplicationDidReceiveMemoryWarningNotification() : base("", null) { } } /// <summary> /// This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(4)] public class UIApplicationProtectedDataDidBecomeAvailable : NSNotification { public UIApplicationProtectedDataDidBecomeAvailable() : base("", null) { } } /// <summary> /// Upon receiving this notification, clients should release any references to protected files. This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(4)] public class UIApplicationProtectedDataWillBecomeUnavailable : NSNotification { public UIApplicationProtectedDataWillBecomeUnavailable() : base("", null) { } } /// <summary> /// This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIApplicationSignificantTimeChangeNotification : NSNotification { public UIApplicationSignificantTimeChangeNotification() : base("", null) { } } /// <summary> /// This notification does not contain a userInfo dictionary. This notification is posted after the screenshot is taken. /// </summary> [iOSVersion(7)] public class UIApplicationUserDidTakeScreenshotNotification : NSNotification { public UIApplicationUserDidTakeScreenshotNotification() : base("", null) { } } /// <summary> /// The userInfo dictionary contains an NSNumber that encapsulates a UIInterfaceOrientation value (see UIInterfaceOrientation). Use UIApplicationStatusBarOrientationUserInfoKey to access this value. /// </summary> [iOSVersion(2)] public class UIApplicationWillChangeStatusBarOrientationNotification : NSNotification { public UIApplicationWillChangeStatusBarOrientationNotification() : base("", null) { } } /// <summary> /// The userInfo dictionary contains an NSValue object that encapsulates a CGRect structure expressing the location and size of the new status bar frame. Use UIApplicationStatusBarFrameUserInfoKey to access this value. /// </summary> [iOSVersion(2)] public class UIApplicationWillChangeStatusBarFrameNotification : NSNotification { public UIApplicationWillChangeStatusBarFrameNotification() : base("", null) { } } /// <summary> /// The object of the notification is the UIApplication object. There is no userInfo dictionary. /// </summary> [iOSVersion(4)] public class UIApplicationWillEnterForegroundNotification : NSNotification { public UIApplicationWillEnterForegroundNotification() : base("", null) { } } /// <summary> /// An app is active when it is receiving events. An active app can be said to have focus. It gains focus after being launched, loses focus when an overlay window pops up or when the device is locked, and gains focus when the device is unlocked. /// </summary> [iOSVersion(2)] public class UIApplicationWillResignActiveNotification : NSNotification { public UIApplicationWillResignActiveNotification() : base("", null) { } } /// <summary> /// This notification is associated with the delegate applicationWillTerminate: method. This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIApplicationWillTerminateNotification : NSNotification { public UIApplicationWillTerminateNotification() : base("", null) { } } /// <summary> /// This notification is sent when the value in the preferredContentSizeCategory property changes. The userInfo dictionary of the notification contains the UIContentSizeCategoryNewValueKey key, which reflects the new setting. /// </summary> [iOSVersion(7)] public class UIContentSizeCategoryDidChangeNotification : NSNotification { public UIContentSizeCategoryDidChangeNotification() : base("", null) { } } } \ 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 UIApplication class provides a centralized point of control and coordination for apps running on iOS. Every app must have exactly one instance of UIApplication (or a subclass of UIApplication). When an app is launched, the UIApplicationMain function is called; among its other tasks, this function creates a singleton UIApplication object. Thereafter you access this object by invoking the sharedApplication class method. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIApplication_Class/index.html#//apple_ref/occ/cl/UIApplication"/> [iOSVersion(2)] public class UIApplication : UIResponder//, AnyObject, NSObjectProtocol, UIActionSheetDelegate { public UIApplication() { } /// <summary> /// Returns the singleton app instance. /// </summary> [iOSVersion(2)] [Export("sharedApplication")] public static UIApplication SharedApplication() { return default(UIApplication); } /// <summary> /// Dispatches an event to the appropriate responder objects in the app. /// </summary> /// <param name="event">A UIEvent object encapsulating the information about an event, including the touches involved.</param> [iOSVersion(2)] [Export("sendEvent")] public virtual void SendEvent(UIEvent @event) { } /// <summary> /// Sends an action message identified by selector to a specified target. /// </summary> /// <param name="action">A selector identifying an action method. See the discussion for information on the permitted selector forms.</param> /// <param name="to">The object to receive the action message. If target is nil, the app sends the message to the first responder, from whence it progresses up the responder chain until it is handled.</param> /// <param name="from">The object that is sending the action message. The default sender is the UIControl object that invokes this method.</param> /// <param name="forEvent">A UIEvent object that encapsulates information about the event originating the action message.</param> [iOSVersion(2)] [Export("sendAction")] public virtual bool SendAction(Selector action, AnyObject to, AnyObject from, UIEvent forEvent) { return default(bool); } /// <summary> /// Tells the receiver to suspend the handling of touch-related events. /// </summary> [iOSVersion(2)] [Export("beginIgnoringInteractionEvents")] public virtual void BeginIgnoringInteractionEvents() { } /// <summary> /// Tells the receiver to resume the handling of touch-related events. /// </summary> [iOSVersion(2)] [Export("endIgnoringInteractionEvents")] public virtual void EndIgnoringInteractionEvents() { } /// <summary> /// Returns whether the receiver is ignoring events initiated by touches on the screen. /// </summary> [iOSVersion(2)] [Export("isIgnoringInteractionEvents")] public virtual bool IsIgnoringInteractionEvents() { return default(bool); } /// <summary> /// Opens the resource at the specified URL. /// </summary> /// <param name="url">An object representing a URL (Universal Resource Locator). UIKit supports many schemes, including http, https, tel, facetime, and mailto schemes.</param> [iOSVersion(2)] [Export("openURL")] public virtual bool OpenURL(NSURL url) { return default(bool); } /// <summary> /// Returns whether an app can open a given URL resource. /// </summary> /// <param name="url">A URL object that identifies a given resource. The URL’s scheme—possibly a custom scheme—identifies which app can handle the URL.</param> [iOSVersion(3)] [Export("canOpenURL")] public virtual bool CanOpenURL(NSURL url) { return default(bool); } /// <summary> /// Registers your preferred options for notifying the user. /// </summary> /// <param name="notificationSettings">The types of notifications that your app wants to use. You also use this object to specify custom actions that can be initiated by the user from an alert displayed in response to a local or remote notification.</param> [iOSVersion(8)] [Export("registerUserNotificationSettings")] public virtual void RegisterUserNotificationSettings(UIUserNotificationSettings notificationSettings) { } /// <summary> /// Returns the user notification settings for the app. /// </summary> [iOSVersion(8)] [Export("currentUserNotificationSettings")] public virtual UIUserNotificationSettings CurrentUserNotificationSettings() { return default(UIUserNotificationSettings); } /// <summary> /// Register to receive push notifications via Apple Push Service. /// </summary> [iOSVersion(8)] [Export("registerForRemoteNotifications")] public virtual void RegisterForRemoteNotifications() { } /// <summary> /// Unregister for all push notifications received via Apple Push Service. /// </summary> [iOSVersion(3)] [Export("unregisterForRemoteNotifications")] public virtual void UnregisterForRemoteNotifications() { } /// <summary> /// Returns a Boolean indicating whether the app is currently registered for remote notifications. /// </summary> [iOSVersion(8)] [Export("isRegisteredForRemoteNotifications")] public virtual bool IsRegisteredForRemoteNotifications() { return default(bool); } /// <summary> /// Schedules a local notification for delivery at its encapsulated date and time. /// </summary> /// <param name="notification">The local notification object that you want to schedule. This object contains information about when to deliver the notification and what to do when that date occurs. The system keeps a copy of this object so you may release the object once it is scheduled.</param> [iOSVersion(4)] [Export("scheduleLocalNotification")] public virtual void ScheduleLocalNotification(UILocalNotification notification) { } /// <summary> /// Presents a local notification immediately. /// </summary> /// <param name="notification">A local notification that the operating system presents for the app immediately, regardless of the value of the notification’s fireDate property. Apps running in the background state can immediately present local notifications when there are incoming chats, messages, or updates. Because the operating system copies notification, you may release it once you have scheduled it.</param> [iOSVersion(4)] [Export("presentLocalNotificationNow")] public virtual void PresentLocalNotificationNow(UILocalNotification notification) { } /// <summary> /// Cancels the delivery of the specified scheduled local notification. /// </summary> /// <param name="notification">The local notification to cancel.</param> [iOSVersion(4)] [Export("cancelLocalNotification")] public virtual void CancelLocalNotification(UILocalNotification notification) { } /// <summary> /// Cancels the delivery of all scheduled local notifications. /// </summary> [iOSVersion(4)] [Export("cancelAllLocalNotifications")] public virtual void CancelAllLocalNotifications() { } /// <summary> /// Specifies the minimum amount of time that must elapse between background fetch operations. /// </summary> /// <param name="minimumBackgroundFetchInterval">The minimum number of seconds that must elapse before another background fetch can be initiated. This value is advisory only and does not indicate the exact amount of time expected between fetch operations.</param> [iOSVersion(7)] [Export("setMinimumBackgroundFetchInterval")] public virtual void SetMinimumBackgroundFetchInterval(NSTimeInterval minimumBackgroundFetchInterval) { } /// <summary> /// Marks the beginning of a new long-running background task with the specified name. /// </summary> /// <param name="taskName">The name to display in the debugger when viewing the background task. If you specify nil for this parameter, this method generates a name based on the name of the calling function or method.</param> /// <param name="expirationHandler">A handler to be called shortly before the app’s remaining background time reaches 0. You should use this handler to clean up and mark the end of the background task. Failure to end the task explicitly will result in the termination of the app. The handler is called synchronously on the main thread, blocking the app’s suspension momentarily while the app is notified.</param> [iOSVersion(7)] [Export("beginBackgroundTaskWithName")] public virtual UIBackgroundTaskIdentifier BeginBackgroundTaskWithName(string taskName, Action expirationHandler) { return default(UIBackgroundTaskIdentifier); } /// <summary> /// Marks the beginning of a new long-running background task. /// </summary> /// <param name="handler">A handler to be called shortly before the app’s remaining background time reaches 0. You should use this handler to clean up and mark the end of the background task. Failure to end the task explicitly will result in the termination of the app. The handler is called synchronously on the main thread, blocking the app’s suspension momentarily while the app is notified.</param> [iOSVersion(4)] [Export("beginBackgroundTaskWithExpirationHandler")] public virtual UIBackgroundTaskIdentifier BeginBackgroundTaskWithExpirationHandler(Action handler) { return default(UIBackgroundTaskIdentifier); } /// <summary> /// Marks the end of a specific long-running background task. /// </summary> /// <param name="identifier">An identifier returned by the beginBackgroundTaskWithExpirationHandler: method.</param> [iOSVersion(4)] [Export("endBackgroundTask")] public virtual void EndBackgroundTask(UIBackgroundTaskIdentifier identifier) { } /// <summary> /// Configures a periodic handler for VoIP apps in older versions of iOS. /// </summary> /// <param name="timeout">The maximum interval (measured in seconds) at which your app should be woken up to check its VoIP connection. The minimum acceptable timeout value is 600 seconds.</param> /// <param name="handler">A block that performs the tasks needed to maintain your VoIP network connection. Setting this parameter to nil releases the current handler block and prevents UIKit from scheduling the next wake.</param> [iOSVersion(4)] [Export("setKeepAliveTimeout")] public virtual bool SetKeepAliveTimeout(NSTimeInterval timeout, Action handler) { return default(bool); } /// <summary> /// Removes a previously installed periodic handler block. /// </summary> [iOSVersion(4)] [Export("clearKeepAliveTimeout")] public virtual void ClearKeepAliveTimeout() { } /// <summary> /// Tells the app that your code is restoring state asynchronously. /// </summary> [iOSVersion(6)] [Export("extendStateRestoration")] public virtual void ExtendStateRestoration() { } /// <summary> /// Tells the app that your code has finished any asynchronous state restoration. /// </summary> [iOSVersion(6)] [Export("completeStateRestoration")] public virtual void CompleteStateRestoration() { } /// <summary> /// Prevents the app from using the recent snapshot image during the next launch cycle. /// </summary> [iOSVersion(7)] [Export("ignoreSnapshotOnNextApplicationLaunch")] public virtual void IgnoreSnapshotOnNextApplicationLaunch() { } /// <summary> /// Registers a custom object for use with the state restoration system. /// </summary> /// <param name="@object">The object to be registered with the restoration archive. The object must adopt the UIStateRestoring protocol. This parameter must not be nil.</param> /// <param name="restorationIdentifier">The restoration identifier for the object. UIKit uses this parameter to distinguish the object from other objects in the archive. This parameter must not be nil.</param> [iOSVersion(7)] [Export("registerObjectForStateRestoration")] public static void RegisterObjectForStateRestoration(UIStateRestoring @object, string restorationIdentifier) { } /// <summary> /// Tells the app to begin receiving remote-control events. /// </summary> [iOSVersion(4)] [Export("beginReceivingRemoteControlEvents")] public virtual void BeginReceivingRemoteControlEvents() { } /// <summary> /// Tells the app to stop receiving remote-control events. /// </summary> [iOSVersion(4)] [Export("endReceivingRemoteControlEvents")] public virtual void EndReceivingRemoteControlEvents() { } /// <summary> /// Hides or shows the status bar, optionally animating the transition. /// </summary> /// <param name="hidden">true to hide the status bar, false to show the status bar.</param> /// <param name="withAnimation">A constant that indicates whether there should be an animation and, if one is requested, whether it should fade the status bar in or out or whether it should slide the status bar in or out.</param> [iOSVersion(3.2)] [Export("setStatusBarHidden")] public virtual void SetStatusBarHidden(bool hidden, UIStatusBarAnimation withAnimation) { } /// <summary> /// Sets the style of the status bar, optionally animating the transition to the new style. /// </summary> /// <param name="statusBarStyle">A constant that specifies a style for the status bar. See the descriptions of the constants in UIStatusBarStyle for details.</param> /// <param name="animated">true if the transition to the new style should be animated; otherwise false .</param> [iOSVersion(2)] [Export("setStatusBarStyle")] public virtual void SetStatusBarStyle(UIStatusBarStyle statusBarStyle, bool animated) { } /// <summary> /// Sets the icon of a Newsstand app to an image depicting the current issue of a publication. /// </summary> /// <param name="image">An image to use as the icon of a Newsstand app. Pass nil to clear the currently set image and revert to the icon stored in the app bundle.</param> [iOSVersion(5)] [Export("setNewsstandIconImage")] public virtual void SetNewsstandIconImage(UIImage image) { } /// <summary> /// Returns the default set of interface orientations to use for the view controllers in the specified window. /// </summary> /// <param name="window">The window whose default interface orientations you want to retrieve.</param> [iOSVersion(6)] [Export("supportedInterfaceOrientationsForWindow")] public virtual int SupportedInterfaceOrientationsForWindow(UIWindow window) { return default(int); } /// <summary> /// Sets the app's status bar to the specified orientation, optionally animating the transition. /// </summary> /// <param name="interfaceOrientation">A specific orientation of the status bar. See UIInterfaceOrientation for details. The default value is UIInterfaceOrientationPortrait.</param> /// <param name="animated">true if the transition to the new orientation should be animated; false if it should be immediate, without animation.</param> [iOSVersion(2)] [Export("setStatusBarOrientation")] public virtual void SetStatusBarOrientation(UIInterfaceOrientation interfaceOrientation, bool animated) { } /// <summary> /// Register to receive push notifications of the specified types via Apple Push Service. /// </summary> /// <param name="types">A bit mask specifying the types of notifications the app accepts. For a list of values, see UIRemoteNotificationType.</param> [iOSVersion(3)] [Export("registerForRemoteNotificationTypes")] public virtual void RegisterForRemoteNotificationTypes(UIRemoteNotificationType types) { } /// <summary> /// Returns the types of notifications the app accepts. /// </summary> [iOSVersion(3)] [Export("enabledRemoteNotificationTypes")] public virtual UIRemoteNotificationType EnabledRemoteNotificationTypes() { return default(UIRemoteNotificationType); } /// <summary> /// The delegate of the app object. /// </summary> [iOSVersion(2)] [Export("delegate")] public UIApplicationDelegate Delegate { get; set; } /// <summary> /// The app's key window. (read-only) /// </summary> [iOSVersion(2)] [Export("keyWindow")] public UIWindow KeyWindow { get; private set; } /// <summary> /// The app's visible and hidden windows. (read-only) /// </summary> [iOSVersion(2)] [Export("windows")] public AnyObject[] Windows { get; private set; } /// <summary> /// A Boolean value that determines whether shaking the device displays the undo-redo user interface. /// </summary> [iOSVersion(3)] [Export("applicationSupportsShakeToEdit")] public bool ApplicationSupportsShakeToEdit { get; set; } /// <summary> /// All currently scheduled local notifications. /// </summary> [iOSVersion(4)] [Export("scheduledLocalNotifications")] public AnyObject[] ScheduledLocalNotifications { get; set; } /// <summary> /// The runtime state of the app. (read-only) /// </summary> [iOSVersion(4)] [Export("applicationState")] public UIApplicationState ApplicationState { get; private set; } /// <summary> /// The amount of time the app has to run in the background. (read-only) /// </summary> [iOSVersion(4)] [Export("backgroundTimeRemaining")] public NSTimeInterval BackgroundTimeRemaining { get; private set; } /// <summary> /// The ability of the app to be launched into the background so that it can perform background behaviors. (read-only) /// </summary> [iOSVersion(7)] [Export("backgroundRefreshStatus")] public UIBackgroundRefreshStatus BackgroundRefreshStatus { get; private set; } /// <summary> /// A Boolean value indicating whether content protection is active. (read-only) /// </summary> [iOSVersion(4)] [Export("protectedDataAvailable")] public bool ProtectedDataAvailable { get; private set; } /// <summary> /// A Boolean value that controls whether the idle timer is disabled for the app. /// </summary> [iOSVersion(2)] [Export("idleTimerDisabled")] public bool IdleTimerDisabled { get; set; } /// <summary> /// A Boolean value that determines whether the status bar is hidden. /// </summary> [iOSVersion(2)] [Export("statusBarHidden")] public bool StatusBarHidden { get; set; } /// <summary> /// The current style of the status bar. /// </summary> [iOSVersion(2)] [Export("statusBarStyle")] public UIStatusBarStyle StatusBarStyle { get; set; } /// <summary> /// The frame rectangle defining the area of the status bar. (read-only) /// </summary> [iOSVersion(2)] [Export("statusBarFrame")] public CGRect StatusBarFrame { get; private set; } /// <summary> /// A Boolean value that turns an indicator of network activity on or off. /// </summary> [iOSVersion(2)] [Export("networkActivityIndicatorVisible")] public bool NetworkActivityIndicatorVisible { get; set; } /// <summary> /// The number currently set as the badge of the app icon in Springboard. /// </summary> [iOSVersion(2)] [Export("applicationIconBadgeNumber")] public int ApplicationIconBadgeNumber { get; set; } /// <summary> /// Returns the layout direction of the user interface. (read-only) /// </summary> [iOSVersion(5)] [Export("userInterfaceLayoutDirection")] public UIUserInterfaceLayoutDirection UserInterfaceLayoutDirection { get; private set; } /// <summary> /// The font sizing option preferred by the user. (read-only) /// </summary> [iOSVersion(7)] [Export("preferredContentSizeCategory")] public string PreferredContentSizeCategory { get; private set; } /// <summary> /// The current orientation of the app's status bar. /// </summary> [iOSVersion(2)] [Export("statusBarOrientation")] public UIInterfaceOrientation StatusBarOrientation { get; set; } /// <summary> /// The animation duration in seconds for the status bar during a 90 degree orientation change. (read-only) /// </summary> [iOSVersion(2)] [Export("statusBarOrientationAnimationDuration")] public NSTimeInterval StatusBarOrientationAnimationDuration { get; private set; } } /// <summary> /// Constants indicating the types of notifications the app may display to the user. /// </summary> [iOSVersion(3)] public enum UIRemoteNotificationType { /// <summary> /// /// </summary> None, /// <summary> /// /// </summary> Badge, /// <summary> /// /// </summary> Sound, /// <summary> /// /// </summary> Alert, /// <summary> /// /// </summary> NewsstandContentAvailability, } /// <summary> /// The style of the device’s status bar. /// </summary> [iOSVersion(2)] public enum UIStatusBarStyle { /// <summary> /// A dark status bar, intended for use on light backgrounds. /// </summary> [iOSVersion(2)] Default, /// <summary> /// A light status bar, intended for use on dark backgrounds. /// </summary> [iOSVersion(7)] LightContent, /// <summary> /// An opaque black style. /// Use UIStatusBarStyleLightContent instead. /// Available in iOS 2.0 and later. /// Deprecated in iOS 7.0. /// </summary> [Obsolete] BlackOpaque, } /// <summary> /// The animation applied to the status bar as it is hidden or made visible. /// </summary> [iOSVersion(3.2)] public enum UIStatusBarAnimation { /// <summary> /// No animation is applied to the status bar as it is shown or hidden. /// </summary> [iOSVersion(3.2)] None, /// <summary> /// The status bar fades in and out as it is shown or hidden, respectively. /// </summary> [iOSVersion(3.2)] Fade, /// <summary> /// The status bar slides in or out as it is shown or hidden, respectively. /// </summary> [iOSVersion(3.2)] Slide, } /// <summary> /// The running states of an app /// </summary> [iOSVersion(4)] public enum UIApplicationState { /// <summary> /// The app is running in the foreground and currently receiving events. /// </summary> [iOSVersion(4)] Active, /// <summary> /// The app is running in the foreground but is not receiving events. This might happen as a result of an interruption or because the app is transitioning to or from the background. /// </summary> [iOSVersion(4)] Inactive, /// <summary> /// The app is running in the background. /// </summary> [iOSVersion(4)] Background, } /// <summary> /// Constants that indicate the result of a background fetch operation. /// </summary> [iOSVersion(7)] public enum UIBackgroundFetchResult { /// <summary> /// New data was successfully downloaded. /// </summary> [iOSVersion(7)] NewData, /// <summary> /// There was no new data to download. /// </summary> [iOSVersion(7)] NoData, /// <summary> /// An attempt to download data was made but that attempt failed. /// </summary> [iOSVersion(7)] Failed, } /// <summary> /// Constants indicating whether background execution is enabled for the app. /// </summary> [iOSVersion(7)] public enum UIBackgroundRefreshStatus { /// <summary> /// Background updates are unavailable and the user cannot enable them again. For example, this status can occur when parental controls are in effect for the current user. /// </summary> [iOSVersion(7)] Restricted, /// <summary> /// The user explicitly disabled background behavior for this app or for the whole system. /// </summary> [iOSVersion(7)] Denied, /// <summary> /// Background updates are available for the app. /// </summary> [iOSVersion(7)] Available, } /// <summary> /// The orientation of the app's user interface. /// </summary> [iOSVersion(2)] public enum UIInterfaceOrientation { /// <summary> /// The orientation of the device cannot be determined. /// </summary> [iOSVersion(8)] Unknown, /// <summary> /// The device is in portrait mode, with the device held upright and the home button on the bottom. /// </summary> [iOSVersion(2)] Portrait, /// <summary> /// The device is in portrait mode but upside down, with the device held upright and the home button at the top. /// </summary> [iOSVersion(2)] PortraitUpsideDown, /// <summary> /// The device is in landscape mode, with the device held upright and the home button on the left side. /// </summary> [iOSVersion(2)] LandscapeLeft, /// <summary> /// The device is in landscape mode, with the device held upright and the home button on the right side. /// </summary> [iOSVersion(2)] LandscapeRight, } /// <summary> /// These constants are mask bits for specifying a view controller’s supported interface orientations. /// </summary> [iOSVersion(6)] public enum UIInterfaceOrientationMask { /// <summary> /// The view controller supports a portrait interface orientation. /// </summary> [iOSVersion(6)] Portrait, /// <summary> /// The view controller supports a landscape-left interface orientation. /// </summary> [iOSVersion(6)] LandscapeLeft, /// <summary> /// The view controller supports a landscape-right interface orientation. /// </summary> [iOSVersion(6)] LandscapeRight, /// <summary> /// The view controller supports an upside-down portrait interface orientation. /// </summary> [iOSVersion(6)] PortraitUpsideDown, /// <summary> /// The view controller supports both landscape-left and landscape-right interface orientation. /// </summary> [iOSVersion(6)] Landscape, /// <summary> /// The view controller supports all interface orientations. /// </summary> [iOSVersion(6)] All, /// <summary> /// The view controller supports all but the upside-down portrait interface orientation. /// </summary> [iOSVersion(6)] AllButUpsideDown, } /// <summary> /// Specifies the directional flow of the user interface. /// </summary> [iOSVersion(5)] public enum UIUserInterfaceLayoutDirection { /// <summary> /// The layout direction is left to right. /// </summary> [iOSVersion(5)] LeftToRight, /// <summary> /// The layout direction right to left. This value is appropriate when running with localizations such as Arabic or Hebrew that should have the user interface layout origin on the right edge of the coordinate system. /// </summary> [iOSVersion(5)] RightToLeft, } /// <summary> /// A unique token that identifies a request to run in the background. /// </summary> [iOSVersion(4)] public struct UIBackgroundTaskIdentifier { static public implicit operator UIBackgroundTaskIdentifier(int value) { return default(UIBackgroundTaskIdentifier); } static public implicit operator int(UIBackgroundTaskIdentifier value) { return default(int); } } /// <summary> /// The system sends this notification when the backgroundRefreshStatus property of the app object changes. That property can change in response to the user disabling multitasking support for the app. The object of the notification is the UIApplication object. There is no userInfo dictionary. /// </summary> [iOSVersion(7)] public class UIApplicationBackgroundRefreshStatusDidChangeNotification : NSNotification { public UIApplicationBackgroundRefreshStatusDidChangeNotification() : base("", null) { } } /// <summary> /// An app is active when it is receiving events. An active app can be said to have focus. It gains focus after being launched, loses focus when an overlay window pops up or when the device is locked, and gains focus when the device is unlocked. /// </summary> [iOSVersion(2)] public class UIApplicationDidBecomeActiveNotification : NSNotification { public UIApplicationDidBecomeActiveNotification() : base("", null) { } } /// <summary> /// The userInfo dictionary contains an NSValue object that encapsulates a CGRect structure expressing the location and size of the new status bar frame. Use UIApplicationStatusBarFrameUserInfoKey to access this value. /// </summary> [iOSVersion(2)] public class UIApplicationDidChangeStatusBarFrameNotification : NSNotification { public UIApplicationDidChangeStatusBarFrameNotification() : base("", null) { } } /// <summary> /// The userInfo dictionary contains an NSNumber object that encapsulates a UIInterfaceOrientation value (see UIInterfaceOrientation). Use UIApplicationStatusBarOrientationUserInfoKey to access this value /// </summary> [iOSVersion(2)] public class UIApplicationDidChangeStatusBarOrientationNotification : NSNotification { public UIApplicationDidChangeStatusBarOrientationNotification() : base("", null) { } } /// <summary> /// The object of the notification is the UIApplication object. There is no userInfo dictionary. /// </summary> [iOSVersion(4)] public class UIApplicationDidEnterBackgroundNotification : NSNotification { public UIApplicationDidEnterBackgroundNotification() : base("", null) { } } /// <summary> /// If the app was launched as a result of in remote notification targeted at it or because another app opened a URL resource claimed the posting app (the notification object), this notification contains a userInfo dictionary. You can access the contents of the dictionary using the UIApplicationLaunchOptionsURLKey and UIApplicationLaunchOptionsSourceApplicationKey constants (for URLs), the UIApplicationLaunchOptionsRemoteNotificationKey constant (for remote notifications), and the UIApplicationLaunchOptionsLocalNotificationKey constant (for local notifications). If the notification was posted for a normal app launch, there is no userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIApplicationDidFinishLaunchingNotification : NSNotification { public UIApplicationDidFinishLaunchingNotification() : base("", null) { } } /// <summary> /// This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIApplicationDidReceiveMemoryWarningNotification : NSNotification { public UIApplicationDidReceiveMemoryWarningNotification() : base("", null) { } } /// <summary> /// This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(4)] public class UIApplicationProtectedDataDidBecomeAvailable : NSNotification { public UIApplicationProtectedDataDidBecomeAvailable() : base("", null) { } } /// <summary> /// Upon receiving this notification, clients should release any references to protected files. This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(4)] public class UIApplicationProtectedDataWillBecomeUnavailable : NSNotification { public UIApplicationProtectedDataWillBecomeUnavailable() : base("", null) { } } /// <summary> /// This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIApplicationSignificantTimeChangeNotification : NSNotification { public UIApplicationSignificantTimeChangeNotification() : base("", null) { } } /// <summary> /// This notification does not contain a userInfo dictionary. This notification is posted after the screenshot is taken. /// </summary> [iOSVersion(7)] public class UIApplicationUserDidTakeScreenshotNotification : NSNotification { public UIApplicationUserDidTakeScreenshotNotification() : base("", null) { } } /// <summary> /// The userInfo dictionary contains an NSNumber that encapsulates a UIInterfaceOrientation value (see UIInterfaceOrientation). Use UIApplicationStatusBarOrientationUserInfoKey to access this value. /// </summary> [iOSVersion(2)] public class UIApplicationWillChangeStatusBarOrientationNotification : NSNotification { public UIApplicationWillChangeStatusBarOrientationNotification() : base("", null) { } } /// <summary> /// The userInfo dictionary contains an NSValue object that encapsulates a CGRect structure expressing the location and size of the new status bar frame. Use UIApplicationStatusBarFrameUserInfoKey to access this value. /// </summary> [iOSVersion(2)] public class UIApplicationWillChangeStatusBarFrameNotification : NSNotification { public UIApplicationWillChangeStatusBarFrameNotification() : base("", null) { } } /// <summary> /// The object of the notification is the UIApplication object. There is no userInfo dictionary. /// </summary> [iOSVersion(4)] public class UIApplicationWillEnterForegroundNotification : NSNotification { public UIApplicationWillEnterForegroundNotification() : base("", null) { } } /// <summary> /// An app is active when it is receiving events. An active app can be said to have focus. It gains focus after being launched, loses focus when an overlay window pops up or when the device is locked, and gains focus when the device is unlocked. /// </summary> [iOSVersion(2)] public class UIApplicationWillResignActiveNotification : NSNotification { public UIApplicationWillResignActiveNotification() : base("", null) { } } /// <summary> /// This notification is associated with the delegate applicationWillTerminate: method. This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIApplicationWillTerminateNotification : NSNotification { public UIApplicationWillTerminateNotification() : base("", null) { } } /// <summary> /// This notification is sent when the value in the preferredContentSizeCategory property changes. The userInfo dictionary of the notification contains the UIContentSizeCategoryNewValueKey key, which reflects the new setting. /// </summary> [iOSVersion(7)] public class UIContentSizeCategoryDidChangeNotification : NSNotification { public UIContentSizeCategoryDidChangeNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIAttachmentBehavior.cs b/CocoaSharp/UIKit/UIAttachmentBehavior.cs
index 5ca2fc82..42c16511 100644
--- a/CocoaSharp/UIKit/UIAttachmentBehavior.cs
+++ b/CocoaSharp/UIKit/UIAttachmentBehavior.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// An attachment behavior specifies a dynamic connection between two dynamic items, or between a dynamic item and an anchor point. By default, an item’s attachment point is at its center, but you can change that. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIAttachmentBehavior_Class/index.html#//apple_ref/occ/cl/UIAttachmentBehavior"/> [iOSVersion(7)] public class UIAttachmentBehavior : UIDynamicBehavior//, AnyObject, NSObjectProtocol { public UIAttachmentBehavior() { } /// <summary> /// Initializes an attachment behavior that connects the center point of a dynamic item to an anchor point. /// </summary> /// <param name="item">The dynamic item to which you are applying an attachment behavior.</param> /// <param name="attachedToAnchor">The anchor point for the attachment behavior, relative to the coordinate system for the behavior’s associated dynamic animator. For more information, see the Overview in UIDynamicAnimator Class Reference.</param> [iOSVersion(7)] [Export("convenience init")] public UIAttachmentBehavior(UIDynamicItem item, CGPoint attachedToAnchor) { } /// <summary> /// Initializes an attachment behavior that connects the center point of a dynamic item to the center point of another dynamic item. /// </summary> /// <param name="item">The first of two dynamic items connected by the attachment behavior.</param> /// <param name="attachedToItem">The second of two dynamic items connected by the attachment behavior.</param> [iOSVersion(7)] [Export("convenience init")] public UIAttachmentBehavior(UIDynamicItem item, UIDynamicItem attachedToItem) { } /// <summary> /// Initializes an attachment behavior that connects a specified point in a dynamic item to an anchor point. /// </summary> /// <param name="item">The dynamic item to which you are applying an attachment behavior.</param> /// <param name="offsetFromCenter">The point, within the dynamic item and described as an offset from its center point, for the attachment behavior.</param> /// <param name="attachedToAnchor">The anchor point for the attachment behavior, relative to the coordinate system for the behavior’s associated dynamic animator. For more information, see the Overview in UIDynamicAnimator Class Reference.</param> [iOSVersion(7)] [Export("convenience init")] public UIAttachmentBehavior(UIDynamicItem item, UIOffset offsetFromCenter, CGPoint attachedToAnchor) { } /// <summary> /// Initializes an attachment behavior that connects a specified point in one dynamic item to a specified point in another dynamic item. /// </summary> /// <param name="item">The first of two dynamic items connected by the attachment behavior.</param> /// <param name="offsetFromCenter">The point, within the first dynamic item and described as an offset from its center point, for the attachment.</param> /// <param name="attachedToItem">The second of two dynamic items connected by the attachment behavior.</param> /// <param name="offsetFromCenter">The point, within the second dynamic item and described as an offset from its center point, for the attachment.</param> [iOSVersion(7)] public UIAttachmentBehavior(UIDynamicItem item, UIOffset offsetFromCenter, UIDynamicItem attachedToItem, UIOffset offsetFromCenter) { } /// <summary> /// The dynamic items connected by the attachment behavior. (read-only) /// </summary> [iOSVersion(7)] [Export("items")] public AnyObject[] Items { get; private set; } /// <summary> /// The anchor point for an attachment behavior of type UIAttachmentBehaviorTypeAnchor. /// </summary> [iOSVersion(7)] [Export("anchorPoint")] public CGPoint AnchorPoint { get; set; } /// <summary> /// The type of the attachment behavior. (read-only) /// </summary> [iOSVersion(7)] [Export("attachedBehaviorType")] public UIAttachmentBehaviorType AttachedBehaviorType { get; private set; } /// <summary> /// The amount of damping to apply to the attachment behavior. /// </summary> [iOSVersion(7)] [Export("damping")] public CGFloat Damping { get; set; } /// <summary> /// The frequency of oscillation for the attachment behavior. /// </summary> [iOSVersion(7)] [Export("frequency")] public CGFloat Frequency { get; set; } /// <summary> /// The distance, in points, between the two attachment points of the attachment behavior. /// </summary> [iOSVersion(7)] [Export("length")] public CGFloat Length { get; set; } } /// <summary> /// The type of an attachment behavior, indicating what a dynamic item is attached to. /// </summary> [iOSVersion(7)] public enum UIAttachmentBehaviorType { /// <summary> /// Designates an attachment behavior that connects a dynamic item to another dynamic item. /// </summary> [iOSVersion(7)] Items, /// <summary> /// Designates an attachment behavior that connects a dynamic item to an anchor point. /// </summary> [iOSVersion(7)] Anchor, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// An attachment behavior specifies a dynamic connection between two dynamic items, or between a dynamic item and an anchor point. By default, an item’s attachment point is at its center, but you can change that. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIAttachmentBehavior_Class/index.html#//apple_ref/occ/cl/UIAttachmentBehavior"/> [iOSVersion(7)] public class UIAttachmentBehavior : UIDynamicBehavior//, AnyObject, NSObjectProtocol { public UIAttachmentBehavior() { } /// <summary> /// Initializes an attachment behavior that connects the center point of a dynamic item to an anchor point. /// </summary> /// <param name="item">The dynamic item to which you are applying an attachment behavior.</param> /// <param name="attachedToAnchor">The anchor point for the attachment behavior, relative to the coordinate system for the behavior’s associated dynamic animator. For more information, see the Overview in UIDynamicAnimator Class Reference.</param> [iOSVersion(7)] [Export("convenience init")] public UIAttachmentBehavior(UIDynamicItem item, CGPoint attachedToAnchor) { } /// <summary> /// Initializes an attachment behavior that connects the center point of a dynamic item to the center point of another dynamic item. /// </summary> /// <param name="item">The first of two dynamic items connected by the attachment behavior.</param> /// <param name="attachedToItem">The second of two dynamic items connected by the attachment behavior.</param> [iOSVersion(7)] [Export("convenience init")] public UIAttachmentBehavior(UIDynamicItem item, UIDynamicItem attachedToItem) { } /// <summary> /// Initializes an attachment behavior that connects a specified point in a dynamic item to an anchor point. /// </summary> /// <param name="item">The dynamic item to which you are applying an attachment behavior.</param> /// <param name="offsetFromCenter">The point, within the dynamic item and described as an offset from its center point, for the attachment behavior.</param> /// <param name="attachedToAnchor">The anchor point for the attachment behavior, relative to the coordinate system for the behavior’s associated dynamic animator. For more information, see the Overview in UIDynamicAnimator Class Reference.</param> [iOSVersion(7)] [Export("convenience init")] public UIAttachmentBehavior(UIDynamicItem item, UIOffset offsetFromCenter, CGPoint attachedToAnchor) { } /// <summary> /// Initializes an attachment behavior that connects a specified point in one dynamic item to a specified point in another dynamic item. /// </summary> /// <param name="item">The first of two dynamic items connected by the attachment behavior.</param> /// <param name="firstOffsetFromCenter">The point, within the first dynamic item and described as an offset from its center point, for the attachment.</param> /// <param name="attachedToItem">The second of two dynamic items connected by the attachment behavior.</param> /// <param name="secondOffsetFromCenter">The point, within the second dynamic item and described as an offset from its center point, for the attachment.</param> [iOSVersion(7)] [RenameParameter("firstOffsetFromCenter", "offsetFromCenter")] [RenameParameter("secondOffsetFromCenter", "offsetFromCenter")] public UIAttachmentBehavior(UIDynamicItem item, UIOffset firstOffsetFromCenter, UIDynamicItem attachedToItem, UIOffset secondOffsetFromCenter) { } /// <summary> /// The dynamic items connected by the attachment behavior. (read-only) /// </summary> [iOSVersion(7)] [Export("items")] public AnyObject[] Items { get; private set; } /// <summary> /// The anchor point for an attachment behavior of type UIAttachmentBehaviorTypeAnchor. /// </summary> [iOSVersion(7)] [Export("anchorPoint")] public CGPoint AnchorPoint { get; set; } /// <summary> /// The type of the attachment behavior. (read-only) /// </summary> [iOSVersion(7)] [Export("attachedBehaviorType")] public UIAttachmentBehaviorType AttachedBehaviorType { get; private set; } /// <summary> /// The amount of damping to apply to the attachment behavior. /// </summary> [iOSVersion(7)] [Export("damping")] public CGFloat Damping { get; set; } /// <summary> /// The frequency of oscillation for the attachment behavior. /// </summary> [iOSVersion(7)] [Export("frequency")] public CGFloat Frequency { get; set; } /// <summary> /// The distance, in points, between the two attachment points of the attachment behavior. /// </summary> [iOSVersion(7)] [Export("length")] public CGFloat Length { get; set; } } /// <summary> /// The type of an attachment behavior, indicating what a dynamic item is attached to. /// </summary> [iOSVersion(7)] public enum UIAttachmentBehaviorType { /// <summary> /// Designates an attachment behavior that connects a dynamic item to another dynamic item. /// </summary> [iOSVersion(7)] Items, /// <summary> /// Designates an attachment behavior that connects a dynamic item to an anchor point. /// </summary> [iOSVersion(7)] Anchor, } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIButton.cs b/CocoaSharp/UIKit/UIButton.cs
index 498787a2..dafac391 100644
--- a/CocoaSharp/UIKit/UIButton.cs
+++ b/CocoaSharp/UIKit/UIButton.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// An instance of the UIButton class implements a button on the touch screen. A button intercepts touch events and sends an action message to a target object when tapped. Methods for setting the target and action are inherited from UIControl. This class provides methods for setting the title, image, and other appearance properties of a button. By using these accessors, you can specify a different appearance for each button state. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIButton_Class/index.html#//apple_ref/occ/cl/UIButton"/> [iOSVersion(2)] public class UIButton : UIControl//, AnyObject, NSCoding, NSObjectProtocol, Reflectable, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UITraitEnvironment { public UIButton() { } /// <summary> /// Creates and returns a new button of the specified type. /// </summary> /// <param name="buttonType">The button type. See UIButtonType for the possible values.</param> [iOSVersion(2)] [Export("buttonWithType")] public virtual static AnyObject ButtonWithType(UIButtonType buttonType) { return default(AnyObject); } /// <summary> /// Returns the title associated with the specified state. /// </summary> /// <param name="state">The state that uses the title. The possible values are described in UIControlState.</param> [iOSVersion(2)] [Export("titleForState")] public virtual string TitleForState(UIControlState state) { return default(string); } /// <summary> /// Sets the title to use for the specified state. /// </summary> /// <param name="title">The title to use for the specified state.</param> /// <param name="forState">The state that uses the specified title. The possible values are described in UIControlState.</param> [iOSVersion(2)] [Export("setTitle")] public virtual void SetTitle(string title, UIControlState forState) { } /// <summary> /// Returns the styled title associated with the specified state. /// </summary> /// <param name="state">The state that uses the styled title. The possible values are described in UIControlState.</param> [iOSVersion(6)] [Export("attributedTitleForState")] public virtual NSAttributedString AttributedTitleForState(UIControlState state) { return default(NSAttributedString); } /// <summary> /// Sets the styled title to use for the specified state. /// </summary> /// <param name="title">The styled text string so use for the title.</param> /// <param name="forState">The state that uses the specified title. The possible values are described in UIControlState.</param> [iOSVersion(6)] [Export("setAttributedTitle")] public virtual void SetAttributedTitle(NSAttributedString title, UIControlState forState) { } /// <summary> /// Returns the title color used for a state. /// </summary> /// <param name="state">The state that uses the title color. The possible values are described in UIControlState.</param> [iOSVersion(2)] [Export("titleColorForState")] public virtual UIColor TitleColorForState(UIControlState state) { return default(UIColor); } /// <summary> /// Sets the color of the title to use for the specified state. /// </summary> /// <param name="color">The color of the title to use for the specified state.</param> /// <param name="forState">The state that uses the specified color. The possible values are described in UIControlState.</param> [iOSVersion(2)] [Export("setTitleColor")] public virtual void SetTitleColor(UIColor color, UIControlState forState) { } /// <summary> /// Returns the shadow color of the title used for a state. /// </summary> /// <param name="state">The state that uses the title shadow color. The possible values are described in UIControlState.</param> [iOSVersion(2)] [Export("titleShadowColorForState")] public virtual UIColor TitleShadowColorForState(UIControlState state) { return default(UIColor); } /// <summary> /// Sets the color of the title shadow to use for the specified state. /// </summary> /// <param name="color">The color of the title shadow to use for the specified state.</param> /// <param name="forState">The state that uses the specified color. The possible values are described in UIControlState.</param> [iOSVersion(2)] [Export("setTitleShadowColor")] public virtual void SetTitleShadowColor(UIColor color, UIControlState forState) { } /// <summary> /// Returns the background image used for a button state. /// </summary> /// <param name="state">The state that uses the background image. Possible values are described in UIControlState.</param> [iOSVersion(2)] [Export("backgroundImageForState")] public virtual UIImage BackgroundImageForState(UIControlState state) { return default(UIImage); } /// <summary> /// Returns the image used for a button state. /// </summary> /// <param name="state">The state that uses the image. Possible values are described in UIControlState.</param> [iOSVersion(2)] [Export("imageForState")] public virtual UIImage ImageForState(UIControlState state) { return default(UIImage); } /// <summary> /// Sets the background image to use for the specified button state. /// </summary> /// <param name="image">The background image to use for the specified state.</param> /// <param name="forState">The state that uses the specified image. The values are described in UIControlState.</param> [iOSVersion(2)] [Export("setBackgroundImage")] public virtual void SetBackgroundImage(UIImage image, UIControlState forState) { } /// <summary> /// Sets the image to use for the specified state. /// </summary> /// <param name="image">The image to use for the specified state.</param> /// <param name="forState">The state that uses the specified title. The values are described in UIControlState.</param> [iOSVersion(2)] [Export("setImage")] public virtual void SetImage(UIImage image, UIControlState forState) { } /// <summary> /// Returns the rectangle in which the receiver draws its background. /// </summary> /// <param name="bounds">The bounding rectangle of the receiver.</param> [iOSVersion(2)] [Export("backgroundRectForBounds")] public virtual CGRect BackgroundRectForBounds(CGRect bounds) { return default(CGRect); } /// <summary> /// Returns the rectangle in which the receiver draws its entire content. /// </summary> /// <param name="bounds">The bounding rectangle for the receiver.</param> [iOSVersion(2)] [Export("contentRectForBounds")] public virtual CGRect ContentRectForBounds(CGRect bounds) { return default(CGRect); } /// <summary> /// Returns the rectangle in which the receiver draws its title. /// </summary> /// <param name="contentRect">The content rectangle for the receiver.</param> [iOSVersion(2)] [Export("titleRectForContentRect")] public virtual CGRect TitleRectForContentRect(CGRect contentRect) { return default(CGRect); } /// <summary> /// Returns the rectangle in which the receiver draws its image. /// </summary> /// <param name="contentRect">The content rectangle for the receiver.</param> [iOSVersion(2)] [Export("imageRectForContentRect")] public virtual CGRect ImageRectForContentRect(CGRect contentRect) { return default(CGRect); } /// <summary> /// A view that displays the value of the currentTitle property for a button. (read-only) /// </summary> [iOSVersion(3)] [Export("titleLabel")] public UILabel TitleLabel { get; private set; } /// <summary> /// A Boolean value that determines whether the title shadow changes when the button is highlighted. /// </summary> [iOSVersion(2)] [Export("reversesTitleShadowWhenHighlighted")] public bool ReversesTitleShadowWhenHighlighted { get; set; } /// <summary> /// A Boolean value that determines whether the image changes when the button is highlighted. /// </summary> [iOSVersion(2)] [Export("adjustsImageWhenHighlighted")] public bool AdjustsImageWhenHighlighted { get; set; } /// <summary> /// A Boolean value that determines whether the image changes when the button is disabled. /// </summary> [iOSVersion(2)] [Export("adjustsImageWhenDisabled")] public bool AdjustsImageWhenDisabled { get; set; } /// <summary> /// A Boolean value that determines whether tapping the button causes it to glow. /// </summary> [iOSVersion(2)] [Export("showsTouchWhenHighlighted")] public bool ShowsTouchWhenHighlighted { get; set; } /// <summary> /// The tint color to apply to the button title and image. /// </summary> [iOSVersion(5)] [Export("tintColor")] public UIColor TintColor { get; set; } /// <summary> /// The inset or outset margins for the rectangle surrounding all of the button’s content. /// </summary> [iOSVersion(2)] [Export("contentEdgeInsets")] public UIEdgeInsets ContentEdgeInsets { get; set; } /// <summary> /// The inset or outset margins for the rectangle around the button’s title text. /// </summary> [iOSVersion(2)] [Export("titleEdgeInsets")] public UIEdgeInsets TitleEdgeInsets { get; set; } /// <summary> /// The inset or outset margins for the rectangle around the button’s image. /// </summary> [iOSVersion(2)] [Export("imageEdgeInsets")] public UIEdgeInsets ImageEdgeInsets { get; set; } /// <summary> /// The button type. (read-only) /// </summary> [iOSVersion(2)] [Export("buttonType")] public UIButtonType ButtonType { get; private set; } /// <summary> /// The current title that is displayed on the button. (read-only) /// </summary> [iOSVersion(2)] [Export("currentTitle")] public string CurrentTitle { get; private set; } /// <summary> /// The current styled title that is displayed on the button. (read-only) /// </summary> [iOSVersion(6)] [Export("currentAttributedTitle")] public NSAttributedString CurrentAttributedTitle { get; private set; } /// <summary> /// The color used to display the title. (read-only) /// </summary> [iOSVersion(2)] [Export("currentTitleColor")] public UIColor CurrentTitleColor { get; private set; } /// <summary> /// The color of the title’s shadow. (read-only) /// </summary> [iOSVersion(2)] [Export("currentTitleShadowColor")] public UIColor CurrentTitleShadowColor { get; private set; } /// <summary> /// The current image displayed on the button. (read-only) /// </summary> [iOSVersion(2)] [Export("currentImage")] public UIImage CurrentImage { get; private set; } /// <summary> /// The current background image displayed on the button. (read-only) /// </summary> [iOSVersion(2)] [Export("currentBackgroundImage")] public UIImage CurrentBackgroundImage { get; private set; } /// <summary> /// The button’s image view. (read-only) /// </summary> [iOSVersion(3)] [Export("imageView")] public UIImageView ImageView { get; private set; } } /// <summary> /// Specifies the style of a button. /// </summary> [iOSVersion(2)] public enum UIButtonType { /// <summary> /// No button style. /// </summary> [iOSVersion(2)] Custom, /// <summary> /// A system style button, such as those shown in navigation bars and toolbars. /// </summary> [iOSVersion(7)] System, /// <summary> /// A detail disclosure button. /// </summary> [iOSVersion(2)] DetailDisclosure, /// <summary> /// An information button that has a light background. /// </summary> [iOSVersion(2)] InfoLight, /// <summary> /// An information button that has a dark background. /// </summary> [iOSVersion(2)] InfoDark, /// <summary> /// A contact add button. /// </summary> [iOSVersion(2)] ContactAdd, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// An instance of the UIButton class implements a button on the touch screen. A button intercepts touch events and sends an action message to a target object when tapped. Methods for setting the target and action are inherited from UIControl. This class provides methods for setting the title, image, and other appearance properties of a button. By using these accessors, you can specify a different appearance for each button state. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIButton_Class/index.html#//apple_ref/occ/cl/UIButton"/> [iOSVersion(2)] public class UIButton : UIControl//, AnyObject, NSCoding, NSObjectProtocol, Reflectable, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UITraitEnvironment { public UIButton() { } /// <summary> /// Creates and returns a new button of the specified type. /// </summary> /// <param name="buttonType">The button type. See UIButtonType for the possible values.</param> [iOSVersion(2)] [Export("buttonWithType")] public static AnyObject ButtonWithType(UIButtonType buttonType) { return default(AnyObject); } /// <summary> /// Returns the title associated with the specified state. /// </summary> /// <param name="state">The state that uses the title. The possible values are described in UIControlState.</param> [iOSVersion(2)] [Export("titleForState")] public virtual string TitleForState(UIControlState state) { return default(string); } /// <summary> /// Sets the title to use for the specified state. /// </summary> /// <param name="title">The title to use for the specified state.</param> /// <param name="forState">The state that uses the specified title. The possible values are described in UIControlState.</param> [iOSVersion(2)] [Export("setTitle")] public virtual void SetTitle(string title, UIControlState forState) { } /// <summary> /// Returns the styled title associated with the specified state. /// </summary> /// <param name="state">The state that uses the styled title. The possible values are described in UIControlState.</param> [iOSVersion(6)] [Export("attributedTitleForState")] public virtual NSAttributedString AttributedTitleForState(UIControlState state) { return default(NSAttributedString); } /// <summary> /// Sets the styled title to use for the specified state. /// </summary> /// <param name="title">The styled text string so use for the title.</param> /// <param name="forState">The state that uses the specified title. The possible values are described in UIControlState.</param> [iOSVersion(6)] [Export("setAttributedTitle")] public virtual void SetAttributedTitle(NSAttributedString title, UIControlState forState) { } /// <summary> /// Returns the title color used for a state. /// </summary> /// <param name="state">The state that uses the title color. The possible values are described in UIControlState.</param> [iOSVersion(2)] [Export("titleColorForState")] public virtual UIColor TitleColorForState(UIControlState state) { return default(UIColor); } /// <summary> /// Sets the color of the title to use for the specified state. /// </summary> /// <param name="color">The color of the title to use for the specified state.</param> /// <param name="forState">The state that uses the specified color. The possible values are described in UIControlState.</param> [iOSVersion(2)] [Export("setTitleColor")] public virtual void SetTitleColor(UIColor color, UIControlState forState) { } /// <summary> /// Returns the shadow color of the title used for a state. /// </summary> /// <param name="state">The state that uses the title shadow color. The possible values are described in UIControlState.</param> [iOSVersion(2)] [Export("titleShadowColorForState")] public virtual UIColor TitleShadowColorForState(UIControlState state) { return default(UIColor); } /// <summary> /// Sets the color of the title shadow to use for the specified state. /// </summary> /// <param name="color">The color of the title shadow to use for the specified state.</param> /// <param name="forState">The state that uses the specified color. The possible values are described in UIControlState.</param> [iOSVersion(2)] [Export("setTitleShadowColor")] public virtual void SetTitleShadowColor(UIColor color, UIControlState forState) { } /// <summary> /// Returns the background image used for a button state. /// </summary> /// <param name="state">The state that uses the background image. Possible values are described in UIControlState.</param> [iOSVersion(2)] [Export("backgroundImageForState")] public virtual UIImage BackgroundImageForState(UIControlState state) { return default(UIImage); } /// <summary> /// Returns the image used for a button state. /// </summary> /// <param name="state">The state that uses the image. Possible values are described in UIControlState.</param> [iOSVersion(2)] [Export("imageForState")] public virtual UIImage ImageForState(UIControlState state) { return default(UIImage); } /// <summary> /// Sets the background image to use for the specified button state. /// </summary> /// <param name="image">The background image to use for the specified state.</param> /// <param name="forState">The state that uses the specified image. The values are described in UIControlState.</param> [iOSVersion(2)] [Export("setBackgroundImage")] public virtual void SetBackgroundImage(UIImage image, UIControlState forState) { } /// <summary> /// Sets the image to use for the specified state. /// </summary> /// <param name="image">The image to use for the specified state.</param> /// <param name="forState">The state that uses the specified title. The values are described in UIControlState.</param> [iOSVersion(2)] [Export("setImage")] public virtual void SetImage(UIImage image, UIControlState forState) { } /// <summary> /// Returns the rectangle in which the receiver draws its background. /// </summary> /// <param name="bounds">The bounding rectangle of the receiver.</param> [iOSVersion(2)] [Export("backgroundRectForBounds")] public virtual CGRect BackgroundRectForBounds(CGRect bounds) { return default(CGRect); } /// <summary> /// Returns the rectangle in which the receiver draws its entire content. /// </summary> /// <param name="bounds">The bounding rectangle for the receiver.</param> [iOSVersion(2)] [Export("contentRectForBounds")] public virtual CGRect ContentRectForBounds(CGRect bounds) { return default(CGRect); } /// <summary> /// Returns the rectangle in which the receiver draws its title. /// </summary> /// <param name="contentRect">The content rectangle for the receiver.</param> [iOSVersion(2)] [Export("titleRectForContentRect")] public virtual CGRect TitleRectForContentRect(CGRect contentRect) { return default(CGRect); } /// <summary> /// Returns the rectangle in which the receiver draws its image. /// </summary> /// <param name="contentRect">The content rectangle for the receiver.</param> [iOSVersion(2)] [Export("imageRectForContentRect")] public virtual CGRect ImageRectForContentRect(CGRect contentRect) { return default(CGRect); } /// <summary> /// A view that displays the value of the currentTitle property for a button. (read-only) /// </summary> [iOSVersion(3)] [Export("titleLabel")] public UILabel TitleLabel { get; private set; } /// <summary> /// A Boolean value that determines whether the title shadow changes when the button is highlighted. /// </summary> [iOSVersion(2)] [Export("reversesTitleShadowWhenHighlighted")] public bool ReversesTitleShadowWhenHighlighted { get; set; } /// <summary> /// A Boolean value that determines whether the image changes when the button is highlighted. /// </summary> [iOSVersion(2)] [Export("adjustsImageWhenHighlighted")] public bool AdjustsImageWhenHighlighted { get; set; } /// <summary> /// A Boolean value that determines whether the image changes when the button is disabled. /// </summary> [iOSVersion(2)] [Export("adjustsImageWhenDisabled")] public bool AdjustsImageWhenDisabled { get; set; } /// <summary> /// A Boolean value that determines whether tapping the button causes it to glow. /// </summary> [iOSVersion(2)] [Export("showsTouchWhenHighlighted")] public bool ShowsTouchWhenHighlighted { get; set; } /// <summary> /// The tint color to apply to the button title and image. /// </summary> [iOSVersion(5)] [Export("tintColor")] public UIColor TintColor { get; set; } /// <summary> /// The inset or outset margins for the rectangle surrounding all of the button’s content. /// </summary> [iOSVersion(2)] [Export("contentEdgeInsets")] public UIEdgeInsets ContentEdgeInsets { get; set; } /// <summary> /// The inset or outset margins for the rectangle around the button’s title text. /// </summary> [iOSVersion(2)] [Export("titleEdgeInsets")] public UIEdgeInsets TitleEdgeInsets { get; set; } /// <summary> /// The inset or outset margins for the rectangle around the button’s image. /// </summary> [iOSVersion(2)] [Export("imageEdgeInsets")] public UIEdgeInsets ImageEdgeInsets { get; set; } /// <summary> /// The button type. (read-only) /// </summary> [iOSVersion(2)] [Export("buttonType")] public UIButtonType ButtonType { get; private set; } /// <summary> /// The current title that is displayed on the button. (read-only) /// </summary> [iOSVersion(2)] [Export("currentTitle")] public string CurrentTitle { get; private set; } /// <summary> /// The current styled title that is displayed on the button. (read-only) /// </summary> [iOSVersion(6)] [Export("currentAttributedTitle")] public NSAttributedString CurrentAttributedTitle { get; private set; } /// <summary> /// The color used to display the title. (read-only) /// </summary> [iOSVersion(2)] [Export("currentTitleColor")] public UIColor CurrentTitleColor { get; private set; } /// <summary> /// The color of the title’s shadow. (read-only) /// </summary> [iOSVersion(2)] [Export("currentTitleShadowColor")] public UIColor CurrentTitleShadowColor { get; private set; } /// <summary> /// The current image displayed on the button. (read-only) /// </summary> [iOSVersion(2)] [Export("currentImage")] public UIImage CurrentImage { get; private set; } /// <summary> /// The current background image displayed on the button. (read-only) /// </summary> [iOSVersion(2)] [Export("currentBackgroundImage")] public UIImage CurrentBackgroundImage { get; private set; } /// <summary> /// The button’s image view. (read-only) /// </summary> [iOSVersion(3)] [Export("imageView")] public UIImageView ImageView { get; private set; } } /// <summary> /// Specifies the style of a button. /// </summary> [iOSVersion(2)] public enum UIButtonType { /// <summary> /// No button style. /// </summary> [iOSVersion(2)] Custom, /// <summary> /// A system style button, such as those shown in navigation bars and toolbars. /// </summary> [iOSVersion(7)] System, /// <summary> /// A detail disclosure button. /// </summary> [iOSVersion(2)] DetailDisclosure, /// <summary> /// An information button that has a light background. /// </summary> [iOSVersion(2)] InfoLight, /// <summary> /// An information button that has a dark background. /// </summary> [iOSVersion(2)] InfoDark, /// <summary> /// A contact add button. /// </summary> [iOSVersion(2)] ContactAdd, } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UICollectionView.cs b/CocoaSharp/UIKit/UICollectionView.cs
index 336c818a..243f264a 100644
--- a/CocoaSharp/UIKit/UICollectionView.cs
+++ b/CocoaSharp/UIKit/UICollectionView.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UICollectionView class manages an ordered collection of data items and presents them using customizable layouts. Collection views provide the same general function as table views except that a collection view is able to support more than just single-column layouts. Collection views support customizable layouts that can be used to implement multi-column grids, tiled layouts, circular layouts, and many more. You can even change the layout of a collection view dynamically if you want. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UICollectionView_class/index.html#//apple_ref/occ/cl/UICollectionView"/> [iOSVersion(6)] public class UICollectionView : UIScrollView//, AnyObject, NSCoding, NSObjectProtocol, Reflectable, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UITraitEnvironment { public UICollectionView() { } /// <summary> /// Initializes and returns a newly allocated collection view object with the specified frame and layout. /// </summary> /// <param name="frame">The frame rectangle for the collection view, measured in points. The origin of the frame is relative to the superview in which you plan to add it. This frame is passed to the superclass during initialization.</param> /// <param name="collectionViewLayout">The layout object to use for organizing items. The collection view stores a strong reference to the specified object. Must not be nil.</param> [iOSVersion(6)] public UICollectionView(CGRect frame, UICollectionViewLayout collectionViewLayout) { } /// <summary> /// Register a class for use in creating new collection view cells. /// </summary> /// <param name="cellClass">The class of a cell that you want to use in the collection view.</param> /// <param name="forCellWithReuseIdentifier">The reuse identifier to associate with the specified class. This parameter must not be nil and must not be an empty string.</param> [iOSVersion(6)] [Export("registerClass")] public virtual void RegisterClass(AnyClass cellClass, string forCellWithReuseIdentifier) { } /// <summary> /// Register a nib file for use in creating new collection view cells. /// </summary> /// <param name="nib">The nib object containing the cell object. The nib file must contain only one top-level object and that object must be of the type UICollectionViewCell.</param> /// <param name="forCellWithReuseIdentifier">The reuse identifier to associate with the specified nib file. This parameter must not be nil and must not be an empty string.</param> [iOSVersion(6)] [Export("registerNib")] public virtual void RegisterNib(UINib nib, string forCellWithReuseIdentifier) { } /// <summary> /// Registers a class for use in creating supplementary views for the collection view. /// </summary> /// <param name="viewClass">The class to use for the supplementary view.</param> /// <param name="forSupplementaryViewOfKind">The kind of supplementary view to create. This value is defined by the layout object. This parameter must not be nil.</param> /// <param name="withReuseIdentifier">The reuse identifier to associate with the specified class. This parameter must not be nil and must not be an empty string.</param> [iOSVersion(6)] [Export("registerClass")] public virtual void RegisterClass(AnyClass viewClass, string forSupplementaryViewOfKind, string withReuseIdentifier) { } /// <summary> /// Registers a nib file for use in creating supplementary views for the collection view. /// </summary> /// <param name="nib">The nib object containing the view object. The nib file must contain only one top-level object and that object must be of the type UICollectionReusableView.</param> /// <param name="forSupplementaryViewOfKind">The kind of supplementary view to create. The layout defines the types of supplementary views it supports. The value of this string may correspond to one of the predefined kind strings or to a custom string that the layout added to support a new type of supplementary view. This parameter must not be nil.</param> /// <param name="withReuseIdentifier">The reuse identifier to associate with the specified nib file. This parameter must not be nil and must not be an empty string.</param> [iOSVersion(6)] [Export("registerNib")] public virtual void RegisterNib(UINib nib, string forSupplementaryViewOfKind, string withReuseIdentifier) { } /// <summary> /// Returns a reusable cell object located by its identifier /// </summary> /// <param name="identifier">The reuse identifier for the specified cell. This parameter must not be nil.</param> /// <param name="forIndexPath">The index path specifying the location of the cell. The data source receives this information when it is asked for the cell and should just pass it along. This method uses the index path to perform additional configuration based on the cell’s position in the collection view.</param> [iOSVersion(6)] [Export("dequeueReusableCellWithReuseIdentifier")] public virtual AnyObject DequeueReusableCellWithReuseIdentifier(string identifier, NSIndexPath forIndexPath) { return default(AnyObject); } /// <summary> /// Returns a reusable supplementary view located by its identifier and kind. /// </summary> /// <param name="elementKind">The kind of supplementary view to retrieve. This value is defined by the layout object. This parameter must not be nil.</param> /// <param name="withReuseIdentifier">The reuse identifier for the specified view. This parameter must not be nil.</param> /// <param name="forIndexPath">The index path specifying the location of the supplementary view in the collection view. The data source receives this information when it is asked for the view and should just pass it along. This method uses the information to perform additional configuration based on the view’s position in the collection view.</param> [iOSVersion(6)] [Export("dequeueReusableSupplementaryViewOfKind")] public virtual AnyObject DequeueReusableSupplementaryViewOfKind(string elementKind, string withReuseIdentifier, NSIndexPath forIndexPath) { return default(AnyObject); } /// <summary> /// Changes the collection view’s layout and optionally animates the change. /// </summary> /// <param name="layout">The new layout object for the collection view.</param> /// <param name="animated">Specify true if you want to animate changes from the current layout to the new layout specified by the layout parameter. Specify false to make the change without animations.</param> [iOSVersion(6)] [Export("setCollectionViewLayout")] public virtual void SetCollectionViewLayout(UICollectionViewLayout layout, bool animated) { } /// <summary> /// Changes the collection view’s layout and notifies you when the animations complete. /// </summary> /// <param name="layout">The new layout object for the collection view.</param> /// <param name="animated">Specify true if you want to animate changes from the current layout to the new layout specified by the layout parameter. Specify false to make the change without animations.</param> /// <param name="completion">The block that is executed when the layout transition finishes or is aborted by the user. This block takes the following parameter: /// finished /// A Boolean indicating whether the transition completed successfully. This parameter is true if the transition finished and the new layout is installed. It is false if the user aborted the transition and returned to the old layout.</param> [iOSVersion(7)] [Export("setCollectionViewLayout")] public virtual void SetCollectionViewLayout(UICollectionViewLayout layout, bool animated, Action<bool> completion) { } /// <summary> /// Changes the collection view’s current layout using an interactive transition effect. /// </summary> /// <param name="layout">The new layout object for the collected views. This is the layout that you want the collection view to use after the interactive transition is done.</param> /// <param name="completion">A completion handler to execute after the transition finishes.</param> [iOSVersion(7)] [Export("startInteractiveTransitionToCollectionViewLayout")] public virtual UICollectionViewTransitionLayout StartInteractiveTransitionToCollectionViewLayout(UICollectionViewLayout layout, UICollectionViewLayoutInteractiveTransitionCompletion completion) { return default(UICollectionViewTransitionLayout); } /// <summary> /// Tells the collection view to finish an interactive transition by installing the intended target layout. /// </summary> [iOSVersion(7)] [Export("finishInteractiveTransition")] public virtual void FinishInteractiveTransition() { } /// <summary> /// Tells the collection view to abort an interactive transition and return to its original layout object. /// </summary> [iOSVersion(7)] [Export("cancelInteractiveTransition")] public virtual void CancelInteractiveTransition() { } /// <summary> /// Reloads all of the data for the collection view. /// </summary> [iOSVersion(6)] [Export("reloadData")] public virtual void ReloadData() { } /// <summary> /// Reloads the data in the specified sections of the collection view. /// </summary> /// <param name="sections">The indexes of the sections to reload.</param> [iOSVersion(6)] [Export("reloadSections")] public virtual void ReloadSections(NSIndexSet sections) { } /// <summary> /// Reloads just the items at the specified index paths. /// </summary> /// <param name="indexPaths">An array of NSIndexPath objects identifying the items you want to update.</param> [iOSVersion(6)] [Export("reloadItemsAtIndexPaths")] public virtual void ReloadItemsAtIndexPaths(AnyObject[] indexPaths) { } /// <summary> /// Returns the number of sections displayed by the collection view. /// </summary> [iOSVersion(6)] [Export("numberOfSections")] public virtual int NumberOfSections() { return default(int); } /// <summary> /// Returns the number of items in the specified section. /// </summary> /// <param name="section">The index of the section for which you want a count of the items.</param> [iOSVersion(6)] [Export("numberOfItemsInSection")] public virtual int NumberOfItemsInSection(int section) { return default(int); } /// <summary> /// Returns an array of visible cells currently displayed by the collection view. /// </summary> [iOSVersion(6)] [Export("visibleCells")] public virtual AnyObject[] VisibleCells() { return default(AnyObject[]); } /// <summary> /// Inserts new items at the specified index paths. /// </summary> /// <param name="indexPaths">An array of NSIndexPath objects, each of which contains a section index and item index at which to insert a new cell. This parameter must not be nil.</param> [iOSVersion(6)] [Export("insertItemsAtIndexPaths")] public virtual void InsertItemsAtIndexPaths(AnyObject[] indexPaths) { } /// <summary> /// Moves an item from one location to another in the collection view. /// </summary> /// <param name="indexPath">The index path of the item you want to move. This parameter must not be nil.</param> /// <param name="toIndexPath">The index path of the item’s new location. This parameter must not be nil.</param> [iOSVersion(6)] [Export("moveItemAtIndexPath")] public virtual void MoveItemAtIndexPath(NSIndexPath indexPath, NSIndexPath toIndexPath) { } /// <summary> /// Deletes the items at the specified index paths. /// </summary> /// <param name="indexPaths">An array of NSIndexPath objects, each of which contains a section index and item index for the item you want to delete from the collection view. This parameter must not be nil.</param> [iOSVersion(6)] [Export("deleteItemsAtIndexPaths")] public virtual void DeleteItemsAtIndexPaths(AnyObject[] indexPaths) { } /// <summary> /// Inserts new sections at the specified indexes. /// </summary> /// <param name="sections">An index set containing the indexes of the sections you want to insert. This parameter must not be nil.</param> [iOSVersion(6)] [Export("insertSections")] public virtual void InsertSections(NSIndexSet sections) { } /// <summary> /// Moves a section from one location to another in the collection view. /// </summary> /// <param name="section">The index path of the section you want to move. This parameter must not be nil.</param> /// <param name="toSection">The index path of the section’s new location. This parameter must not be nil.</param> [iOSVersion(6)] [Export("moveSection")] public virtual void MoveSection(int section, int toSection) { } /// <summary> /// Deletes the sections at the specified indexes. /// </summary> /// <param name="sections">The indexes of the sections you want to delete. This parameter must not be nil.</param> [iOSVersion(6)] [Export("deleteSections")] public virtual void DeleteSections(NSIndexSet sections) { } /// <summary> /// Returns the index paths for the selected items. /// </summary> [iOSVersion(6)] [Export("indexPathsForSelectedItems")] public virtual AnyObject[] IndexPathsForSelectedItems() { return default(AnyObject[]); } /// <summary> /// Selects the item at the specified index path and optionally scrolls it into view. /// </summary> /// <param name="indexPath">The index path of the item to select. Specifying nil for this parameter clears the current selection.</param> /// <param name="animated">Specify true to animate the change in the selection or false to make the change without animating it.</param> /// <param name="scrollPosition">An option that specifies where the item should be positioned when scrolling finishes. For a list of possible values, see “UICollectionViewScrollPosition”.</param> [iOSVersion(6)] [Export("selectItemAtIndexPath")] public virtual void SelectItemAtIndexPath(NSIndexPath indexPath, bool animated, UICollectionViewScrollPosition scrollPosition) { } /// <summary> /// Deselects the item at the specified index. /// </summary> /// <param name="indexPath">The index path of the item to select. Specifying nil results in no change to the current selection.</param> /// <param name="animated">Specify true to animate the change in the selection or false to make the change without animating it.</param> [iOSVersion(6)] [Export("deselectItemAtIndexPath")] public virtual void DeselectItemAtIndexPath(NSIndexPath indexPath, bool animated) { } /// <summary> /// Returns the index path of the item at the specified point in the collection view. /// </summary> /// <param name="point">A point in the collection view’s coordinate system.</param> [iOSVersion(6)] [Export("indexPathForItemAtPoint")] public virtual NSIndexPath IndexPathForItemAtPoint(CGPoint point) { return default(NSIndexPath); } /// <summary> /// Returns an array of the visible items in the collection view. /// </summary> [iOSVersion(6)] [Export("indexPathsForVisibleItems")] public virtual AnyObject[] IndexPathsForVisibleItems() { return default(AnyObject[]); } /// <summary> /// Returns the index path of the specified cell. /// </summary> /// <param name="cell">The cell object whose index path you want.</param> [iOSVersion(6)] [Export("indexPathForCell")] public virtual NSIndexPath IndexPathForCell(UICollectionViewCell cell) { return default(NSIndexPath); } /// <summary> /// Returns the visible cell object at the specified index path. /// </summary> /// <param name="indexPath">The index path that specifies the section and item number of the cell.</param> [iOSVersion(6)] [Export("cellForItemAtIndexPath")] public virtual UICollectionViewCell CellForItemAtIndexPath(NSIndexPath indexPath) { return default(UICollectionViewCell); } /// <summary> /// Returns the layout information for the item at the specified index path. /// </summary> /// <param name="indexPath">The index path of the item.</param> [iOSVersion(6)] [Export("layoutAttributesForItemAtIndexPath")] public virtual UICollectionViewLayoutAttributes LayoutAttributesForItemAtIndexPath(NSIndexPath indexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Returns the layout information for the specified supplementary view. /// </summary> /// <param name="kind">A string specifying the kind of supplementary view whose layout attributes you want. Layout classes are responsible for defining the kinds of supplementary views they support.</param> /// <param name="atIndexPath">The index path of the supplementary view. The interpretation of this value depends on how the layout implements the view. For example, a view associated with a section might contain just a section value.</param> [iOSVersion(6)] [Export("layoutAttributesForSupplementaryElementOfKind")] public virtual UICollectionViewLayoutAttributes LayoutAttributesForSupplementaryElementOfKind(string kind, NSIndexPath atIndexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Scrolls the collection view contents until the specified item is visible. /// </summary> /// <param name="indexPath">The index path of the item to scroll into view.</param> /// <param name="atScrollPosition">An option that specifies where the item should be positioned when scrolling finishes. For a list of possible values, see “UICollectionViewScrollPosition”.</param> /// <param name="animated">Specify true to animate the scrolling behavior or false to adjust the scroll view’s visible content immediately.</param> [iOSVersion(6)] [Export("scrollToItemAtIndexPath")] public virtual void ScrollToItemAtIndexPath(NSIndexPath indexPath, UICollectionViewScrollPosition atScrollPosition, bool animated) { } /// <summary> /// Animates multiple insert, delete, reload, and move operations as a group. /// </summary> /// <param name="updates">The block that performs the relevant insert, delete, reload, or move operations.</param> /// <param name="completion">A completion handler block to execute when all of the operations are finished. This block takes a single Boolean parameter that contains the value true if all of the related animations completed successfully or false if they were interrupted. This parameter may be nil.</param> [iOSVersion(6)] [Export("performBatchUpdates")] public virtual void PerformBatchUpdates(Action updates, Action<bool> completion) { } /// <summary> /// The object that acts as the delegate of the collection view. /// </summary> [iOSVersion(6)] [Export("delegate")] public UICollectionViewDelegate Delegate { get; set; } /// <summary> /// The object that provides the data for the collection view. /// </summary> [iOSVersion(6)] [Export("dataSource")] public UICollectionViewDataSource DataSource { get; set; } /// <summary> /// The view that provides the background appearance. /// </summary> [iOSVersion(6)] [Export("backgroundView")] public UIView BackgroundView { get; set; } /// <summary> /// The layout used to organize the collected view’s items. /// </summary> [iOSVersion(6)] [Export("collectionViewLayout")] public UICollectionViewLayout CollectionViewLayout { get; set; } /// <summary> /// A Boolean value that indicates whether users can select items in the collection view. /// </summary> [iOSVersion(6)] [Export("allowsSelection")] public bool AllowsSelection { get; set; } /// <summary> /// A Boolean value that determines whether users can select more than one item in the collection view. /// </summary> [iOSVersion(6)] [Export("allowsMultipleSelection")] public bool AllowsMultipleSelection { get; set; } } /// <summary> /// Constants that indicate how to scroll an item into the visible portion of the collection view. /// </summary> [iOSVersion(6)] public enum UICollectionViewScrollPosition { /// <summary> /// Do not scroll the item into view. /// </summary> [iOSVersion(6)] None, /// <summary> /// Scroll so that the item is positioned at the top of the collection view’s bounds. This option is mutually exclusive with the UICollectionViewScrollPositionCenteredVertically and UICollectionViewScrollPositionBottom options. /// </summary> [iOSVersion(6)] Top, /// <summary> /// Scroll so that the item is centered vertically in the collection view. This option is mutually exclusive with the UICollectionViewScrollPositionTop and UICollectionViewScrollPositionBottom options. /// </summary> [iOSVersion(6)] CenteredVertically, /// <summary> /// Scroll so that the item is positioned at the bottom of the collection view’s bounds. This option is mutually exclusive with the UICollectionViewScrollPositionTop and UICollectionViewScrollPositionCenteredVertically options. /// </summary> [iOSVersion(6)] Bottom, /// <summary> /// Scroll so that the item is positioned at the left edge of the collection view’s bounds. This option is mutually exclusive with the UICollectionViewScrollPositionCenteredHorizontally and UICollectionViewScrollPositionRight options. /// </summary> [iOSVersion(6)] Left, /// <summary> /// Scroll so that the item is centered horizontally in the collection view. This option is mutually exclusive with the UICollectionViewScrollPositionLeft and UICollectionViewScrollPositionRight options. /// </summary> [iOSVersion(6)] CenteredHorizontally, /// <summary> /// Scroll so that the item is positioned at the right edge of the collection view’s bounds. This option is mutually exclusive with the UICollectionViewScrollPositionLeft and UICollectionViewScrollPositionCenteredHorizontally options. /// </summary> [iOSVersion(6)] Right, } /// <summary> /// The completion block called at the end of an interactive transition for a collection view. /// </summary> [iOSVersion(7)] public struct UICollectionViewLayoutInteractiveTransitionCompletion { static public implicit operator UICollectionViewLayoutInteractiveTransitionCompletion(WEIRD value) { return default(UICollectionViewLayoutInteractiveTransitionCompletion); } static public implicit operator WEIRD(UICollectionViewLayoutInteractiveTransitionCompletion value) { return default(WEIRD); } } } \ 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 UICollectionView class manages an ordered collection of data items and presents them using customizable layouts. Collection views provide the same general function as table views except that a collection view is able to support more than just single-column layouts. Collection views support customizable layouts that can be used to implement multi-column grids, tiled layouts, circular layouts, and many more. You can even change the layout of a collection view dynamically if you want. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UICollectionView_class/index.html#//apple_ref/occ/cl/UICollectionView"/> [iOSVersion(6)] public class UICollectionView : UIScrollView//, AnyObject, NSCoding, NSObjectProtocol, Reflectable, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UITraitEnvironment { public UICollectionView() { } /// <summary> /// Initializes and returns a newly allocated collection view object with the specified frame and layout. /// </summary> /// <param name="frame">The frame rectangle for the collection view, measured in points. The origin of the frame is relative to the superview in which you plan to add it. This frame is passed to the superclass during initialization.</param> /// <param name="collectionViewLayout">The layout object to use for organizing items. The collection view stores a strong reference to the specified object. Must not be nil.</param> [iOSVersion(6)] public UICollectionView(CGRect frame, UICollectionViewLayout collectionViewLayout) { } /// <summary> /// Register a class for use in creating new collection view cells. /// </summary> /// <param name="cellClass">The class of a cell that you want to use in the collection view.</param> /// <param name="forCellWithReuseIdentifier">The reuse identifier to associate with the specified class. This parameter must not be nil and must not be an empty string.</param> [iOSVersion(6)] [Export("registerClass")] public virtual void RegisterClass(AnyClass cellClass, string forCellWithReuseIdentifier) { } /// <summary> /// Register a nib file for use in creating new collection view cells. /// </summary> /// <param name="nib">The nib object containing the cell object. The nib file must contain only one top-level object and that object must be of the type UICollectionViewCell.</param> /// <param name="forCellWithReuseIdentifier">The reuse identifier to associate with the specified nib file. This parameter must not be nil and must not be an empty string.</param> [iOSVersion(6)] [Export("registerNib")] public virtual void RegisterNib(UINib nib, string forCellWithReuseIdentifier) { } /// <summary> /// Registers a class for use in creating supplementary views for the collection view. /// </summary> /// <param name="viewClass">The class to use for the supplementary view.</param> /// <param name="forSupplementaryViewOfKind">The kind of supplementary view to create. This value is defined by the layout object. This parameter must not be nil.</param> /// <param name="withReuseIdentifier">The reuse identifier to associate with the specified class. This parameter must not be nil and must not be an empty string.</param> [iOSVersion(6)] [Export("registerClass")] public virtual void RegisterClass(AnyClass viewClass, string forSupplementaryViewOfKind, string withReuseIdentifier) { } /// <summary> /// Registers a nib file for use in creating supplementary views for the collection view. /// </summary> /// <param name="nib">The nib object containing the view object. The nib file must contain only one top-level object and that object must be of the type UICollectionReusableView.</param> /// <param name="forSupplementaryViewOfKind">The kind of supplementary view to create. The layout defines the types of supplementary views it supports. The value of this string may correspond to one of the predefined kind strings or to a custom string that the layout added to support a new type of supplementary view. This parameter must not be nil.</param> /// <param name="withReuseIdentifier">The reuse identifier to associate with the specified nib file. This parameter must not be nil and must not be an empty string.</param> [iOSVersion(6)] [Export("registerNib")] public virtual void RegisterNib(UINib nib, string forSupplementaryViewOfKind, string withReuseIdentifier) { } /// <summary> /// Returns a reusable cell object located by its identifier /// </summary> /// <param name="identifier">The reuse identifier for the specified cell. This parameter must not be nil.</param> /// <param name="forIndexPath">The index path specifying the location of the cell. The data source receives this information when it is asked for the cell and should just pass it along. This method uses the index path to perform additional configuration based on the cell’s position in the collection view.</param> [iOSVersion(6)] [Export("dequeueReusableCellWithReuseIdentifier")] public virtual AnyObject DequeueReusableCellWithReuseIdentifier(string identifier, NSIndexPath forIndexPath) { return default(AnyObject); } /// <summary> /// Returns a reusable supplementary view located by its identifier and kind. /// </summary> /// <param name="elementKind">The kind of supplementary view to retrieve. This value is defined by the layout object. This parameter must not be nil.</param> /// <param name="withReuseIdentifier">The reuse identifier for the specified view. This parameter must not be nil.</param> /// <param name="forIndexPath">The index path specifying the location of the supplementary view in the collection view. The data source receives this information when it is asked for the view and should just pass it along. This method uses the information to perform additional configuration based on the view’s position in the collection view.</param> [iOSVersion(6)] [Export("dequeueReusableSupplementaryViewOfKind")] public virtual AnyObject DequeueReusableSupplementaryViewOfKind(string elementKind, string withReuseIdentifier, NSIndexPath forIndexPath) { return default(AnyObject); } /// <summary> /// Changes the collection view’s layout and optionally animates the change. /// </summary> /// <param name="layout">The new layout object for the collection view.</param> /// <param name="animated">Specify true if you want to animate changes from the current layout to the new layout specified by the layout parameter. Specify false to make the change without animations.</param> [iOSVersion(6)] [Export("setCollectionViewLayout")] public virtual void SetCollectionViewLayout(UICollectionViewLayout layout, bool animated) { } /// <summary> /// Changes the collection view’s layout and notifies you when the animations complete. /// </summary> /// <param name="layout">The new layout object for the collection view.</param> /// <param name="animated">Specify true if you want to animate changes from the current layout to the new layout specified by the layout parameter. Specify false to make the change without animations.</param> /// <param name="completion">The block that is executed when the layout transition finishes or is aborted by the user. This block takes the following parameter: /// finished /// A Boolean indicating whether the transition completed successfully. This parameter is true if the transition finished and the new layout is installed. It is false if the user aborted the transition and returned to the old layout.</param> [iOSVersion(7)] [Export("setCollectionViewLayout")] public virtual void SetCollectionViewLayout(UICollectionViewLayout layout, bool animated, Action<bool> completion) { } /// <summary> /// Changes the collection view’s current layout using an interactive transition effect. /// </summary> /// <param name="layout">The new layout object for the collected views. This is the layout that you want the collection view to use after the interactive transition is done.</param> /// <param name="completion">A completion handler to execute after the transition finishes.</param> [iOSVersion(7)] [Export("startInteractiveTransitionToCollectionViewLayout")] public virtual UICollectionViewTransitionLayout StartInteractiveTransitionToCollectionViewLayout(UICollectionViewLayout layout, UICollectionViewLayoutInteractiveTransitionCompletion completion) { return default(UICollectionViewTransitionLayout); } /// <summary> /// Tells the collection view to finish an interactive transition by installing the intended target layout. /// </summary> [iOSVersion(7)] [Export("finishInteractiveTransition")] public virtual void FinishInteractiveTransition() { } /// <summary> /// Tells the collection view to abort an interactive transition and return to its original layout object. /// </summary> [iOSVersion(7)] [Export("cancelInteractiveTransition")] public virtual void CancelInteractiveTransition() { } /// <summary> /// Reloads all of the data for the collection view. /// </summary> [iOSVersion(6)] [Export("reloadData")] public virtual void ReloadData() { } /// <summary> /// Reloads the data in the specified sections of the collection view. /// </summary> /// <param name="sections">The indexes of the sections to reload.</param> [iOSVersion(6)] [Export("reloadSections")] public virtual void ReloadSections(NSIndexSet sections) { } /// <summary> /// Reloads just the items at the specified index paths. /// </summary> /// <param name="indexPaths">An array of NSIndexPath objects identifying the items you want to update.</param> [iOSVersion(6)] [Export("reloadItemsAtIndexPaths")] public virtual void ReloadItemsAtIndexPaths(AnyObject[] indexPaths) { } /// <summary> /// Returns the number of sections displayed by the collection view. /// </summary> [iOSVersion(6)] [Export("numberOfSections")] public virtual int NumberOfSections() { return default(int); } /// <summary> /// Returns the number of items in the specified section. /// </summary> /// <param name="section">The index of the section for which you want a count of the items.</param> [iOSVersion(6)] [Export("numberOfItemsInSection")] public virtual int NumberOfItemsInSection(int section) { return default(int); } /// <summary> /// Returns an array of visible cells currently displayed by the collection view. /// </summary> [iOSVersion(6)] [Export("visibleCells")] public virtual AnyObject[] VisibleCells() { return default(AnyObject[]); } /// <summary> /// Inserts new items at the specified index paths. /// </summary> /// <param name="indexPaths">An array of NSIndexPath objects, each of which contains a section index and item index at which to insert a new cell. This parameter must not be nil.</param> [iOSVersion(6)] [Export("insertItemsAtIndexPaths")] public virtual void InsertItemsAtIndexPaths(AnyObject[] indexPaths) { } /// <summary> /// Moves an item from one location to another in the collection view. /// </summary> /// <param name="indexPath">The index path of the item you want to move. This parameter must not be nil.</param> /// <param name="toIndexPath">The index path of the item’s new location. This parameter must not be nil.</param> [iOSVersion(6)] [Export("moveItemAtIndexPath")] public virtual void MoveItemAtIndexPath(NSIndexPath indexPath, NSIndexPath toIndexPath) { } /// <summary> /// Deletes the items at the specified index paths. /// </summary> /// <param name="indexPaths">An array of NSIndexPath objects, each of which contains a section index and item index for the item you want to delete from the collection view. This parameter must not be nil.</param> [iOSVersion(6)] [Export("deleteItemsAtIndexPaths")] public virtual void DeleteItemsAtIndexPaths(AnyObject[] indexPaths) { } /// <summary> /// Inserts new sections at the specified indexes. /// </summary> /// <param name="sections">An index set containing the indexes of the sections you want to insert. This parameter must not be nil.</param> [iOSVersion(6)] [Export("insertSections")] public virtual void InsertSections(NSIndexSet sections) { } /// <summary> /// Moves a section from one location to another in the collection view. /// </summary> /// <param name="section">The index path of the section you want to move. This parameter must not be nil.</param> /// <param name="toSection">The index path of the section’s new location. This parameter must not be nil.</param> [iOSVersion(6)] [Export("moveSection")] public virtual void MoveSection(int section, int toSection) { } /// <summary> /// Deletes the sections at the specified indexes. /// </summary> /// <param name="sections">The indexes of the sections you want to delete. This parameter must not be nil.</param> [iOSVersion(6)] [Export("deleteSections")] public virtual void DeleteSections(NSIndexSet sections) { } /// <summary> /// Returns the index paths for the selected items. /// </summary> [iOSVersion(6)] [Export("indexPathsForSelectedItems")] public virtual AnyObject[] IndexPathsForSelectedItems() { return default(AnyObject[]); } /// <summary> /// Selects the item at the specified index path and optionally scrolls it into view. /// </summary> /// <param name="indexPath">The index path of the item to select. Specifying nil for this parameter clears the current selection.</param> /// <param name="animated">Specify true to animate the change in the selection or false to make the change without animating it.</param> /// <param name="scrollPosition">An option that specifies where the item should be positioned when scrolling finishes. For a list of possible values, see “UICollectionViewScrollPosition”.</param> [iOSVersion(6)] [Export("selectItemAtIndexPath")] public virtual void SelectItemAtIndexPath(NSIndexPath indexPath, bool animated, UICollectionViewScrollPosition scrollPosition) { } /// <summary> /// Deselects the item at the specified index. /// </summary> /// <param name="indexPath">The index path of the item to select. Specifying nil results in no change to the current selection.</param> /// <param name="animated">Specify true to animate the change in the selection or false to make the change without animating it.</param> [iOSVersion(6)] [Export("deselectItemAtIndexPath")] public virtual void DeselectItemAtIndexPath(NSIndexPath indexPath, bool animated) { } /// <summary> /// Returns the index path of the item at the specified point in the collection view. /// </summary> /// <param name="point">A point in the collection view’s coordinate system.</param> [iOSVersion(6)] [Export("indexPathForItemAtPoint")] public virtual NSIndexPath IndexPathForItemAtPoint(CGPoint point) { return default(NSIndexPath); } /// <summary> /// Returns an array of the visible items in the collection view. /// </summary> [iOSVersion(6)] [Export("indexPathsForVisibleItems")] public virtual AnyObject[] IndexPathsForVisibleItems() { return default(AnyObject[]); } /// <summary> /// Returns the index path of the specified cell. /// </summary> /// <param name="cell">The cell object whose index path you want.</param> [iOSVersion(6)] [Export("indexPathForCell")] public virtual NSIndexPath IndexPathForCell(UICollectionViewCell cell) { return default(NSIndexPath); } /// <summary> /// Returns the visible cell object at the specified index path. /// </summary> /// <param name="indexPath">The index path that specifies the section and item number of the cell.</param> [iOSVersion(6)] [Export("cellForItemAtIndexPath")] public virtual UICollectionViewCell CellForItemAtIndexPath(NSIndexPath indexPath) { return default(UICollectionViewCell); } /// <summary> /// Returns the layout information for the item at the specified index path. /// </summary> /// <param name="indexPath">The index path of the item.</param> [iOSVersion(6)] [Export("layoutAttributesForItemAtIndexPath")] public virtual UICollectionViewLayoutAttributes LayoutAttributesForItemAtIndexPath(NSIndexPath indexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Returns the layout information for the specified supplementary view. /// </summary> /// <param name="kind">A string specifying the kind of supplementary view whose layout attributes you want. Layout classes are responsible for defining the kinds of supplementary views they support.</param> /// <param name="atIndexPath">The index path of the supplementary view. The interpretation of this value depends on how the layout implements the view. For example, a view associated with a section might contain just a section value.</param> [iOSVersion(6)] [Export("layoutAttributesForSupplementaryElementOfKind")] public virtual UICollectionViewLayoutAttributes LayoutAttributesForSupplementaryElementOfKind(string kind, NSIndexPath atIndexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Scrolls the collection view contents until the specified item is visible. /// </summary> /// <param name="indexPath">The index path of the item to scroll into view.</param> /// <param name="atScrollPosition">An option that specifies where the item should be positioned when scrolling finishes. For a list of possible values, see “UICollectionViewScrollPosition”.</param> /// <param name="animated">Specify true to animate the scrolling behavior or false to adjust the scroll view’s visible content immediately.</param> [iOSVersion(6)] [Export("scrollToItemAtIndexPath")] public virtual void ScrollToItemAtIndexPath(NSIndexPath indexPath, UICollectionViewScrollPosition atScrollPosition, bool animated) { } /// <summary> /// Animates multiple insert, delete, reload, and move operations as a group. /// </summary> /// <param name="updates">The block that performs the relevant insert, delete, reload, or move operations.</param> /// <param name="completion">A completion handler block to execute when all of the operations are finished. This block takes a single Boolean parameter that contains the value true if all of the related animations completed successfully or false if they were interrupted. This parameter may be nil.</param> [iOSVersion(6)] [Export("performBatchUpdates")] public virtual void PerformBatchUpdates(Action updates, Action<bool> completion) { } /// <summary> /// The object that acts as the delegate of the collection view. /// </summary> [iOSVersion(6)] [Export("delegate")] public UICollectionViewDelegate Delegate { get; set; } /// <summary> /// The object that provides the data for the collection view. /// </summary> [iOSVersion(6)] [Export("dataSource")] public UICollectionViewDataSource DataSource { get; set; } /// <summary> /// The view that provides the background appearance. /// </summary> [iOSVersion(6)] [Export("backgroundView")] public UIView BackgroundView { get; set; } /// <summary> /// The layout used to organize the collected view’s items. /// </summary> [iOSVersion(6)] [Export("collectionViewLayout")] public UICollectionViewLayout CollectionViewLayout { get; set; } /// <summary> /// A Boolean value that indicates whether users can select items in the collection view. /// </summary> [iOSVersion(6)] [Export("allowsSelection")] public bool AllowsSelection { get; set; } /// <summary> /// A Boolean value that determines whether users can select more than one item in the collection view. /// </summary> [iOSVersion(6)] [Export("allowsMultipleSelection")] public bool AllowsMultipleSelection { get; set; } } /// <summary> /// Constants that indicate how to scroll an item into the visible portion of the collection view. /// </summary> [iOSVersion(6)] public enum UICollectionViewScrollPosition { /// <summary> /// Do not scroll the item into view. /// </summary> [iOSVersion(6)] None, /// <summary> /// Scroll so that the item is positioned at the top of the collection view’s bounds. This option is mutually exclusive with the UICollectionViewScrollPositionCenteredVertically and UICollectionViewScrollPositionBottom options. /// </summary> [iOSVersion(6)] Top, /// <summary> /// Scroll so that the item is centered vertically in the collection view. This option is mutually exclusive with the UICollectionViewScrollPositionTop and UICollectionViewScrollPositionBottom options. /// </summary> [iOSVersion(6)] CenteredVertically, /// <summary> /// Scroll so that the item is positioned at the bottom of the collection view’s bounds. This option is mutually exclusive with the UICollectionViewScrollPositionTop and UICollectionViewScrollPositionCenteredVertically options. /// </summary> [iOSVersion(6)] Bottom, /// <summary> /// Scroll so that the item is positioned at the left edge of the collection view’s bounds. This option is mutually exclusive with the UICollectionViewScrollPositionCenteredHorizontally and UICollectionViewScrollPositionRight options. /// </summary> [iOSVersion(6)] Left, /// <summary> /// Scroll so that the item is centered horizontally in the collection view. This option is mutually exclusive with the UICollectionViewScrollPositionLeft and UICollectionViewScrollPositionRight options. /// </summary> [iOSVersion(6)] CenteredHorizontally, /// <summary> /// Scroll so that the item is positioned at the right edge of the collection view’s bounds. This option is mutually exclusive with the UICollectionViewScrollPositionLeft and UICollectionViewScrollPositionCenteredHorizontally options. /// </summary> [iOSVersion(6)] Right, } /// <summary> /// The completion block called at the end of an interactive transition for a collection view. /// </summary> [iOSVersion(7)] public struct UICollectionViewLayoutInteractiveTransitionCompletion { static public implicit operator UICollectionViewLayoutInteractiveTransitionCompletion(Action<bool, bool> value) { return default(UICollectionViewLayoutInteractiveTransitionCompletion); } static public implicit operator Action<bool, bool>(UICollectionViewLayoutInteractiveTransitionCompletion value) { return default(Action<bool, bool>); } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UICollectionViewLayout.cs b/CocoaSharp/UIKit/UICollectionViewLayout.cs
index 09eefa82..bdf267c6 100644
--- a/CocoaSharp/UIKit/UICollectionViewLayout.cs
+++ b/CocoaSharp/UIKit/UICollectionViewLayout.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UICollectionViewLayout class is an abstract base class that you subclass and use to generate layout information for a collection view. The job of a layout object is to determine the placement of cells, supplementary views, and decoration views inside the collection view’s bounds and to report that information to the collection view when asked. The collection view then applies the provided layout information to the corresponding views so that they can be presented onscreen. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UICollectionViewLayout_class/index.html#//apple_ref/occ/cl/UICollectionViewLayout"/> [iOSVersion(6)] public class UICollectionViewLayout : NSObject//, AnyObject, NSCoding, NSObjectProtocol { public UICollectionViewLayout() { } /// <summary> /// Returns the width and height of the collection view’s contents. /// </summary> [iOSVersion(6)] [Export("collectionViewContentSize")] public virtual CGSize CollectionViewContentSize() { return default(CGSize); } /// <summary> /// Returns the class to use when creating layout attributes objects. /// </summary> [iOSVersion(6)] [Export("layoutAttributesClass")] public virtual static AnyClass LayoutAttributesClass() { return default(AnyClass); } /// <summary> /// Tells the layout object to update the current layout. /// </summary> [iOSVersion(6)] [Export("prepareLayout")] public virtual void PrepareLayout() { } /// <summary> /// Returns the layout attributes for all of the cells and views in the specified rectangle. /// </summary> /// <param name="rect">The rectangle (specified in the collection view’s coordinate system) containing the target views.</param> [iOSVersion(6)] [Export("layoutAttributesForElementsInRect")] public virtual AnyObject[] LayoutAttributesForElementsInRect(CGRect rect) { return default(AnyObject[]); } /// <summary> /// Returns the layout attributes for the item at the specified index path. /// </summary> /// <param name="indexPath">The index path of the item.</param> [iOSVersion(6)] [Export("layoutAttributesForItemAtIndexPath")] public virtual UICollectionViewLayoutAttributes LayoutAttributesForItemAtIndexPath(NSIndexPath indexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Returns the layout attributes for the specified supplementary view. /// </summary> /// <param name="kind">A string that identifies the type of the supplementary view.</param> /// <param name="atIndexPath">The index path of the view.</param> [iOSVersion(6)] [Export("layoutAttributesForSupplementaryViewOfKind")] public virtual UICollectionViewLayoutAttributes LayoutAttributesForSupplementaryViewOfKind(string kind, NSIndexPath atIndexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Returns the layout attributes for the specified decoration view. /// </summary> /// <param name="decorationViewKind">A string that identifies the type of the decoration view.</param> /// <param name="atIndexPath">The index path of the decoration view.</param> [iOSVersion(6)] [Export("layoutAttributesForDecorationViewOfKind")] public virtual UICollectionViewLayoutAttributes LayoutAttributesForDecorationViewOfKind(string decorationViewKind, NSIndexPath atIndexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Returns the content offset to use after an animated layout update or change. /// </summary> /// <param name="proposedContentOffset">The proposed point (in the coordinate space of the collection view’s content view) for the upper-left corner of the visible content. This represents the point that the collection view has calculated as the most likely value to use at the end of the animation.</param> [iOSVersion(7)] [Export("targetContentOffsetForProposedContentOffset")] public virtual CGPoint TargetContentOffsetForProposedContentOffset(CGPoint proposedContentOffset) { return default(CGPoint); } /// <summary> /// Returns the point at which to stop scrolling. /// </summary> /// <param name="proposedContentOffset">The proposed point (in the collection view’s content view) at which to stop scrolling. This is the value at which scrolling would naturally stop if no adjustments were made. The point reflects the upper-left corner of the visible content.</param> /// <param name="withScrollingVelocity">The current scrolling velocity along both the horizontal and vertical axes. This value is measured in points per second.</param> [iOSVersion(6)] [Export("targetContentOffsetForProposedContentOffset")] public virtual CGPoint TargetContentOffsetForProposedContentOffset(CGPoint proposedContentOffset, CGPoint withScrollingVelocity) { return default(CGPoint); } /// <summary> /// Notifies the layout object that the contents of the collection view are about to change. /// </summary> /// <param name="updateItems">An array of UICollectionViewUpdateItem objects that identify the changes being made.</param> [iOSVersion(6)] [Export("prepareForCollectionViewUpdates")] public virtual void PrepareForCollectionViewUpdates(AnyObject[] updateItems) { } /// <summary> /// Performs any additional animations or clean up needed during a collection view update. /// </summary> [iOSVersion(6)] [Export("finalizeCollectionViewUpdates")] public virtual void FinalizeCollectionViewUpdates() { } /// <summary> /// Returns an array of index paths for the supplementary views you want to add to the layout. /// </summary> /// <param name="kind">The specific type of supplementary view.</param> [iOSVersion(7)] [Export("indexPathsToInsertForSupplementaryViewOfKind")] public virtual AnyObject[] IndexPathsToInsertForSupplementaryViewOfKind(string kind) { return default(AnyObject[]); } /// <summary> /// Returns an array of index paths representing the decoration views to add. /// </summary> /// <param name="kind">The specific type of decoration view.</param> [iOSVersion(7)] [Export("indexPathsToInsertForDecorationViewOfKind")] public virtual AnyObject[] IndexPathsToInsertForDecorationViewOfKind(string kind) { return default(AnyObject[]); } /// <summary> /// Returns the starting layout information for an item being inserted into the collection view. /// </summary> /// <param name="itemIndexPath">The index path of the item being inserted. You can use this path to locate the item in the collection view’s data source.</param> [iOSVersion(6)] [Export("initialLayoutAttributesForAppearingItemAtIndexPath")] public virtual UICollectionViewLayoutAttributes InitialLayoutAttributesForAppearingItemAtIndexPath(NSIndexPath itemIndexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Returns the starting layout information for a supplementary view being inserted into the collection view. /// </summary> /// <param name="elementKind">A string that identifies the type of supplementary view.</param> /// <param name="atIndexPath">The index path of the item being inserted.</param> [iOSVersion(6)] [Export("initialLayoutAttributesForAppearingSupplementaryElementOfKind")] public virtual UICollectionViewLayoutAttributes InitialLayoutAttributesForAppearingSupplementaryElementOfKind(string elementKind, NSIndexPath atIndexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Returns the starting layout information for a decoration view being inserted into the collection view. /// </summary> /// <param name="elementKind">A string that identifies the type of decoration view.</param> /// <param name="atIndexPath">The index path of the item being inserted.</param> [iOSVersion(6)] [Export("initialLayoutAttributesForAppearingDecorationElementOfKind")] public virtual UICollectionViewLayoutAttributes InitialLayoutAttributesForAppearingDecorationElementOfKind(string elementKind, NSIndexPath atIndexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Returns an array of index paths representing the supplementary views to remove. /// </summary> /// <param name="kind">The specific type of supplementary view.</param> [iOSVersion(7)] [Export("indexPathsToDeleteForSupplementaryViewOfKind")] public virtual AnyObject[] IndexPathsToDeleteForSupplementaryViewOfKind(string kind) { return default(AnyObject[]); } /// <summary> /// Returns an array of index paths representing the decoration views to remove. /// </summary> /// <param name="kind">The specific type of decoration view.</param> [iOSVersion(7)] [Export("indexPathsToDeleteForDecorationViewOfKind")] public virtual AnyObject[] IndexPathsToDeleteForDecorationViewOfKind(string kind) { return default(AnyObject[]); } /// <summary> /// Returns the final layout information for an item that is about to be removed from the collection view. /// </summary> /// <param name="itemIndexPath">The index path of the item being deleted.</param> [iOSVersion(6)] [Export("finalLayoutAttributesForDisappearingItemAtIndexPath")] public virtual UICollectionViewLayoutAttributes FinalLayoutAttributesForDisappearingItemAtIndexPath(NSIndexPath itemIndexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Returns the final layout information for a supplementary view that is about to be removed from the collection view. /// </summary> /// <param name="elementKind">A string that identifies the type of supplementary view.</param> /// <param name="atIndexPath">The index path of the view being deleted.</param> [iOSVersion(6)] [Export("finalLayoutAttributesForDisappearingSupplementaryElementOfKind")] public virtual UICollectionViewLayoutAttributes FinalLayoutAttributesForDisappearingSupplementaryElementOfKind(string elementKind, NSIndexPath atIndexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Returns the final layout information for a decoration view that is about to be removed from the collection view. /// </summary> /// <param name="elementKind">A string that identifies the type of decoration view.</param> /// <param name="atIndexPath">The index path of the view being deleted.</param> [iOSVersion(6)] [Export("finalLayoutAttributesForDisappearingDecorationElementOfKind")] public virtual UICollectionViewLayoutAttributes FinalLayoutAttributesForDisappearingDecorationElementOfKind(string elementKind, NSIndexPath atIndexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Invalidates the current layout and triggers a layout update. /// </summary> [iOSVersion(6)] [Export("invalidateLayout")] public virtual void InvalidateLayout() { } /// <summary> /// Invalidates the current layout using the information in the provided context object. /// </summary> /// <param name="context">The context object indicating which parts of the layout to refresh.</param> [iOSVersion(7)] [Export("invalidateLayoutWithContext")] public virtual void InvalidateLayoutWithContext(UICollectionViewLayoutInvalidationContext context) { } /// <summary> /// Returns the class to use when creating an invalidation context for the layout. /// </summary> [iOSVersion(7)] [Export("invalidationContextClass")] public virtual static AnyClass InvalidationContextClass() { return default(AnyClass); } /// <summary> /// Asks the layout object if the new bounds require a layout update. /// </summary> /// <param name="newBounds">The new bounds of the collection view.</param> [iOSVersion(6)] [Export("shouldInvalidateLayoutForBoundsChange")] public virtual bool ShouldInvalidateLayoutForBoundsChange(CGRect newBounds) { return default(bool); } /// <summary> /// Returns a context object that defines the portions of the layout that should change when a bounds change occurs. /// </summary> /// <param name="newBounds">The new bounds for the collection view.</param> [iOSVersion(7)] [Export("invalidationContextForBoundsChange")] public virtual UICollectionViewLayoutInvalidationContext InvalidationContextForBoundsChange(CGRect newBounds) { return default(UICollectionViewLayoutInvalidationContext); } /// <summary> /// Asks the layout object if changes to a self-sizing cell require a layout update. /// </summary> /// <param name="preferredAttributes">The layout attributes returned by the cell’s preferredLayoutAttributesFittingAttributes: method.</param> /// <param name="withOriginalAttributes">The attributes that the layout object originally suggested for the cell.</param> [iOSVersion(8)] [Export("shouldInvalidateLayoutForPreferredLayoutAttributes")] public virtual bool ShouldInvalidateLayoutForPreferredLayoutAttributes(UICollectionViewLayoutAttributes preferredAttributes, UICollectionViewLayoutAttributes withOriginalAttributes) { return default(bool); } /// <summary> /// Returns a context object that defines the portions of the layout that should change in response to dynamic cell changes. /// </summary> /// <param name="preferredAttributes">The layout attributes returned by the cell’s preferredLayoutAttributesFittingAttributes: method.</param> /// <param name="withOriginalAttributes">The attributes that the layout object originally suggested for the cell.</param> [iOSVersion(8)] [Export("invalidationContextForPreferredLayoutAttributes")] public virtual UICollectionViewLayoutInvalidationContext InvalidationContextForPreferredLayoutAttributes(UICollectionViewLayoutAttributes preferredAttributes, UICollectionViewLayoutAttributes withOriginalAttributes) { return default(UICollectionViewLayoutInvalidationContext); } /// <summary> /// Prepares the layout object for animated changes to the view’s bounds or the insertion or deletion of items. /// </summary> /// <param name="oldBounds">The current bounds of the collection view.</param> [iOSVersion(6)] [Export("prepareForAnimatedBoundsChange")] public virtual void PrepareForAnimatedBoundsChange(CGRect oldBounds) { } /// <summary> /// Cleans up after any animated changes to the view’s bounds or after the insertion or deletion of items. /// </summary> [iOSVersion(6)] [Export("finalizeAnimatedBoundsChange")] public virtual void FinalizeAnimatedBoundsChange() { } /// <summary> /// Tells the layout object to prepare to be installed as the layout for the collection view. /// </summary> /// <param name="oldLayout">The layout object installed in the collection view at the beginning of the transition. You might use this object to provide different ending attributes based on the starting layout object.</param> [iOSVersion(7)] [Export("prepareForTransitionFromLayout")] public virtual void PrepareForTransitionFromLayout(UICollectionViewLayout oldLayout) { } /// <summary> /// Tells the layout object that it is about to be removed as the layout for the collection view. /// </summary> /// <param name="newLayout">The layout object to be installed in the collection view at the end of the transition. You might use this object to provide different starting attributes depending on the final layout object.</param> [iOSVersion(7)] [Export("prepareForTransitionToLayout")] public virtual void PrepareForTransitionToLayout(UICollectionViewLayout newLayout) { } /// <summary> /// Tells the layout object to perform any final steps before the transition animations occur. /// </summary> [iOSVersion(7)] [Export("finalizeLayoutTransition")] public virtual void FinalizeLayoutTransition() { } /// <summary> /// Registers a class for use in creating decoration views for a collection view. /// </summary> /// <param name="viewClass">The class to use for the supplementary view.</param> /// <param name="forDecorationViewOfKind">The element kind of the decoration view. You can use this string to distinguish between decoration views with different purposes in the layout. This parameter must not be nil and must not be an empty string.</param> [iOSVersion(6)] [Export("registerClass")] public virtual void RegisterClass(AnyClass viewClass, string forDecorationViewOfKind) { } /// <summary> /// Registers a nib file for use in creating decoration views for a collection view. /// </summary> /// <param name="nib">The nib object containing the cell definition. The nib file must contain only one top-level object and that object must be of the type UICollectionReusableView.</param> /// <param name="forDecorationViewOfKind">The element kind of the decoration view. You can use this string to distinguish between decoration views with different purposes in the layout. This parameter must not be nil and must not be an empty string.</param> [iOSVersion(6)] [Export("registerNib")] public virtual void RegisterNib(UINib nib, string forDecorationViewOfKind) { } /// <summary> /// The collection view object currently using this layout object. (read-only) /// </summary> [iOSVersion(6)] [Export("collectionView")] public UICollectionView CollectionView { get; private set; } } } \ 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 UICollectionViewLayout class is an abstract base class that you subclass and use to generate layout information for a collection view. The job of a layout object is to determine the placement of cells, supplementary views, and decoration views inside the collection view’s bounds and to report that information to the collection view when asked. The collection view then applies the provided layout information to the corresponding views so that they can be presented onscreen. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UICollectionViewLayout_class/index.html#//apple_ref/occ/cl/UICollectionViewLayout"/> [iOSVersion(6)] public class UICollectionViewLayout : NSObject//, AnyObject, NSCoding, NSObjectProtocol { public UICollectionViewLayout() { } /// <summary> /// Returns the width and height of the collection view’s contents. /// </summary> [iOSVersion(6)] [Export("collectionViewContentSize")] public virtual CGSize CollectionViewContentSize() { return default(CGSize); } /// <summary> /// Returns the class to use when creating layout attributes objects. /// </summary> [iOSVersion(6)] [Export("layoutAttributesClass")] public static AnyClass LayoutAttributesClass() { return default(AnyClass); } /// <summary> /// Tells the layout object to update the current layout. /// </summary> [iOSVersion(6)] [Export("prepareLayout")] public virtual void PrepareLayout() { } /// <summary> /// Returns the layout attributes for all of the cells and views in the specified rectangle. /// </summary> /// <param name="rect">The rectangle (specified in the collection view’s coordinate system) containing the target views.</param> [iOSVersion(6)] [Export("layoutAttributesForElementsInRect")] public virtual AnyObject[] LayoutAttributesForElementsInRect(CGRect rect) { return default(AnyObject[]); } /// <summary> /// Returns the layout attributes for the item at the specified index path. /// </summary> /// <param name="indexPath">The index path of the item.</param> [iOSVersion(6)] [Export("layoutAttributesForItemAtIndexPath")] public virtual UICollectionViewLayoutAttributes LayoutAttributesForItemAtIndexPath(NSIndexPath indexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Returns the layout attributes for the specified supplementary view. /// </summary> /// <param name="kind">A string that identifies the type of the supplementary view.</param> /// <param name="atIndexPath">The index path of the view.</param> [iOSVersion(6)] [Export("layoutAttributesForSupplementaryViewOfKind")] public virtual UICollectionViewLayoutAttributes LayoutAttributesForSupplementaryViewOfKind(string kind, NSIndexPath atIndexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Returns the layout attributes for the specified decoration view. /// </summary> /// <param name="decorationViewKind">A string that identifies the type of the decoration view.</param> /// <param name="atIndexPath">The index path of the decoration view.</param> [iOSVersion(6)] [Export("layoutAttributesForDecorationViewOfKind")] public virtual UICollectionViewLayoutAttributes LayoutAttributesForDecorationViewOfKind(string decorationViewKind, NSIndexPath atIndexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Returns the content offset to use after an animated layout update or change. /// </summary> /// <param name="proposedContentOffset">The proposed point (in the coordinate space of the collection view’s content view) for the upper-left corner of the visible content. This represents the point that the collection view has calculated as the most likely value to use at the end of the animation.</param> [iOSVersion(7)] [Export("targetContentOffsetForProposedContentOffset")] public virtual CGPoint TargetContentOffsetForProposedContentOffset(CGPoint proposedContentOffset) { return default(CGPoint); } /// <summary> /// Returns the point at which to stop scrolling. /// </summary> /// <param name="proposedContentOffset">The proposed point (in the collection view’s content view) at which to stop scrolling. This is the value at which scrolling would naturally stop if no adjustments were made. The point reflects the upper-left corner of the visible content.</param> /// <param name="withScrollingVelocity">The current scrolling velocity along both the horizontal and vertical axes. This value is measured in points per second.</param> [iOSVersion(6)] [Export("targetContentOffsetForProposedContentOffset")] public virtual CGPoint TargetContentOffsetForProposedContentOffset(CGPoint proposedContentOffset, CGPoint withScrollingVelocity) { return default(CGPoint); } /// <summary> /// Notifies the layout object that the contents of the collection view are about to change. /// </summary> /// <param name="updateItems">An array of UICollectionViewUpdateItem objects that identify the changes being made.</param> [iOSVersion(6)] [Export("prepareForCollectionViewUpdates")] public virtual void PrepareForCollectionViewUpdates(AnyObject[] updateItems) { } /// <summary> /// Performs any additional animations or clean up needed during a collection view update. /// </summary> [iOSVersion(6)] [Export("finalizeCollectionViewUpdates")] public virtual void FinalizeCollectionViewUpdates() { } /// <summary> /// Returns an array of index paths for the supplementary views you want to add to the layout. /// </summary> /// <param name="kind">The specific type of supplementary view.</param> [iOSVersion(7)] [Export("indexPathsToInsertForSupplementaryViewOfKind")] public virtual AnyObject[] IndexPathsToInsertForSupplementaryViewOfKind(string kind) { return default(AnyObject[]); } /// <summary> /// Returns an array of index paths representing the decoration views to add. /// </summary> /// <param name="kind">The specific type of decoration view.</param> [iOSVersion(7)] [Export("indexPathsToInsertForDecorationViewOfKind")] public virtual AnyObject[] IndexPathsToInsertForDecorationViewOfKind(string kind) { return default(AnyObject[]); } /// <summary> /// Returns the starting layout information for an item being inserted into the collection view. /// </summary> /// <param name="itemIndexPath">The index path of the item being inserted. You can use this path to locate the item in the collection view’s data source.</param> [iOSVersion(6)] [Export("initialLayoutAttributesForAppearingItemAtIndexPath")] public virtual UICollectionViewLayoutAttributes InitialLayoutAttributesForAppearingItemAtIndexPath(NSIndexPath itemIndexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Returns the starting layout information for a supplementary view being inserted into the collection view. /// </summary> /// <param name="elementKind">A string that identifies the type of supplementary view.</param> /// <param name="atIndexPath">The index path of the item being inserted.</param> [iOSVersion(6)] [Export("initialLayoutAttributesForAppearingSupplementaryElementOfKind")] public virtual UICollectionViewLayoutAttributes InitialLayoutAttributesForAppearingSupplementaryElementOfKind(string elementKind, NSIndexPath atIndexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Returns the starting layout information for a decoration view being inserted into the collection view. /// </summary> /// <param name="elementKind">A string that identifies the type of decoration view.</param> /// <param name="atIndexPath">The index path of the item being inserted.</param> [iOSVersion(6)] [Export("initialLayoutAttributesForAppearingDecorationElementOfKind")] public virtual UICollectionViewLayoutAttributes InitialLayoutAttributesForAppearingDecorationElementOfKind(string elementKind, NSIndexPath atIndexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Returns an array of index paths representing the supplementary views to remove. /// </summary> /// <param name="kind">The specific type of supplementary view.</param> [iOSVersion(7)] [Export("indexPathsToDeleteForSupplementaryViewOfKind")] public virtual AnyObject[] IndexPathsToDeleteForSupplementaryViewOfKind(string kind) { return default(AnyObject[]); } /// <summary> /// Returns an array of index paths representing the decoration views to remove. /// </summary> /// <param name="kind">The specific type of decoration view.</param> [iOSVersion(7)] [Export("indexPathsToDeleteForDecorationViewOfKind")] public virtual AnyObject[] IndexPathsToDeleteForDecorationViewOfKind(string kind) { return default(AnyObject[]); } /// <summary> /// Returns the final layout information for an item that is about to be removed from the collection view. /// </summary> /// <param name="itemIndexPath">The index path of the item being deleted.</param> [iOSVersion(6)] [Export("finalLayoutAttributesForDisappearingItemAtIndexPath")] public virtual UICollectionViewLayoutAttributes FinalLayoutAttributesForDisappearingItemAtIndexPath(NSIndexPath itemIndexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Returns the final layout information for a supplementary view that is about to be removed from the collection view. /// </summary> /// <param name="elementKind">A string that identifies the type of supplementary view.</param> /// <param name="atIndexPath">The index path of the view being deleted.</param> [iOSVersion(6)] [Export("finalLayoutAttributesForDisappearingSupplementaryElementOfKind")] public virtual UICollectionViewLayoutAttributes FinalLayoutAttributesForDisappearingSupplementaryElementOfKind(string elementKind, NSIndexPath atIndexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Returns the final layout information for a decoration view that is about to be removed from the collection view. /// </summary> /// <param name="elementKind">A string that identifies the type of decoration view.</param> /// <param name="atIndexPath">The index path of the view being deleted.</param> [iOSVersion(6)] [Export("finalLayoutAttributesForDisappearingDecorationElementOfKind")] public virtual UICollectionViewLayoutAttributes FinalLayoutAttributesForDisappearingDecorationElementOfKind(string elementKind, NSIndexPath atIndexPath) { return default(UICollectionViewLayoutAttributes); } /// <summary> /// Invalidates the current layout and triggers a layout update. /// </summary> [iOSVersion(6)] [Export("invalidateLayout")] public virtual void InvalidateLayout() { } /// <summary> /// Invalidates the current layout using the information in the provided context object. /// </summary> /// <param name="context">The context object indicating which parts of the layout to refresh.</param> [iOSVersion(7)] [Export("invalidateLayoutWithContext")] public virtual void InvalidateLayoutWithContext(UICollectionViewLayoutInvalidationContext context) { } /// <summary> /// Returns the class to use when creating an invalidation context for the layout. /// </summary> [iOSVersion(7)] [Export("invalidationContextClass")] public static AnyClass InvalidationContextClass() { return default(AnyClass); } /// <summary> /// Asks the layout object if the new bounds require a layout update. /// </summary> /// <param name="newBounds">The new bounds of the collection view.</param> [iOSVersion(6)] [Export("shouldInvalidateLayoutForBoundsChange")] public virtual bool ShouldInvalidateLayoutForBoundsChange(CGRect newBounds) { return default(bool); } /// <summary> /// Returns a context object that defines the portions of the layout that should change when a bounds change occurs. /// </summary> /// <param name="newBounds">The new bounds for the collection view.</param> [iOSVersion(7)] [Export("invalidationContextForBoundsChange")] public virtual UICollectionViewLayoutInvalidationContext InvalidationContextForBoundsChange(CGRect newBounds) { return default(UICollectionViewLayoutInvalidationContext); } /// <summary> /// Asks the layout object if changes to a self-sizing cell require a layout update. /// </summary> /// <param name="preferredAttributes">The layout attributes returned by the cell’s preferredLayoutAttributesFittingAttributes: method.</param> /// <param name="withOriginalAttributes">The attributes that the layout object originally suggested for the cell.</param> [iOSVersion(8)] [Export("shouldInvalidateLayoutForPreferredLayoutAttributes")] public virtual bool ShouldInvalidateLayoutForPreferredLayoutAttributes(UICollectionViewLayoutAttributes preferredAttributes, UICollectionViewLayoutAttributes withOriginalAttributes) { return default(bool); } /// <summary> /// Returns a context object that defines the portions of the layout that should change in response to dynamic cell changes. /// </summary> /// <param name="preferredAttributes">The layout attributes returned by the cell’s preferredLayoutAttributesFittingAttributes: method.</param> /// <param name="withOriginalAttributes">The attributes that the layout object originally suggested for the cell.</param> [iOSVersion(8)] [Export("invalidationContextForPreferredLayoutAttributes")] public virtual UICollectionViewLayoutInvalidationContext InvalidationContextForPreferredLayoutAttributes(UICollectionViewLayoutAttributes preferredAttributes, UICollectionViewLayoutAttributes withOriginalAttributes) { return default(UICollectionViewLayoutInvalidationContext); } /// <summary> /// Prepares the layout object for animated changes to the view’s bounds or the insertion or deletion of items. /// </summary> /// <param name="oldBounds">The current bounds of the collection view.</param> [iOSVersion(6)] [Export("prepareForAnimatedBoundsChange")] public virtual void PrepareForAnimatedBoundsChange(CGRect oldBounds) { } /// <summary> /// Cleans up after any animated changes to the view’s bounds or after the insertion or deletion of items. /// </summary> [iOSVersion(6)] [Export("finalizeAnimatedBoundsChange")] public virtual void FinalizeAnimatedBoundsChange() { } /// <summary> /// Tells the layout object to prepare to be installed as the layout for the collection view. /// </summary> /// <param name="oldLayout">The layout object installed in the collection view at the beginning of the transition. You might use this object to provide different ending attributes based on the starting layout object.</param> [iOSVersion(7)] [Export("prepareForTransitionFromLayout")] public virtual void PrepareForTransitionFromLayout(UICollectionViewLayout oldLayout) { } /// <summary> /// Tells the layout object that it is about to be removed as the layout for the collection view. /// </summary> /// <param name="newLayout">The layout object to be installed in the collection view at the end of the transition. You might use this object to provide different starting attributes depending on the final layout object.</param> [iOSVersion(7)] [Export("prepareForTransitionToLayout")] public virtual void PrepareForTransitionToLayout(UICollectionViewLayout newLayout) { } /// <summary> /// Tells the layout object to perform any final steps before the transition animations occur. /// </summary> [iOSVersion(7)] [Export("finalizeLayoutTransition")] public virtual void FinalizeLayoutTransition() { } /// <summary> /// Registers a class for use in creating decoration views for a collection view. /// </summary> /// <param name="viewClass">The class to use for the supplementary view.</param> /// <param name="forDecorationViewOfKind">The element kind of the decoration view. You can use this string to distinguish between decoration views with different purposes in the layout. This parameter must not be nil and must not be an empty string.</param> [iOSVersion(6)] [Export("registerClass")] public virtual void RegisterClass(AnyClass viewClass, string forDecorationViewOfKind) { } /// <summary> /// Registers a nib file for use in creating decoration views for a collection view. /// </summary> /// <param name="nib">The nib object containing the cell definition. The nib file must contain only one top-level object and that object must be of the type UICollectionReusableView.</param> /// <param name="forDecorationViewOfKind">The element kind of the decoration view. You can use this string to distinguish between decoration views with different purposes in the layout. This parameter must not be nil and must not be an empty string.</param> [iOSVersion(6)] [Export("registerNib")] public virtual void RegisterNib(UINib nib, string forDecorationViewOfKind) { } /// <summary> /// The collection view object currently using this layout object. (read-only) /// </summary> [iOSVersion(6)] [Export("collectionView")] public UICollectionView CollectionView { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIColor.cs b/CocoaSharp/UIKit/UIColor.cs
index 77c4b471..b711b22c 100644
--- a/CocoaSharp/UIKit/UIColor.cs
+++ b/CocoaSharp/UIKit/UIColor.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// A UIColor object represents color and sometimes opacity (alpha value). You can use UIColor objects to store color data, and during drawing you can use them to set the current fill and stroke colors. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIColor_Class/index.html#//apple_ref/occ/cl/UIColor"/> [iOSVersion(2)] public class UIColor : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { public UIColor() { } /// <summary> /// Creates and returns a color object that has the same color space and component values as the receiver, but has the specified alpha component. /// </summary> /// <param name="alpha">The opacity value of the new UIColor object.</param> [iOSVersion(2)] [Export("colorWithAlphaComponent")] public virtual UIColor ColorWithAlphaComponent(CGFloat alpha) { return default(UIColor); } /// <summary> /// Initializes and returns a color object using the specified opacity and grayscale values. /// </summary> /// <param name="white">The grayscale value of the color object, specified as a value from 0.0 to 1.0.</param> /// <param name="alpha">The opacity value of the color object, specified as a value from 0.0 to 1.0.</param> [iOSVersion(2)] public UIColor(CGFloat white, CGFloat alpha) { } /// <summary> /// Initializes and returns a color object using the specified opacity and HSB color space component values. /// </summary> /// <param name="hue">The hue component of the color object in the HSB color space, specified as a value from 0.0 to 1.0.</param> /// <param name="saturation">The saturation component of the color object in the HSB color space, specified as a value from 0.0 to 1.0.</param> /// <param name="brightness">The brightness (or value) component of the color object in the HSB color space, specified as a value from 0.0 to 1.0.</param> /// <param name="alpha">The opacity value of the color object, specified as a value from 0.0 to 1.0.</param> [iOSVersion(2)] public UIColor(CGFloat hue, CGFloat saturation, CGFloat brightness, CGFloat alpha) { } /// <summary> /// Initializes and returns a color object using the specified opacity and RGB component values. /// </summary> /// <param name="red">The red component of the color object, specified as a value from 0.0 to 1.0.</param> /// <param name="green">The green component of the color object, specified as a value from 0.0 to 1.0.</param> /// <param name="blue">The blue component of the color object, specified as a value from 0.0 to 1.0.</param> /// <param name="alpha">The opacity value of the color object, specified as a value from 0.0 to 1.0.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public UIColor(CGFloat red, CGFloat green, CGFloat blue, CGFloat alpha, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Initializes and returns a color object using the specified Quartz color reference. /// </summary> /// <param name="CGColor">A reference to a Quartz color.</param> [iOSVersion(2)] public UIColor(CGColor CGColor) { } /// <summary> /// Initializes and returns a color object using the specified Quartz color reference. /// </summary> /// <param name="patternImage">The image to use when creating the pattern color.</param> [iOSVersion(2)] public UIColor(UIImage patternImage) { } /// <summary> /// Initializes and returns a color object using the specified Core Image color. /// </summary> /// <param name="CIColor">The Core Image color to convert.</param> [iOSVersion(5)] public UIColor(CIColor CIColor) { } /// <summary> /// Returns a color object whose grayscale value is 0.0 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("blackColor")] public virtual static UIColor BlackColor() { return default(UIColor); } /// <summary> /// Returns a color object whose grayscale value is 1/3 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("darkGrayColor")] public virtual static UIColor DarkGrayColor() { return default(UIColor); } /// <summary> /// Returns a color object whose grayscale value is 2/3 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("lightGrayColor")] public virtual static UIColor LightGrayColor() { return default(UIColor); } /// <summary> /// Returns a color object whose grayscale value is 1.0 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("whiteColor")] public virtual static UIColor WhiteColor() { return default(UIColor); } /// <summary> /// Returns a color object whose grayscale value is 0.5 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("grayColor")] public virtual static UIColor GrayColor() { return default(UIColor); } /// <summary> /// Returns a color object whose RGB values are 1.0, 0.0, and 0.0 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("redColor")] public virtual static UIColor RedColor() { return default(UIColor); } /// <summary> /// Returns a color object whose RGB values are 0.0, 1.0, and 0.0 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("greenColor")] public virtual static UIColor GreenColor() { return default(UIColor); } /// <summary> /// Returns a color object whose RGB values are 0.0, 0.0, and 1.0 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("blueColor")] public virtual static UIColor BlueColor() { return default(UIColor); } /// <summary> /// Returns a color object whose RGB values are 0.0, 1.0, and 1.0 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("cyanColor")] public virtual static UIColor CyanColor() { return default(UIColor); } /// <summary> /// Returns a color object whose RGB values are 1.0, 1.0, and 0.0 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("yellowColor")] public virtual static UIColor YellowColor() { return default(UIColor); } /// <summary> /// Returns a color object whose RGB values are 1.0, 0.0, and 1.0 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("magentaColor")] public virtual static UIColor MagentaColor() { return default(UIColor); } /// <summary> /// Returns a color object whose RGB values are 1.0, 0.5, and 0.0 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("orangeColor")] public virtual static UIColor OrangeColor() { return default(UIColor); } /// <summary> /// Returns a color object whose RGB values are 0.5, 0.0, and 0.5 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("purpleColor")] public virtual static UIColor PurpleColor() { return default(UIColor); } /// <summary> /// Returns a color object whose RGB values are 0.6, 0.4, and 0.2 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("brownColor")] public virtual static UIColor BrownColor() { return default(UIColor); } /// <summary> /// Returns a color object whose grayscale and alpha values are both 0.0. /// </summary> [iOSVersion(2)] [Export("clearColor")] public virtual static UIColor ClearColor() { return default(UIColor); } /// <summary> /// Returns the system color used for displaying text on a dark background. /// </summary> [iOSVersion(2)] [Export("lightTextColor")] public virtual static UIColor LightTextColor() { return default(UIColor); } /// <summary> /// Returns the system color used for displaying text on a light background. /// </summary> [iOSVersion(2)] [Export("darkTextColor")] public virtual static UIColor DarkTextColor() { return default(UIColor); } /// <summary> /// Returns the system color used for the background of a grouped table. /// </summary> [iOSVersion(2)] [Export("groupTableViewBackgroundColor")] public virtual static UIColor GroupTableViewBackgroundColor() { return default(UIColor); } /// <summary> /// Returns the components that make up the color in the HSB color space. /// </summary> /// <param name="hue">On return, the hue component of the color object, specified as a value between 0.0 and 1.0.</param> /// <param name="saturation">On return, the saturation component of the color object, specified as a value between 0.0 and 1.0.</param> /// <param name="brightness">On return, the brightness component of the color object, specified as a value between 0.0 and 1.0.</param> /// <param name="alpha">On return, the opacity component of the color object, specified as a value between 0.0 and 1.0.</param> [iOSVersion(5)] [Export("getHue")] public virtual bool GetHue(UnsafeMutablePointer<CGFloat> hue, UnsafeMutablePointer<CGFloat> saturation, UnsafeMutablePointer<CGFloat> brightness, UnsafeMutablePointer<CGFloat> alpha) { return default(bool); } /// <summary> /// Returns the components that make up the color in the RGB color space. /// </summary> /// <param name="red">On return, the red component of the color object, specified as a value between 0.0 and 1.0.</param> /// <param name="green">On return, the green component of the color object, specified as a value between 0.0 and 1.0.</param> /// <param name="blue">On return, the blue component of the color object, specified as a value between 0.0 and 1.0.</param> /// <param name="alpha">On return, the opacity component of the color object, specified as a value between 0.0 and 1.0.</param> [iOSVersion(5)] [Export("getRed")] public virtual bool GetRed(UnsafeMutablePointer<CGFloat> red, UnsafeMutablePointer<CGFloat> green, UnsafeMutablePointer<CGFloat> blue, UnsafeMutablePointer<CGFloat> alpha) { return default(bool); } /// <summary> /// Returns the grayscale components of the color. /// </summary> /// <param name="white">On return, the grayscale component of the color object, specified as a value between 0.0 and 1.0.</param> /// <param name="alpha">On return, the opacity component of the color object, specified as a value between 0.0 and 1.0.</param> [iOSVersion(5)] [Export("getWhite")] public virtual bool GetWhite(UnsafeMutablePointer<CGFloat> white, UnsafeMutablePointer<CGFloat> alpha) { return default(bool); } /// <summary> /// Sets the color of subsequent stroke and fill operations to the color that the receiver represents. /// </summary> [iOSVersion(2)] [Export("set")] public virtual void Set() { } /// <summary> /// Sets the color of subsequent fill operations to the color that the receiver represents. /// </summary> [iOSVersion(2)] [Export("setFill")] public virtual void SetFill() { } /// <summary> /// Sets the color of subsequent stroke operations to the color that the receiver represents. /// </summary> [iOSVersion(2)] [Export("setStroke")] public virtual void SetStroke() { } /// <summary> /// The Quartz color reference that corresponds to the receiver’s color. (read-only) /// </summary> [iOSVersion(2)] public CGColor CGColor { get; private set; } /// <summary> /// The Core Image color associated with the receiver. (read-only) /// </summary> [iOSVersion(5)] public CIColor CIColor { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// A UIColor object represents color and sometimes opacity (alpha value). You can use UIColor objects to store color data, and during drawing you can use them to set the current fill and stroke colors. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIColor_Class/index.html#//apple_ref/occ/cl/UIColor"/> [iOSVersion(2)] public class UIColor : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol, NSSecureCoding { public UIColor() { } /// <summary> /// Creates and returns a color object that has the same color space and component values as the receiver, but has the specified alpha component. /// </summary> /// <param name="alpha">The opacity value of the new UIColor object.</param> [iOSVersion(2)] [Export("colorWithAlphaComponent")] public virtual UIColor ColorWithAlphaComponent(CGFloat alpha) { return default(UIColor); } /// <summary> /// Initializes and returns a color object using the specified opacity and grayscale values. /// </summary> /// <param name="white">The grayscale value of the color object, specified as a value from 0.0 to 1.0.</param> /// <param name="alpha">The opacity value of the color object, specified as a value from 0.0 to 1.0.</param> [iOSVersion(2)] public UIColor(CGFloat white, CGFloat alpha) { } /// <summary> /// Initializes and returns a color object using the specified opacity and HSB color space component values. /// </summary> /// <param name="hue">The hue component of the color object in the HSB color space, specified as a value from 0.0 to 1.0.</param> /// <param name="saturation">The saturation component of the color object in the HSB color space, specified as a value from 0.0 to 1.0.</param> /// <param name="brightness">The brightness (or value) component of the color object in the HSB color space, specified as a value from 0.0 to 1.0.</param> /// <param name="alpha">The opacity value of the color object, specified as a value from 0.0 to 1.0.</param> [iOSVersion(2)] public UIColor(CGFloat hue, CGFloat saturation, CGFloat brightness, CGFloat alpha) { } /// <summary> /// Initializes and returns a color object using the specified opacity and RGB component values. /// </summary> /// <param name="red">The red component of the color object, specified as a value from 0.0 to 1.0.</param> /// <param name="green">The green component of the color object, specified as a value from 0.0 to 1.0.</param> /// <param name="blue">The blue component of the color object, specified as a value from 0.0 to 1.0.</param> /// <param name="alpha">The opacity value of the color object, specified as a value from 0.0 to 1.0.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public UIColor(CGFloat red, CGFloat green, CGFloat blue, CGFloat alpha, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Initializes and returns a color object using the specified Quartz color reference. /// </summary> /// <param name="CGColor">A reference to a Quartz color.</param> [iOSVersion(2)] public UIColor(CGColor CGColor) { } /// <summary> /// Initializes and returns a color object using the specified Quartz color reference. /// </summary> /// <param name="patternImage">The image to use when creating the pattern color.</param> [iOSVersion(2)] public UIColor(UIImage patternImage) { } /// <summary> /// Initializes and returns a color object using the specified Core Image color. /// </summary> /// <param name="CIColor">The Core Image color to convert.</param> [iOSVersion(5)] public UIColor(CIColor CIColor) { } /// <summary> /// Returns a color object whose grayscale value is 0.0 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("blackColor")] public static UIColor BlackColor() { return default(UIColor); } /// <summary> /// Returns a color object whose grayscale value is 1/3 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("darkGrayColor")] public static UIColor DarkGrayColor() { return default(UIColor); } /// <summary> /// Returns a color object whose grayscale value is 2/3 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("lightGrayColor")] public static UIColor LightGrayColor() { return default(UIColor); } /// <summary> /// Returns a color object whose grayscale value is 1.0 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("whiteColor")] public static UIColor WhiteColor() { return default(UIColor); } /// <summary> /// Returns a color object whose grayscale value is 0.5 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("grayColor")] public static UIColor GrayColor() { return default(UIColor); } /// <summary> /// Returns a color object whose RGB values are 1.0, 0.0, and 0.0 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("redColor")] public static UIColor RedColor() { return default(UIColor); } /// <summary> /// Returns a color object whose RGB values are 0.0, 1.0, and 0.0 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("greenColor")] public static UIColor GreenColor() { return default(UIColor); } /// <summary> /// Returns a color object whose RGB values are 0.0, 0.0, and 1.0 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("blueColor")] public static UIColor BlueColor() { return default(UIColor); } /// <summary> /// Returns a color object whose RGB values are 0.0, 1.0, and 1.0 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("cyanColor")] public static UIColor CyanColor() { return default(UIColor); } /// <summary> /// Returns a color object whose RGB values are 1.0, 1.0, and 0.0 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("yellowColor")] public static UIColor YellowColor() { return default(UIColor); } /// <summary> /// Returns a color object whose RGB values are 1.0, 0.0, and 1.0 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("magentaColor")] public static UIColor MagentaColor() { return default(UIColor); } /// <summary> /// Returns a color object whose RGB values are 1.0, 0.5, and 0.0 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("orangeColor")] public static UIColor OrangeColor() { return default(UIColor); } /// <summary> /// Returns a color object whose RGB values are 0.5, 0.0, and 0.5 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("purpleColor")] public static UIColor PurpleColor() { return default(UIColor); } /// <summary> /// Returns a color object whose RGB values are 0.6, 0.4, and 0.2 and whose alpha value is 1.0. /// </summary> [iOSVersion(2)] [Export("brownColor")] public static UIColor BrownColor() { return default(UIColor); } /// <summary> /// Returns a color object whose grayscale and alpha values are both 0.0. /// </summary> [iOSVersion(2)] [Export("clearColor")] public static UIColor ClearColor() { return default(UIColor); } /// <summary> /// Returns the system color used for displaying text on a dark background. /// </summary> [iOSVersion(2)] [Export("lightTextColor")] public static UIColor LightTextColor() { return default(UIColor); } /// <summary> /// Returns the system color used for displaying text on a light background. /// </summary> [iOSVersion(2)] [Export("darkTextColor")] public static UIColor DarkTextColor() { return default(UIColor); } /// <summary> /// Returns the system color used for the background of a grouped table. /// </summary> [iOSVersion(2)] [Export("groupTableViewBackgroundColor")] public static UIColor GroupTableViewBackgroundColor() { return default(UIColor); } /// <summary> /// Returns the components that make up the color in the HSB color space. /// </summary> /// <param name="hue">On return, the hue component of the color object, specified as a value between 0.0 and 1.0.</param> /// <param name="saturation">On return, the saturation component of the color object, specified as a value between 0.0 and 1.0.</param> /// <param name="brightness">On return, the brightness component of the color object, specified as a value between 0.0 and 1.0.</param> /// <param name="alpha">On return, the opacity component of the color object, specified as a value between 0.0 and 1.0.</param> [iOSVersion(5)] [Export("getHue")] public virtual bool GetHue(UnsafeMutablePointer<CGFloat> hue, UnsafeMutablePointer<CGFloat> saturation, UnsafeMutablePointer<CGFloat> brightness, UnsafeMutablePointer<CGFloat> alpha) { return default(bool); } /// <summary> /// Returns the components that make up the color in the RGB color space. /// </summary> /// <param name="red">On return, the red component of the color object, specified as a value between 0.0 and 1.0.</param> /// <param name="green">On return, the green component of the color object, specified as a value between 0.0 and 1.0.</param> /// <param name="blue">On return, the blue component of the color object, specified as a value between 0.0 and 1.0.</param> /// <param name="alpha">On return, the opacity component of the color object, specified as a value between 0.0 and 1.0.</param> [iOSVersion(5)] [Export("getRed")] public virtual bool GetRed(UnsafeMutablePointer<CGFloat> red, UnsafeMutablePointer<CGFloat> green, UnsafeMutablePointer<CGFloat> blue, UnsafeMutablePointer<CGFloat> alpha) { return default(bool); } /// <summary> /// Returns the grayscale components of the color. /// </summary> /// <param name="white">On return, the grayscale component of the color object, specified as a value between 0.0 and 1.0.</param> /// <param name="alpha">On return, the opacity component of the color object, specified as a value between 0.0 and 1.0.</param> [iOSVersion(5)] [Export("getWhite")] public virtual bool GetWhite(UnsafeMutablePointer<CGFloat> white, UnsafeMutablePointer<CGFloat> alpha) { return default(bool); } /// <summary> /// Sets the color of subsequent stroke and fill operations to the color that the receiver represents. /// </summary> [iOSVersion(2)] [Export("set")] public virtual void Set() { } /// <summary> /// Sets the color of subsequent fill operations to the color that the receiver represents. /// </summary> [iOSVersion(2)] [Export("setFill")] public virtual void SetFill() { } /// <summary> /// Sets the color of subsequent stroke operations to the color that the receiver represents. /// </summary> [iOSVersion(2)] [Export("setStroke")] public virtual void SetStroke() { } /// <summary> /// The Quartz color reference that corresponds to the receiver’s color. (read-only) /// </summary> [iOSVersion(2)] public CGColor CGColor { get; private set; } /// <summary> /// The Core Image color associated with the receiver. (read-only) /// </summary> [iOSVersion(5)] public CIColor CIColor { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIControl.cs b/CocoaSharp/UIKit/UIControl.cs
index 15ff9ef6..f747420a 100644
--- a/CocoaSharp/UIKit/UIControl.cs
+++ b/CocoaSharp/UIKit/UIControl.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// UIControl is the base class for control objects such as buttons and sliders that convey user intent to the application. You cannot use the UIControl class directly to instantiate controls. It instead defines the common interface and behavioral structure for all its subclasses. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIControl_Class/index.html#//apple_ref/occ/cl/UIControl"/> [iOSVersion(2)] public class UIControl : UIView//, AnyObject, NSCoding, NSObjectProtocol, Reflectable, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UITraitEnvironment { public UIControl() { } /// <summary> /// In response to a given event, forwards an action message to the application object for dispatching to a target. /// </summary> /// <param name="action">A selector identifying an action message. It cannot be NULL.</param> /// <param name="to">The target object—that is, the object to which the action message is sent. If this is nil, the receiver traverses the responder chain and sends the action message to the first object willing to respond to it.</param> /// <param name="forEvent">An object representing the event (typically in a UIControl object) that originated the action message. The event can be nil if the action is invoked directly instead of being caused by an event. For example, a value-changed message might be sent for programmatic reasons rather than as a result of the user touching the control.</param> [iOSVersion(2)] [Export("sendAction")] public virtual void SendAction(Selector action, AnyObject to, UIEvent forEvent) { } /// <summary> /// Sends action messages for the given control events. /// </summary> /// <param name="controlEvents">A bitmask whose set flags specify the control events for which action messages are sent. See Control Events for bitmask constants.</param> [iOSVersion(2)] [Export("sendActionsForControlEvents")] public virtual void SendActionsForControlEvents(UIControlEvents controlEvents) { } /// <summary> /// Adds a target and action for a particular event (or events) to an internal dispatch table. /// </summary> /// <param name="target">The target object—that is, the object to which the action message is sent. If this is nil, the responder chain is searched for an object willing to respond to the action message.</param> /// <param name="action">A selector identifying an action message. It cannot be NULL.</param> /// <param name="forControlEvents">A bitmask specifying the control events for which the action message is sent. See Control Events for bitmask constants.</param> [iOSVersion(2)] [Export("addTarget")] public virtual void AddTarget(AnyObject target, Selector action, UIControlEvents forControlEvents) { } /// <summary> /// Removes a target and action for a particular event (or events) from an internal dispatch table. /// </summary> /// <param name="target">The target object—that is, the object to which the action message is sent. Pass nil to remove all targets paired with action and the specified control events.</param> /// <param name="action">A selector identifying an action message. Pass NULL to remove all action messages paired with target.</param> /// <param name="forControlEvents">A bitmask specifying the control events associated with target and action. See Control Events for bitmask constants.</param> [iOSVersion(2)] [Export("removeTarget")] public virtual void RemoveTarget(AnyObject target, Selector action, UIControlEvents forControlEvents) { } /// <summary> /// Returns the actions that are associated with a target and a particular control event. /// </summary> /// <param name="target">The target object—that is, the object to which an action message is sent. /// You must pass an explicit match for the target. Do not pass a value of nil.</param> /// <param name="forControlEvent">A single constant of type UIControlEvents that specifies a particular user action on the control; for a list of these constants, see Control Events.</param> [iOSVersion(2)] [Export("actionsForTarget")] public virtual AnyObject[] ActionsForTarget(AnyObject target, UIControlEvents forControlEvent) { return default(AnyObject[]); } /// <summary> /// Returns all target objects associated with the receiver. /// </summary> [iOSVersion(2)] [Export("allTargets")] public virtual NSSet AllTargets() { return default(NSSet); } /// <summary> /// Returns all control events associated with the receiver. /// </summary> [iOSVersion(2)] [Export("allControlEvents")] public virtual UIControlEvents AllControlEvents() { return default(UIControlEvents); } /// <summary> /// Sent to the control when a touch related to the given event enters the control’s bounds. /// </summary> /// <param name="touch">A UITouch object that represents a touch on the receiving control during tracking.</param> /// <param name="withEvent">An event object encapsulating the information specific to the user event.</param> [iOSVersion(2)] [Export("beginTrackingWithTouch")] public virtual bool BeginTrackingWithTouch(UITouch touch, UIEvent withEvent) { return default(bool); } /// <summary> /// Sent continuously to the control as it tracks a touch related to the given event within the control’s bounds. /// </summary> /// <param name="touch">A UITouch object that represents a touch on the receiving control during tracking.</param> /// <param name="withEvent">An event object encapsulating the information specific to the user event</param> [iOSVersion(2)] [Export("continueTrackingWithTouch")] public virtual bool ContinueTrackingWithTouch(UITouch touch, UIEvent withEvent) { return default(bool); } /// <summary> /// Sent to the control when the last touch for the given event completely ends, telling it to stop tracking. /// </summary> /// <param name="touches">A UITouch object that represents a touch on the receiving control during tracking.</param> /// <param name="withEvent">An event object encapsulating the information specific to the user event.</param> [iOSVersion(2)] [Export("endTrackingWithTouch")] public virtual void EndTrackingWithTouch(UITouch touches, UIEvent withEvent) { } /// <summary> /// Tells the control to cancel tracking related to the given event. /// </summary> /// <param name="event">An event object encapsulating the information specific to the user event. This parameter might be nil, indicating that the cancelation was caused by something other than an event, such as the view being removed from the window.</param> [iOSVersion(2)] [Export("cancelTrackingWithEvent")] public virtual void CancelTrackingWithEvent(UIEvent event) { } /// <summary> /// A bitmask value that indicates the state of the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("state")] public UIControlState State { get; private set; } /// <summary> /// A Boolean value that determines whether the receiver is enabled. /// </summary> [iOSVersion(2)] [Export("enabled")] public bool Enabled { get; set; } /// <summary> /// A Boolean value that determines the receiver’s selected state. /// </summary> [iOSVersion(2)] [Export("selected")] public bool Selected { get; set; } /// <summary> /// A Boolean value that determines whether the receiver is highlighted. /// </summary> [iOSVersion(2)] [Export("highlighted")] public bool Highlighted { get; set; } /// <summary> /// The vertical alignment of content (text or image) within the receiver. /// </summary> [iOSVersion(2)] [Export("contentVerticalAlignment")] public UIControlContentVerticalAlignment ContentVerticalAlignment { get; set; } /// <summary> /// The horizontal alignment of content (text or image) within the receiver. /// </summary> [iOSVersion(2)] [Export("contentHorizontalAlignment")] public UIControlContentHorizontalAlignment ContentHorizontalAlignment { get; set; } /// <summary> /// A Boolean value that indicates whether the receiver is currently tracking touches related to an event. (read-only) /// </summary> [iOSVersion(2)] [Export("tracking")] public bool Tracking { get; private set; } /// <summary> /// A Boolean value that indicates whether a touch is inside the bounds of the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("touchInside")] public bool TouchInside { get; private set; } } /// <summary> /// The type for the enum constants listed in Control Events. /// </summary> [iOSVersion(2)] public enum UIControlEvents { /// <summary> /// /// </summary> TouchDown, /// <summary> /// /// </summary> TouchDownRepeat, /// <summary> /// /// </summary> TouchDragInside, /// <summary> /// /// </summary> TouchDragOutside, /// <summary> /// /// </summary> TouchDragEnter, /// <summary> /// /// </summary> TouchDragExit, /// <summary> /// /// </summary> TouchUpInside, /// <summary> /// /// </summary> TouchUpOutside, /// <summary> /// /// </summary> TouchCancel, /// <summary> /// /// </summary> ValueChanged, /// <summary> /// /// </summary> EditingDidBegin, /// <summary> /// /// </summary> EditingChanged, /// <summary> /// /// </summary> EditingDidEnd, /// <summary> /// /// </summary> EditingDidEndOnExit, /// <summary> /// /// </summary> AllTouchEvents, /// <summary> /// /// </summary> AllEditingEvents, /// <summary> /// /// </summary> ApplicationReserved, /// <summary> /// /// </summary> SystemReserved, /// <summary> /// /// </summary> AllEvents, } /// <summary> /// The bit-mask type for control-state constants. /// </summary> [iOSVersion(2)] public enum UIControlState { /// <summary> /// /// </summary> Normal, /// <summary> /// /// </summary> Highlighted, /// <summary> /// /// </summary> Disabled, /// <summary> /// /// </summary> Selected, /// <summary> /// /// </summary> Application, /// <summary> /// /// </summary> Reserved, } /// <summary> /// Kinds of events possible for control objects. /// </summary> public enum UIControlEvents { /// <summary> /// A touch-down event in the control. /// </summary> [iOSVersion(2)] TouchDown, /// <summary> /// A repeated touch-down event in the control; for this event the value of the UITouch tapCount method is greater than one. /// </summary> [iOSVersion(2)] TouchDownRepeat, /// <summary> /// An event where a finger is dragged inside the bounds of the control. /// </summary> [iOSVersion(2)] TouchDragInside, /// <summary> /// An event where a finger is dragged just outside the bounds of the control. /// </summary> [iOSVersion(2)] TouchDragOutside, /// <summary> /// An event where a finger is dragged into the bounds of the control. /// </summary> [iOSVersion(2)] TouchDragEnter, /// <summary> /// An event where a finger is dragged from within a control to outside its bounds. /// </summary> [iOSVersion(2)] TouchDragExit, /// <summary> /// A touch-up event in the control where the finger is inside the bounds of the control. /// </summary> [iOSVersion(2)] TouchUpInside, /// <summary> /// A touch-up event in the control where the finger is outside the bounds of the control. /// </summary> [iOSVersion(2)] TouchUpOutside, /// <summary> /// A system event canceling the current touches for the control. /// </summary> [iOSVersion(2)] TouchCancel, /// <summary> /// A touch dragging or otherwise manipulating a control, causing it to emit a series of different values. /// </summary> [iOSVersion(2)] ValueChanged, /// <summary> /// A touch initiating an editing session in a UITextField object by entering its bounds. /// </summary> [iOSVersion(2)] EditingDidBegin, /// <summary> /// A touch making an editing change in a UITextField object. /// </summary> [iOSVersion(2)] EditingChanged, /// <summary> /// A touch ending an editing session in a UITextField object by leaving its bounds. /// </summary> [iOSVersion(2)] EditingDidEnd, /// <summary> /// A touch ending an editing session in a UITextField object. /// </summary> [iOSVersion(2)] EditingDidEndOnExit, /// <summary> /// All touch events. /// </summary> [iOSVersion(2)] AllTouchEvents, /// <summary> /// All editing touches for UITextField objects. /// </summary> [iOSVersion(2)] AllEditingEvents, /// <summary> /// A range of control-event values available for application use. /// </summary> [iOSVersion(2)] ApplicationReserved, /// <summary> /// A range of control-event values reserved for internal framework use. /// </summary> [iOSVersion(2)] SystemReserved, /// <summary> /// All events, including system events. /// </summary> [iOSVersion(2)] AllEvents, } /// <summary> /// The vertical alignment of content (text and images) within a control. /// </summary> [iOSVersion(2)] public enum UIControlContentVerticalAlignment { /// <summary> /// Aligns the content vertically in the center of the control. /// </summary> [iOSVersion(2)] Center, /// <summary> /// Aligns the content vertically at the top in the control (the default). /// </summary> [iOSVersion(2)] Top, /// <summary> /// Aligns the content vertically at the bottom in the control /// </summary> [iOSVersion(2)] Bottom, /// <summary> /// Aligns the content vertically to fill the content rectangle; images may be stretched. /// </summary> [iOSVersion(2)] Fill, } /// <summary> /// The horizontal alignment of content (text and images) within a control. /// </summary> [iOSVersion(2)] public enum UIControlContentHorizontalAlignment { /// <summary> /// Aligns the content horizontally in the center of the control. /// </summary> [iOSVersion(2)] Center, /// <summary> /// Aligns the content horizontally from the left of the control (the default). /// </summary> [iOSVersion(2)] Left, /// <summary> /// Aligns the content horizontally from the right of the control /// </summary> [iOSVersion(2)] Right, /// <summary> /// Aligns the content horizontally to fill the content rectangles; text may wrap and images may be stretched. /// </summary> [iOSVersion(2)] Fill, } /// <summary> /// The state of a control; a control can have more than one state at a time. States are recognized differently depending on the control. For example, a UIButton instance may be configured (using the setImage:forState: method) to display one image when it is in its normal state and a different image when it is highlighted. /// </summary> public enum UIControlState { /// <summary> /// The normal, or default state of a control—that is, enabled but neither selected nor highlighted. /// </summary> [iOSVersion(2)] Normal, /// <summary> /// Highlighted state of a control. A control enters this state when a touch enters and exits during tracking and when there is a touch up event. You can retrieve and set this value through the highlighted property. /// </summary> [iOSVersion(2)] Highlighted, /// <summary> /// Disabled state of a control. This state indicates that the control is currently disabled. You can retrieve and set this value through the enabled property. /// </summary> [iOSVersion(2)] Disabled, /// <summary> /// Selected state of a control. For many controls, this state has no effect on behavior or appearance. But other subclasses (for example, the UISegmentedControl class) may have different appearance depending on their selected state. You can retrieve and set this value through the selected property. /// </summary> [iOSVersion(2)] Selected, /// <summary> /// Additional control-state flags available for application use. /// </summary> [iOSVersion(2)] Application, /// <summary> /// Control-state flags reserved for internal framework use. /// </summary> [iOSVersion(2)] Reserved, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// UIControl is the base class for control objects such as buttons and sliders that convey user intent to the application. You cannot use the UIControl class directly to instantiate controls. It instead defines the common interface and behavioral structure for all its subclasses. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIControl_Class/index.html#//apple_ref/occ/cl/UIControl"/> [iOSVersion(2)] public class UIControl : UIView//, AnyObject, NSCoding, NSObjectProtocol, Reflectable, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UITraitEnvironment { public UIControl() { } /// <summary> /// In response to a given event, forwards an action message to the application object for dispatching to a target. /// </summary> /// <param name="action">A selector identifying an action message. It cannot be NULL.</param> /// <param name="to">The target object—that is, the object to which the action message is sent. If this is nil, the receiver traverses the responder chain and sends the action message to the first object willing to respond to it.</param> /// <param name="forEvent">An object representing the event (typically in a UIControl object) that originated the action message. The event can be nil if the action is invoked directly instead of being caused by an event. For example, a value-changed message might be sent for programmatic reasons rather than as a result of the user touching the control.</param> [iOSVersion(2)] [Export("sendAction")] public virtual void SendAction(Selector action, AnyObject to, UIEvent forEvent) { } /// <summary> /// Sends action messages for the given control events. /// </summary> /// <param name="controlEvents">A bitmask whose set flags specify the control events for which action messages are sent. See Control Events for bitmask constants.</param> [iOSVersion(2)] [Export("sendActionsForControlEvents")] public virtual void SendActionsForControlEvents(UIControlEvents controlEvents) { } /// <summary> /// Adds a target and action for a particular event (or events) to an internal dispatch table. /// </summary> /// <param name="target">The target object—that is, the object to which the action message is sent. If this is nil, the responder chain is searched for an object willing to respond to the action message.</param> /// <param name="action">A selector identifying an action message. It cannot be NULL.</param> /// <param name="forControlEvents">A bitmask specifying the control events for which the action message is sent. See Control Events for bitmask constants.</param> [iOSVersion(2)] [Export("addTarget")] public virtual void AddTarget(AnyObject target, Selector action, UIControlEvents forControlEvents) { } /// <summary> /// Removes a target and action for a particular event (or events) from an internal dispatch table. /// </summary> /// <param name="target">The target object—that is, the object to which the action message is sent. Pass nil to remove all targets paired with action and the specified control events.</param> /// <param name="action">A selector identifying an action message. Pass NULL to remove all action messages paired with target.</param> /// <param name="forControlEvents">A bitmask specifying the control events associated with target and action. See Control Events for bitmask constants.</param> [iOSVersion(2)] [Export("removeTarget")] public virtual void RemoveTarget(AnyObject target, Selector action, UIControlEvents forControlEvents) { } /// <summary> /// Returns the actions that are associated with a target and a particular control event. /// </summary> /// <param name="target">The target object—that is, the object to which an action message is sent. /// You must pass an explicit match for the target. Do not pass a value of nil.</param> /// <param name="forControlEvent">A single constant of type UIControlEvents that specifies a particular user action on the control; for a list of these constants, see Control Events.</param> [iOSVersion(2)] [Export("actionsForTarget")] public virtual AnyObject[] ActionsForTarget(AnyObject target, UIControlEvents forControlEvent) { return default(AnyObject[]); } /// <summary> /// Returns all target objects associated with the receiver. /// </summary> [iOSVersion(2)] [Export("allTargets")] public virtual NSSet AllTargets() { return default(NSSet); } /// <summary> /// Returns all control events associated with the receiver. /// </summary> [iOSVersion(2)] [Export("allControlEvents")] public virtual UIControlEvents AllControlEvents() { return default(UIControlEvents); } /// <summary> /// Sent to the control when a touch related to the given event enters the control’s bounds. /// </summary> /// <param name="touch">A UITouch object that represents a touch on the receiving control during tracking.</param> /// <param name="withEvent">An event object encapsulating the information specific to the user event.</param> [iOSVersion(2)] [Export("beginTrackingWithTouch")] public virtual bool BeginTrackingWithTouch(UITouch touch, UIEvent withEvent) { return default(bool); } /// <summary> /// Sent continuously to the control as it tracks a touch related to the given event within the control’s bounds. /// </summary> /// <param name="touch">A UITouch object that represents a touch on the receiving control during tracking.</param> /// <param name="withEvent">An event object encapsulating the information specific to the user event</param> [iOSVersion(2)] [Export("continueTrackingWithTouch")] public virtual bool ContinueTrackingWithTouch(UITouch touch, UIEvent withEvent) { return default(bool); } /// <summary> /// Sent to the control when the last touch for the given event completely ends, telling it to stop tracking. /// </summary> /// <param name="touches">A UITouch object that represents a touch on the receiving control during tracking.</param> /// <param name="withEvent">An event object encapsulating the information specific to the user event.</param> [iOSVersion(2)] [Export("endTrackingWithTouch")] public virtual void EndTrackingWithTouch(UITouch touches, UIEvent withEvent) { } /// <summary> /// Tells the control to cancel tracking related to the given event. /// </summary> /// <param name="event">An event object encapsulating the information specific to the user event. This parameter might be nil, indicating that the cancelation was caused by something other than an event, such as the view being removed from the window.</param> [iOSVersion(2)] [Export("cancelTrackingWithEvent")] public virtual void CancelTrackingWithEvent(UIEvent @event) { } /// <summary> /// A bitmask value that indicates the state of the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("state")] public UIControlState State { get; private set; } /// <summary> /// A Boolean value that determines whether the receiver is enabled. /// </summary> [iOSVersion(2)] [Export("enabled")] public bool Enabled { get; set; } /// <summary> /// A Boolean value that determines the receiver’s selected state. /// </summary> [iOSVersion(2)] [Export("selected")] public bool Selected { get; set; } /// <summary> /// A Boolean value that determines whether the receiver is highlighted. /// </summary> [iOSVersion(2)] [Export("highlighted")] public bool Highlighted { get; set; } /// <summary> /// The vertical alignment of content (text or image) within the receiver. /// </summary> [iOSVersion(2)] [Export("contentVerticalAlignment")] public UIControlContentVerticalAlignment ContentVerticalAlignment { get; set; } /// <summary> /// The horizontal alignment of content (text or image) within the receiver. /// </summary> [iOSVersion(2)] [Export("contentHorizontalAlignment")] public UIControlContentHorizontalAlignment ContentHorizontalAlignment { get; set; } /// <summary> /// A Boolean value that indicates whether the receiver is currently tracking touches related to an event. (read-only) /// </summary> [iOSVersion(2)] [Export("tracking")] public bool Tracking { get; private set; } /// <summary> /// A Boolean value that indicates whether a touch is inside the bounds of the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("touchInside")] public bool TouchInside { get; private set; } } /// <summary> /// Kinds of events possible for control objects. /// </summary> public enum UIControlEvents { /// <summary> /// A touch-down event in the control. /// </summary> [iOSVersion(2)] TouchDown, /// <summary> /// A repeated touch-down event in the control; for this event the value of the UITouch tapCount method is greater than one. /// </summary> [iOSVersion(2)] TouchDownRepeat, /// <summary> /// An event where a finger is dragged inside the bounds of the control. /// </summary> [iOSVersion(2)] TouchDragInside, /// <summary> /// An event where a finger is dragged just outside the bounds of the control. /// </summary> [iOSVersion(2)] TouchDragOutside, /// <summary> /// An event where a finger is dragged into the bounds of the control. /// </summary> [iOSVersion(2)] TouchDragEnter, /// <summary> /// An event where a finger is dragged from within a control to outside its bounds. /// </summary> [iOSVersion(2)] TouchDragExit, /// <summary> /// A touch-up event in the control where the finger is inside the bounds of the control. /// </summary> [iOSVersion(2)] TouchUpInside, /// <summary> /// A touch-up event in the control where the finger is outside the bounds of the control. /// </summary> [iOSVersion(2)] TouchUpOutside, /// <summary> /// A system event canceling the current touches for the control. /// </summary> [iOSVersion(2)] TouchCancel, /// <summary> /// A touch dragging or otherwise manipulating a control, causing it to emit a series of different values. /// </summary> [iOSVersion(2)] ValueChanged, /// <summary> /// A touch initiating an editing session in a UITextField object by entering its bounds. /// </summary> [iOSVersion(2)] EditingDidBegin, /// <summary> /// A touch making an editing change in a UITextField object. /// </summary> [iOSVersion(2)] EditingChanged, /// <summary> /// A touch ending an editing session in a UITextField object by leaving its bounds. /// </summary> [iOSVersion(2)] EditingDidEnd, /// <summary> /// A touch ending an editing session in a UITextField object. /// </summary> [iOSVersion(2)] EditingDidEndOnExit, /// <summary> /// All touch events. /// </summary> [iOSVersion(2)] AllTouchEvents, /// <summary> /// All editing touches for UITextField objects. /// </summary> [iOSVersion(2)] AllEditingEvents, /// <summary> /// A range of control-event values available for application use. /// </summary> [iOSVersion(2)] ApplicationReserved, /// <summary> /// A range of control-event values reserved for internal framework use. /// </summary> [iOSVersion(2)] SystemReserved, /// <summary> /// All events, including system events. /// </summary> [iOSVersion(2)] AllEvents, } /// <summary> /// The vertical alignment of content (text and images) within a control. /// </summary> [iOSVersion(2)] public enum UIControlContentVerticalAlignment { /// <summary> /// Aligns the content vertically in the center of the control. /// </summary> [iOSVersion(2)] Center, /// <summary> /// Aligns the content vertically at the top in the control (the default). /// </summary> [iOSVersion(2)] Top, /// <summary> /// Aligns the content vertically at the bottom in the control /// </summary> [iOSVersion(2)] Bottom, /// <summary> /// Aligns the content vertically to fill the content rectangle; images may be stretched. /// </summary> [iOSVersion(2)] Fill, } /// <summary> /// The horizontal alignment of content (text and images) within a control. /// </summary> [iOSVersion(2)] public enum UIControlContentHorizontalAlignment { /// <summary> /// Aligns the content horizontally in the center of the control. /// </summary> [iOSVersion(2)] Center, /// <summary> /// Aligns the content horizontally from the left of the control (the default). /// </summary> [iOSVersion(2)] Left, /// <summary> /// Aligns the content horizontally from the right of the control /// </summary> [iOSVersion(2)] Right, /// <summary> /// Aligns the content horizontally to fill the content rectangles; text may wrap and images may be stretched. /// </summary> [iOSVersion(2)] Fill, } /// <summary> /// The state of a control; a control can have more than one state at a time. States are recognized differently depending on the control. For example, a UIButton instance may be configured (using the setImage:forState: method) to display one image when it is in its normal state and a different image when it is highlighted. /// </summary> public enum UIControlState { /// <summary> /// The normal, or default state of a control—that is, enabled but neither selected nor highlighted. /// </summary> [iOSVersion(2)] Normal, /// <summary> /// Highlighted state of a control. A control enters this state when a touch enters and exits during tracking and when there is a touch up event. You can retrieve and set this value through the highlighted property. /// </summary> [iOSVersion(2)] Highlighted, /// <summary> /// Disabled state of a control. This state indicates that the control is currently disabled. You can retrieve and set this value through the enabled property. /// </summary> [iOSVersion(2)] Disabled, /// <summary> /// Selected state of a control. For many controls, this state has no effect on behavior or appearance. But other subclasses (for example, the UISegmentedControl class) may have different appearance depending on their selected state. You can retrieve and set this value through the selected property. /// </summary> [iOSVersion(2)] Selected, /// <summary> /// Additional control-state flags available for application use. /// </summary> [iOSVersion(2)] Application, /// <summary> /// Control-state flags reserved for internal framework use. /// </summary> [iOSVersion(2)] Reserved, } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIDevice.cs b/CocoaSharp/UIKit/UIDevice.cs
index 2ce1cf4e..997cf3b0 100644
--- a/CocoaSharp/UIKit/UIDevice.cs
+++ b/CocoaSharp/UIKit/UIDevice.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIDevice class provides a singleton instance representing the current device. From this instance you can obtain information about the device such as assigned name, device model, and operating-system name and version. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDevice_Class/index.html#//apple_ref/occ/cl/UIDevice"/> [iOSVersion(2)] public class UIDevice : NSObject//, AnyObject, NSObjectProtocol { public UIDevice() { } /// <summary> /// Returns an object representing the current device. /// </summary> [iOSVersion(2)] [Export("currentDevice")] public virtual static UIDevice CurrentDevice() { return default(UIDevice); } /// <summary> /// Begins the generation of notifications of device orientation changes. /// </summary> [iOSVersion(2)] [Export("beginGeneratingDeviceOrientationNotifications")] public virtual void BeginGeneratingDeviceOrientationNotifications() { } /// <summary> /// Ends the generation of notifications of device orientation changes. /// </summary> [iOSVersion(2)] [Export("endGeneratingDeviceOrientationNotifications")] public virtual void EndGeneratingDeviceOrientationNotifications() { } /// <summary> /// Plays an input click in an enabled input view. /// </summary> [iOSVersion(4.2)] [Export("playInputClick")] public virtual void PlayInputClick() { } /// <summary> /// A Boolean value indicating whether multitasking is supported on the current device. (read-only) /// </summary> [iOSVersion(4)] [Export("multitaskingSupported")] public bool MultitaskingSupported { get; private set; } /// <summary> /// The name identifying the device. (read-only) /// </summary> [iOSVersion(2)] [Export("name")] public string Name { get; private set; } /// <summary> /// The name of the operating system running on the device represented by the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("systemName")] public string SystemName { get; private set; } /// <summary> /// The current version of the operating system. (read-only) /// </summary> [iOSVersion(2)] [Export("systemVersion")] public string SystemVersion { get; private set; } /// <summary> /// The model of the device. (read-only) /// </summary> [iOSVersion(2)] [Export("model")] public string Model { get; private set; } /// <summary> /// The model of the device as a localized string. (read-only) /// </summary> [iOSVersion(2)] [Export("localizedModel")] public string LocalizedModel { get; private set; } /// <summary> /// The style of interface to use on the current device. (read-only) /// </summary> [iOSVersion(3.2)] [Export("userInterfaceIdiom")] public UIUserInterfaceIdiom UserInterfaceIdiom { get; private set; } /// <summary> /// An alphanumeric string that uniquely identifies a device to the app’s vendor. (read-only) /// </summary> [iOSVersion(6)] [Export("identifierForVendor")] public NSUUID IdentifierForVendor { get; private set; } /// <summary> /// Returns the physical orientation of the device. (read-only) /// </summary> [iOSVersion(2)] [Export("orientation")] public UIDeviceOrientation Orientation { get; private set; } /// <summary> /// A Boolean value that indicates whether the receiver generates orientation notifications (true) or not (false). (read-only) /// </summary> [iOSVersion(2)] [Export("generatesDeviceOrientationNotifications")] public bool GeneratesDeviceOrientationNotifications { get; private set; } /// <summary> /// The battery charge level for the device. (read-only) /// </summary> [iOSVersion(3)] [Export("batteryLevel")] public float BatteryLevel { get; private set; } /// <summary> /// A Boolean value indicating whether battery monitoring is enabled (true) or not (false). /// </summary> [iOSVersion(3)] [Export("batteryMonitoringEnabled")] public bool BatteryMonitoringEnabled { get; set; } /// <summary> /// The battery state for the device. (read-only) /// </summary> [iOSVersion(3)] [Export("batteryState")] public UIDeviceBatteryState BatteryState { get; private set; } /// <summary> /// A Boolean value indicating whether proximity monitoring is enabled (true) or not (false). /// </summary> [iOSVersion(3)] [Export("proximityMonitoringEnabled")] public bool ProximityMonitoringEnabled { get; set; } /// <summary> /// A Boolean value indicating whether the proximity sensor is close to the user (true) or not (false). (read-only) /// </summary> [iOSVersion(3)] [Export("proximityState")] public bool ProximityState { get; private set; } } /// <summary> /// The battery power state of the device. /// </summary> [iOSVersion(3)] public enum UIDeviceBatteryState { /// <summary> /// The battery state for the device cannot be determined. /// </summary> [iOSVersion(3)] Unknown, /// <summary> /// The device is not plugged into power; the battery is discharging. /// </summary> [iOSVersion(3)] Unplugged, /// <summary> /// The device is plugged into power and the battery is less than 100% charged. /// </summary> [iOSVersion(3)] Charging, /// <summary> /// The device is plugged into power and the battery is 100% charged. /// </summary> [iOSVersion(3)] Full, } /// <summary> /// The physical orientation of the device. /// </summary> [iOSVersion(2)] public enum UIDeviceOrientation { /// <summary> /// The orientation of the device cannot be determined. /// </summary> [iOSVersion(2)] Unknown, /// <summary> /// The device is in portrait mode, with the device held upright and the home button at the bottom. /// </summary> [iOSVersion(2)] Portrait, /// <summary> /// The device is in portrait mode but upside down, with the device held upright and the home button at the top. /// </summary> [iOSVersion(2)] PortraitUpsideDown, /// <summary> /// The device is in landscape mode, with the device held upright and the home button on the right side. /// </summary> [iOSVersion(2)] LandscapeLeft, /// <summary> /// The device is in landscape mode, with the device held upright and the home button on the left side. /// </summary> [iOSVersion(2)] LandscapeRight, /// <summary> /// The device is held parallel to the ground with the screen facing upwards. /// </summary> [iOSVersion(2)] FaceUp, /// <summary> /// The device is held parallel to the ground with the screen facing downwards. /// </summary> [iOSVersion(2)] FaceDown, } /// <summary> /// The type of interface that should be used on the current device /// </summary> [iOSVersion(3.2)] public enum UIUserInterfaceIdiom { /// <summary> /// Used when an object has a trait collection, but it is not in an environment yet. For example, a view that is created, but not put into a view hierarchy. /// </summary> [iOSVersion(8)] Unspecified, /// <summary> /// The user interface should be designed for iPhone and iPod touch. /// </summary> [iOSVersion(3.2)] Phone, /// <summary> /// The user interface should be designed for iPad. /// </summary> [iOSVersion(3.2)] Pad, } /// <summary> /// For this notification to be sent, you must set the batteryMonitoringEnabled property to true. /// </summary> [iOSVersion(3)] public class UIDeviceBatteryLevelDidChangeNotification : NSNotification { public UIDeviceBatteryLevelDidChangeNotification() : base("", null) { } } /// <summary> /// For this notification to be sent, you must set the batteryMonitoringEnabled property to true. /// </summary> [iOSVersion(3)] public class UIDeviceBatteryStateDidChangeNotification : NSNotification { public UIDeviceBatteryStateDidChangeNotification() : base("", null) { } } /// <summary> /// You can obtain the new orientation by getting the value of the orientation property. /// </summary> [iOSVersion(2)] public class UIDeviceOrientationDidChangeNotification : NSNotification { public UIDeviceOrientationDidChangeNotification() : base("", null) { } } /// <summary> /// You can obtain the proximity state by getting the value of the proximityState property. /// </summary> [iOSVersion(3)] public class UIDeviceProximityStateDidChangeNotification : NSNotification { public UIDeviceProximityStateDidChangeNotification() : base("", null) { } } } \ 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 UIDevice class provides a singleton instance representing the current device. From this instance you can obtain information about the device such as assigned name, device model, and operating-system name and version. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDevice_Class/index.html#//apple_ref/occ/cl/UIDevice"/> [iOSVersion(2)] public class UIDevice : NSObject//, AnyObject, NSObjectProtocol { public UIDevice() { } /// <summary> /// Returns an object representing the current device. /// </summary> [iOSVersion(2)] [Export("currentDevice")] public static UIDevice CurrentDevice() { return default(UIDevice); } /// <summary> /// Begins the generation of notifications of device orientation changes. /// </summary> [iOSVersion(2)] [Export("beginGeneratingDeviceOrientationNotifications")] public virtual void BeginGeneratingDeviceOrientationNotifications() { } /// <summary> /// Ends the generation of notifications of device orientation changes. /// </summary> [iOSVersion(2)] [Export("endGeneratingDeviceOrientationNotifications")] public virtual void EndGeneratingDeviceOrientationNotifications() { } /// <summary> /// Plays an input click in an enabled input view. /// </summary> [iOSVersion(4.2)] [Export("playInputClick")] public virtual void PlayInputClick() { } /// <summary> /// A Boolean value indicating whether multitasking is supported on the current device. (read-only) /// </summary> [iOSVersion(4)] [Export("multitaskingSupported")] public bool MultitaskingSupported { get; private set; } /// <summary> /// The name identifying the device. (read-only) /// </summary> [iOSVersion(2)] [Export("name")] public string Name { get; private set; } /// <summary> /// The name of the operating system running on the device represented by the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("systemName")] public string SystemName { get; private set; } /// <summary> /// The current version of the operating system. (read-only) /// </summary> [iOSVersion(2)] [Export("systemVersion")] public string SystemVersion { get; private set; } /// <summary> /// The model of the device. (read-only) /// </summary> [iOSVersion(2)] [Export("model")] public string Model { get; private set; } /// <summary> /// The model of the device as a localized string. (read-only) /// </summary> [iOSVersion(2)] [Export("localizedModel")] public string LocalizedModel { get; private set; } /// <summary> /// The style of interface to use on the current device. (read-only) /// </summary> [iOSVersion(3.2)] [Export("userInterfaceIdiom")] public UIUserInterfaceIdiom UserInterfaceIdiom { get; private set; } /// <summary> /// An alphanumeric string that uniquely identifies a device to the app’s vendor. (read-only) /// </summary> [iOSVersion(6)] [Export("identifierForVendor")] public NSUUID IdentifierForVendor { get; private set; } /// <summary> /// Returns the physical orientation of the device. (read-only) /// </summary> [iOSVersion(2)] [Export("orientation")] public UIDeviceOrientation Orientation { get; private set; } /// <summary> /// A Boolean value that indicates whether the receiver generates orientation notifications (true) or not (false). (read-only) /// </summary> [iOSVersion(2)] [Export("generatesDeviceOrientationNotifications")] public bool GeneratesDeviceOrientationNotifications { get; private set; } /// <summary> /// The battery charge level for the device. (read-only) /// </summary> [iOSVersion(3)] [Export("batteryLevel")] public float BatteryLevel { get; private set; } /// <summary> /// A Boolean value indicating whether battery monitoring is enabled (true) or not (false). /// </summary> [iOSVersion(3)] [Export("batteryMonitoringEnabled")] public bool BatteryMonitoringEnabled { get; set; } /// <summary> /// The battery state for the device. (read-only) /// </summary> [iOSVersion(3)] [Export("batteryState")] public UIDeviceBatteryState BatteryState { get; private set; } /// <summary> /// A Boolean value indicating whether proximity monitoring is enabled (true) or not (false). /// </summary> [iOSVersion(3)] [Export("proximityMonitoringEnabled")] public bool ProximityMonitoringEnabled { get; set; } /// <summary> /// A Boolean value indicating whether the proximity sensor is close to the user (true) or not (false). (read-only) /// </summary> [iOSVersion(3)] [Export("proximityState")] public bool ProximityState { get; private set; } } /// <summary> /// The battery power state of the device. /// </summary> [iOSVersion(3)] public enum UIDeviceBatteryState { /// <summary> /// The battery state for the device cannot be determined. /// </summary> [iOSVersion(3)] Unknown, /// <summary> /// The device is not plugged into power; the battery is discharging. /// </summary> [iOSVersion(3)] Unplugged, /// <summary> /// The device is plugged into power and the battery is less than 100% charged. /// </summary> [iOSVersion(3)] Charging, /// <summary> /// The device is plugged into power and the battery is 100% charged. /// </summary> [iOSVersion(3)] Full, } /// <summary> /// The physical orientation of the device. /// </summary> [iOSVersion(2)] public enum UIDeviceOrientation { /// <summary> /// The orientation of the device cannot be determined. /// </summary> [iOSVersion(2)] Unknown, /// <summary> /// The device is in portrait mode, with the device held upright and the home button at the bottom. /// </summary> [iOSVersion(2)] Portrait, /// <summary> /// The device is in portrait mode but upside down, with the device held upright and the home button at the top. /// </summary> [iOSVersion(2)] PortraitUpsideDown, /// <summary> /// The device is in landscape mode, with the device held upright and the home button on the right side. /// </summary> [iOSVersion(2)] LandscapeLeft, /// <summary> /// The device is in landscape mode, with the device held upright and the home button on the left side. /// </summary> [iOSVersion(2)] LandscapeRight, /// <summary> /// The device is held parallel to the ground with the screen facing upwards. /// </summary> [iOSVersion(2)] FaceUp, /// <summary> /// The device is held parallel to the ground with the screen facing downwards. /// </summary> [iOSVersion(2)] FaceDown, } /// <summary> /// The type of interface that should be used on the current device /// </summary> [iOSVersion(3.2)] public enum UIUserInterfaceIdiom { /// <summary> /// Used when an object has a trait collection, but it is not in an environment yet. For example, a view that is created, but not put into a view hierarchy. /// </summary> [iOSVersion(8)] Unspecified, /// <summary> /// The user interface should be designed for iPhone and iPod touch. /// </summary> [iOSVersion(3.2)] Phone, /// <summary> /// The user interface should be designed for iPad. /// </summary> [iOSVersion(3.2)] Pad, } /// <summary> /// For this notification to be sent, you must set the batteryMonitoringEnabled property to true. /// </summary> [iOSVersion(3)] public class UIDeviceBatteryLevelDidChangeNotification : NSNotification { public UIDeviceBatteryLevelDidChangeNotification() : base("", null) { } } /// <summary> /// For this notification to be sent, you must set the batteryMonitoringEnabled property to true. /// </summary> [iOSVersion(3)] public class UIDeviceBatteryStateDidChangeNotification : NSNotification { public UIDeviceBatteryStateDidChangeNotification() : base("", null) { } } /// <summary> /// You can obtain the new orientation by getting the value of the orientation property. /// </summary> [iOSVersion(2)] public class UIDeviceOrientationDidChangeNotification : NSNotification { public UIDeviceOrientationDidChangeNotification() : base("", null) { } } /// <summary> /// You can obtain the proximity state by getting the value of the proximityState property. /// </summary> [iOSVersion(3)] public class UIDeviceProximityStateDidChangeNotification : NSNotification { public UIDeviceProximityStateDidChangeNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIFont.cs b/CocoaSharp/UIKit/UIFont.cs
index 52d8105e..a80a8d1d 100644
--- a/CocoaSharp/UIKit/UIFont.cs
+++ b/CocoaSharp/UIKit/UIFont.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIFont class provides the interface for getting and setting font information. The class provides you with access to the font’s characteristics and also provides the system with access to the font’s glyph information, which is used during layout. You use font objects by passing them to methods that accept them as a parameter. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIFont_Class/index.html#//apple_ref/occ/cl/UIFont"/> [iOSVersion(2)] public class UIFont : NSObject//, AnyObject, NSCopying, NSObjectProtocol { public UIFont() { } /// <summary> /// Returns an instance of the font associated with the text style and scaled appropriately for the user's selected content size category. /// </summary> /// <param name="style">The text style for which to return a font. See &quot;Text Styles” in UIFontDescriptor Class Reference for recognized values.</param> [iOSVersion(7)] [Export("preferredFontForTextStyle")] public virtual static UIFont PreferredFontForTextStyle(string style) { return default(UIFont); } /// <summary> /// Creates and returns a font object for the specified font name and size. /// </summary> /// <param name="name">The fully specified name of the font. This name incorporates both the font family name and the specific style information for the font.</param> /// <param name="size">The size (in points) to which the font is scaled. This value must be greater than 0.0.</param> [iOSVersion(2)] public UIFont(string name, CGFloat size) { } /// <summary> /// Returns a font object that is the same as the receiver but which has the specified size instead. /// </summary> /// <param name="fontSize">The desired size (in points) of the new font object. This value must be greater than 0.0.</param> [iOSVersion(2)] [Export("fontWithSize")] public virtual UIFont FontWithSize(CGFloat fontSize) { return default(UIFont); } /// <summary> /// Returns the font object used for standard interface items in the specified size. /// </summary> /// <param name="fontSize">The size (in points) to which the font is scaled. This value must be greater than 0.0.</param> [iOSVersion(2)] [Export("systemFontOfSize")] public virtual static UIFont SystemFontOfSize(CGFloat fontSize) { return default(UIFont); } /// <summary> /// Returns the font object used for standard interface items that are rendered in boldface type in the specified size. /// </summary> /// <param name="fontSize">The size (in points) to which the font is scaled. This value must be greater than 0.0.</param> [iOSVersion(2)] [Export("boldSystemFontOfSize")] public virtual static UIFont BoldSystemFontOfSize(CGFloat fontSize) { return default(UIFont); } /// <summary> /// Returns the font object used for standard interface items that are rendered in italic type in the specified size. /// </summary> /// <param name="fontSize">The size (in points) to which the font is scaled. This value must be greater than 0.0.</param> [iOSVersion(2)] [Export("italicSystemFontOfSize")] public virtual static UIFont ItalicSystemFontOfSize(CGFloat fontSize) { return default(UIFont); } /// <summary> /// Returns an array of font family names available on the system. /// </summary> [iOSVersion(2)] [Export("familyNames")] public virtual static AnyObject[] FamilyNames() { return default(AnyObject[]); } /// <summary> /// Returns an array of font names available in a particular font family. /// </summary> /// <param name="familyName">The name of the font family. Use the familyNames method to get an array of the available font family names on the system.</param> [iOSVersion(2)] [Export("fontNamesForFamilyName")] public virtual static AnyObject[] FontNamesForFamilyName(string familyName) { return default(AnyObject[]); } /// <summary> /// Returns the standard font size used for labels. /// </summary> [iOSVersion(2)] [Export("labelFontSize")] public virtual static CGFloat LabelFontSize() { return default(CGFloat); } /// <summary> /// Returns the standard font size used for buttons. /// </summary> [iOSVersion(2)] [Export("buttonFontSize")] public virtual static CGFloat ButtonFontSize() { return default(CGFloat); } /// <summary> /// Returns the size of the standard small system font. /// </summary> [iOSVersion(2)] [Export("smallSystemFontSize")] public virtual static CGFloat SmallSystemFontSize() { return default(CGFloat); } /// <summary> /// Returns the size of the standard system font. /// </summary> [iOSVersion(2)] [Export("systemFontSize")] public virtual static CGFloat SystemFontSize() { return default(CGFloat); } /// <summary> /// Returns a font descriptor that describes the font. /// </summary> [iOSVersion(7)] [Export("fontDescriptor")] public virtual UIFontDescriptor FontDescriptor() { return default(UIFontDescriptor); } /// <summary> /// Returns a font matching the given font descriptor. /// </summary> /// <param name="descriptor">The font descriptor to match.</param> /// <param name="size">The size in points to which the font is scaled. If greater than 0.0, it has precedence over UIFontDescriptorSizeAttribute in descriptor.</param> [iOSVersion(7)] public UIFont(UIFontDescriptor descriptor, CGFloat size) { } /// <summary> /// The font family name. (read-only) /// </summary> [iOSVersion(2)] [Export("familyName")] public string FamilyName { get; private set; } /// <summary> /// The font face name. (read-only) /// </summary> [iOSVersion(2)] [Export("fontName")] public string FontName { get; private set; } /// <summary> /// The receiver’s point size, or the effective vertical point size for a font with a nonstandard matrix. (read-only) /// </summary> [iOSVersion(2)] [Export("pointSize")] public CGFloat PointSize { get; private set; } /// <summary> /// The top y-coordinate, offset from the baseline, of the receiver’s longest ascender. (read-only) /// </summary> [iOSVersion(2)] [Export("ascender")] public CGFloat Ascender { get; private set; } /// <summary> /// The bottom y-coordinate, offset from the baseline, of the receiver’s longest descender. (read-only) /// </summary> [iOSVersion(2)] [Export("descender")] public CGFloat Descender { get; private set; } /// <summary> /// The receiver’s leading information. (read-only) /// </summary> [iOSVersion(2)] [Export("leading")] public CGFloat Leading { get; private set; } /// <summary> /// The receiver’s cap height information. (read-only) /// </summary> [iOSVersion(2)] [Export("capHeight")] public CGFloat CapHeight { get; private set; } /// <summary> /// The x-height of the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("xHeight")] public CGFloat XHeight { get; private set; } /// <summary> /// The height of text lines (measured in points). (read-only) /// </summary> [iOSVersion(4)] [Export("lineHeight")] public CGFloat LineHeight { get; private set; } } } \ 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 UIFont class provides the interface for getting and setting font information. The class provides you with access to the font’s characteristics and also provides the system with access to the font’s glyph information, which is used during layout. You use font objects by passing them to methods that accept them as a parameter. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIFont_Class/index.html#//apple_ref/occ/cl/UIFont"/> [iOSVersion(2)] public class UIFont : NSObject//, AnyObject, NSCopying, NSObjectProtocol { public UIFont() { } /// <summary> /// Returns an instance of the font associated with the text style and scaled appropriately for the user's selected content size category. /// </summary> /// <param name="style">The text style for which to return a font. See &quot;Text Styles” in UIFontDescriptor Class Reference for recognized values.</param> [iOSVersion(7)] [Export("preferredFontForTextStyle")] public static UIFont PreferredFontForTextStyle(string style) { return default(UIFont); } /// <summary> /// Creates and returns a font object for the specified font name and size. /// </summary> /// <param name="name">The fully specified name of the font. This name incorporates both the font family name and the specific style information for the font.</param> /// <param name="size">The size (in points) to which the font is scaled. This value must be greater than 0.0.</param> [iOSVersion(2)] public UIFont(string name, CGFloat size) { } /// <summary> /// Returns a font object that is the same as the receiver but which has the specified size instead. /// </summary> /// <param name="fontSize">The desired size (in points) of the new font object. This value must be greater than 0.0.</param> [iOSVersion(2)] [Export("fontWithSize")] public virtual UIFont FontWithSize(CGFloat fontSize) { return default(UIFont); } /// <summary> /// Returns the font object used for standard interface items in the specified size. /// </summary> /// <param name="fontSize">The size (in points) to which the font is scaled. This value must be greater than 0.0.</param> [iOSVersion(2)] [Export("systemFontOfSize")] public static UIFont SystemFontOfSize(CGFloat fontSize) { return default(UIFont); } /// <summary> /// Returns the font object used for standard interface items that are rendered in boldface type in the specified size. /// </summary> /// <param name="fontSize">The size (in points) to which the font is scaled. This value must be greater than 0.0.</param> [iOSVersion(2)] [Export("boldSystemFontOfSize")] public static UIFont BoldSystemFontOfSize(CGFloat fontSize) { return default(UIFont); } /// <summary> /// Returns the font object used for standard interface items that are rendered in italic type in the specified size. /// </summary> /// <param name="fontSize">The size (in points) to which the font is scaled. This value must be greater than 0.0.</param> [iOSVersion(2)] [Export("italicSystemFontOfSize")] public static UIFont ItalicSystemFontOfSize(CGFloat fontSize) { return default(UIFont); } /// <summary> /// Returns an array of font family names available on the system. /// </summary> [iOSVersion(2)] [Export("familyNames")] public static AnyObject[] FamilyNames() { return default(AnyObject[]); } /// <summary> /// Returns an array of font names available in a particular font family. /// </summary> /// <param name="familyName">The name of the font family. Use the familyNames method to get an array of the available font family names on the system.</param> [iOSVersion(2)] [Export("fontNamesForFamilyName")] public static AnyObject[] FontNamesForFamilyName(string familyName) { return default(AnyObject[]); } /// <summary> /// Returns the standard font size used for labels. /// </summary> [iOSVersion(2)] [Export("labelFontSize")] public static CGFloat LabelFontSize() { return default(CGFloat); } /// <summary> /// Returns the standard font size used for buttons. /// </summary> [iOSVersion(2)] [Export("buttonFontSize")] public static CGFloat ButtonFontSize() { return default(CGFloat); } /// <summary> /// Returns the size of the standard small system font. /// </summary> [iOSVersion(2)] [Export("smallSystemFontSize")] public static CGFloat SmallSystemFontSize() { return default(CGFloat); } /// <summary> /// Returns the size of the standard system font. /// </summary> [iOSVersion(2)] [Export("systemFontSize")] public static CGFloat SystemFontSize() { return default(CGFloat); } /// <summary> /// Returns a font descriptor that describes the font. /// </summary> [iOSVersion(7)] [Export("fontDescriptor")] public virtual UIFontDescriptor FontDescriptor() { return default(UIFontDescriptor); } /// <summary> /// Returns a font matching the given font descriptor. /// </summary> /// <param name="descriptor">The font descriptor to match.</param> /// <param name="size">The size in points to which the font is scaled. If greater than 0.0, it has precedence over UIFontDescriptorSizeAttribute in descriptor.</param> [iOSVersion(7)] public UIFont(UIFontDescriptor descriptor, CGFloat size) { } /// <summary> /// The font family name. (read-only) /// </summary> [iOSVersion(2)] [Export("familyName")] public string FamilyName { get; private set; } /// <summary> /// The font face name. (read-only) /// </summary> [iOSVersion(2)] [Export("fontName")] public string FontName { get; private set; } /// <summary> /// The receiver’s point size, or the effective vertical point size for a font with a nonstandard matrix. (read-only) /// </summary> [iOSVersion(2)] [Export("pointSize")] public CGFloat PointSize { get; private set; } /// <summary> /// The top y-coordinate, offset from the baseline, of the receiver’s longest ascender. (read-only) /// </summary> [iOSVersion(2)] [Export("ascender")] public CGFloat Ascender { get; private set; } /// <summary> /// The bottom y-coordinate, offset from the baseline, of the receiver’s longest descender. (read-only) /// </summary> [iOSVersion(2)] [Export("descender")] public CGFloat Descender { get; private set; } /// <summary> /// The receiver’s leading information. (read-only) /// </summary> [iOSVersion(2)] [Export("leading")] public CGFloat Leading { get; private set; } /// <summary> /// The receiver’s cap height information. (read-only) /// </summary> [iOSVersion(2)] [Export("capHeight")] public CGFloat CapHeight { get; private set; } /// <summary> /// The x-height of the receiver. (read-only) /// </summary> [iOSVersion(2)] [Export("xHeight")] public CGFloat XHeight { get; private set; } /// <summary> /// The height of text lines (measured in points). (read-only) /// </summary> [iOSVersion(4)] [Export("lineHeight")] public CGFloat LineHeight { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIFontDescriptor.cs b/CocoaSharp/UIKit/UIFontDescriptor.cs
index 2038fc44..7e6a788f 100644
--- a/CocoaSharp/UIKit/UIFontDescriptor.cs
+++ b/CocoaSharp/UIKit/UIFontDescriptor.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// UIFontDescriptor objects provide a mechanism to describe a font with a dictionary of attributes. This font descriptor can be used later to create or modify a UIFont object. Font descriptors can be archived and unarchived. Font descriptors have a font matching capability, so that you can partially describe a font by creating a font descriptor with, for example, just a family name. You can then find all the available fonts on the system with a matching family name using matchingFontDescriptorsWithMandatoryKeys:. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIFontDescriptor_Class/index.html#//apple_ref/occ/cl/UIFontDescriptor"/> [iOSVersion(7)] public class UIFontDescriptor : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol { public UIFontDescriptor() { } /// <summary> /// Returns a font descriptor containing the given text style and the user's selected content size category. /// </summary> /// <param name="style">The text style for which to return a font descriptor. See Text Styles for valid values.</param> [iOSVersion(7)] [Export("preferredFontDescriptorWithTextStyle")] public virtual static UIFontDescriptor PreferredFontDescriptorWithTextStyle(string style) { return default(UIFontDescriptor); } /// <summary> /// Returns a font descriptor with the UIFontDescriptorNameAttribute and UIFontDescriptorMatrixAttribute dictionary attributes set to the given values. /// </summary> /// <param name="name">The value for UIFontDescriptorNameAttribute.</param> /// <param name="matrix">The value for UIFontDescriptorMatrixAttribute.</param> [iOSVersion(7)] public UIFontDescriptor(string name, CGAffineTransform matrix) { } /// <summary> /// Returns a font descriptor with the UIFontDescriptorNameAttribute and UIFontDescriptorSizeAttribute dictionary attributes set to the given values. /// </summary> /// <param name="name">The value for UIFontDescriptorNameAttribute.</param> /// <param name="size">The value for UIFontDescriptorSizeAttribute.</param> [iOSVersion(7)] public UIFontDescriptor(string name, CGFloat size) { } /// <summary> /// Returns a new font descriptor that is the same as the receiver but with the specified attributes taking precedence over the existing ones. /// </summary> /// <param name="attributes">The new attributes.</param> [iOSVersion(7)] [Export("fontDescriptorByAddingAttributes")] public virtual UIFontDescriptor FontDescriptorByAddingAttributes(Dictionary<NSObject, AnyObject> attributes) { return default(UIFontDescriptor); } /// <summary> /// Returns a new font descriptor that is the same as the receiver but with the specified face. /// </summary> /// <param name="newFace">The new font face.</param> [iOSVersion(7)] [Export("fontDescriptorWithFace")] public virtual UIFontDescriptor FontDescriptorWithFace(string newFace) { return default(UIFontDescriptor); } /// <summary> /// Returns a new font descriptor whose attributes are the same as the receiver but from the specified family. /// </summary> /// <param name="newFamily">The new font family.</param> [iOSVersion(7)] [Export("fontDescriptorWithFamily")] public virtual UIFontDescriptor FontDescriptorWithFamily(string newFamily) { return default(UIFontDescriptor); } /// <summary> /// Returns a new font descriptor that is the same as the receiver but with the specified matrix. /// </summary> /// <param name="matrix">The new font matrix.</param> [iOSVersion(7)] [Export("fontDescriptorWithMatrix")] public virtual UIFontDescriptor FontDescriptorWithMatrix(CGAffineTransform matrix) { return default(UIFontDescriptor); } /// <summary> /// Returns a new font descriptor that is the same as the receiver but with the specified point size. /// </summary> /// <param name="newPointSize">The new point size.</param> [iOSVersion(7)] [Export("fontDescriptorWithSize")] public virtual UIFontDescriptor FontDescriptorWithSize(CGFloat newPointSize) { return default(UIFontDescriptor); } /// <summary> /// Returns a new font descriptor that is the same as the receiver but with the specified symbolic traits taking precedence over the existing ones. /// </summary> /// <param name="symbolicTraits">The new symbolic traits.</param> [iOSVersion(7)] [Export("fontDescriptorWithSymbolicTraits")] public virtual UIFontDescriptor FontDescriptorWithSymbolicTraits(UIFontDescriptorSymbolicTraits symbolicTraits) { return default(UIFontDescriptor); } /// <summary> /// Initializes and returns a new font descriptor with the specified attributes. /// </summary> /// <param name="fontAttributes">The attributes for the new font descriptor. If nil, the font descriptor’s attribute dictionary will be empty.</param> [iOSVersion(7)] public UIFontDescriptor(Dictionary<NSObject, AnyObject> fontAttributes) { } /// <summary> /// Returns all the fonts available on the system whose specified attributes match those of the receiver. /// </summary> /// <param name="mandatoryKeys">Keys that must be identical to be matched. Can be nil.</param> [iOSVersion(7)] [Export("matchingFontDescriptorsWithMandatoryKeys")] public virtual AnyObject[] MatchingFontDescriptorsWithMandatoryKeys(NSSet mandatoryKeys) { return default(AnyObject[]); } /// <summary> /// Returns the receiver’s dictionary of attributes. /// </summary> [iOSVersion(7)] [Export("fontAttributes")] public virtual Dictionary<NSObject, AnyObject> FontAttributes() { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns the font attribute specified by the given key. /// </summary> /// <param name="anAttribute">The font attribute key.</param> [iOSVersion(7)] [Export("objectForKey")] public virtual AnyObject ObjectForKey(string anAttribute) { return default(AnyObject); } /// <summary> /// The current transform matrix of the receiver. (read-only) /// </summary> [iOSVersion(7)] [Export("matrix")] public CGAffineTransform Matrix { get; private set; } /// <summary> /// The point size of the receiver. (read-only) /// </summary> [iOSVersion(7)] [Export("pointSize")] public CGFloat PointSize { get; private set; } /// <summary> /// The PostScript name of the receiver. (read-only) /// </summary> [iOSVersion(7)] [Export("postscriptName")] public string PostscriptName { get; private set; } /// <summary> /// A bit mask that describes the traits of the receiver. (read-only) /// </summary> [iOSVersion(7)] [Export("symbolicTraits")] public UIFontDescriptorSymbolicTraits SymbolicTraits { get; private set; } } /// <summary> /// UIFontDescriptorSymbolicTraits symbolically describes stylistic aspects of a font. The lower 16 bits represent the typeface, and the upper 16 bits describe appearance of the font. /// </summary> [iOSVersion(7)] public enum UIFontDescriptorSymbolicTraits { /// <summary> /// The font’s typestyle is italic. /// </summary> [iOSVersion(7)] TraitItalic, /// <summary> /// The font’s typestyle is boldface. /// </summary> [iOSVersion(7)] TraitBold, /// <summary> /// The font’s typestyle is expanded. Expanded and condensed traits are mutually exclusive. /// </summary> [iOSVersion(7)] TraitExpanded, /// <summary> /// The font’s typestyle is condensed. Expanded and condensed traits are mutually exclusive. /// </summary> [iOSVersion(7)] TraitCondensed, /// <summary> /// The font uses fixed-pitch glyphs if available. The font may have multiple glyph advances (many CJK glyphs contain two spaces). /// </summary> [iOSVersion(7)] TraitMonoSpace, /// <summary> /// The font uses vertical glyph variants and metrics. /// </summary> [iOSVersion(7)] TraitVertical, /// <summary> /// The font synthesizes appropriate attributes for user interface rendering, such as control titles, if necessary. /// </summary> [iOSVersion(7)] TraitUIOptimized, /// <summary> /// The font uses tighter leading values. /// </summary> [iOSVersion(7)] TraitTightLeading, /// <summary> /// The font uses looser leading values. /// </summary> [iOSVersion(7)] TraitLooseLeading, /// <summary> /// The font family class mask used to access UIFontDescriptorClass values. /// </summary> [iOSVersion(7)] ClassMask, /// <summary> /// The font has no design classification. /// </summary> [iOSVersion(7)] ClassUnknown, /// <summary> /// The font’s style is based on the Latin printing style of the 15th to 17th century. /// </summary> [iOSVersion(7)] ClassOldStyleSerifs, /// <summary> /// The font’s style is based on the Latin printing style of the 18th to 19th century. /// </summary> [iOSVersion(7)] ClassTransitionalSerifs, /// <summary> /// The font’s style is based on the Latin printing style of the 20th century. /// </summary> [iOSVersion(7)] ClassModernSerifs, /// <summary> /// The font’s style is a variation of the Oldstyle Serifs and the Transitional Serifs. /// </summary> [iOSVersion(7)] ClassClarendonSerifs, /// <summary> /// The font’s style is characterized by serifs with a square transition between the strokes and the serifs (no brackets). /// </summary> [iOSVersion(7)] ClassSlabSerifs, /// <summary> /// The font’s style includes serifs, but it expresses a design freedom that does not generally fit within the other serif design classifications. /// </summary> [iOSVersion(7)] ClassFreeformSerifs, /// <summary> /// The font’s style includes most basic letter forms (excluding Scripts and Ornamentals) that do not have serifs on the strokes. /// </summary> [iOSVersion(7)] ClassSansSerif, /// <summary> /// The font’s style includes highly decorated or stylized character shapes such as those typically used in headlines. /// </summary> [iOSVersion(7)] ClassOrnamentals, /// <summary> /// The font’s style is among those typefaces designed to simulate handwriting. /// </summary> [iOSVersion(7)] ClassScripts, /// <summary> /// The font’s style is generally design independent, making it suitable for special characters (icons, dingbats, technical symbols, and so on) that may be used equally well with any font. /// </summary> [iOSVersion(7)] ClassSymbolic, } /// <summary> /// UIFontDescriptorClass classifies certain stylistic qualities of the font. /// </summary> [iOSVersion(7)] public struct UIFontDescriptorClass { static public implicit operator UIFontDescriptorClass(int value) { return default(UIFontDescriptorClass); } static public implicit operator int(UIFontDescriptorClass value) { return default(int); } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// UIFontDescriptor objects provide a mechanism to describe a font with a dictionary of attributes. This font descriptor can be used later to create or modify a UIFont object. Font descriptors can be archived and unarchived. Font descriptors have a font matching capability, so that you can partially describe a font by creating a font descriptor with, for example, just a family name. You can then find all the available fonts on the system with a matching family name using matchingFontDescriptorsWithMandatoryKeys:. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIFontDescriptor_Class/index.html#//apple_ref/occ/cl/UIFontDescriptor"/> [iOSVersion(7)] public class UIFontDescriptor : NSObject//, AnyObject, NSCoding, NSCopying, NSObjectProtocol { public UIFontDescriptor() { } /// <summary> /// Returns a font descriptor containing the given text style and the user's selected content size category. /// </summary> /// <param name="style">The text style for which to return a font descriptor. See Text Styles for valid values.</param> [iOSVersion(7)] [Export("preferredFontDescriptorWithTextStyle")] public static UIFontDescriptor PreferredFontDescriptorWithTextStyle(string style) { return default(UIFontDescriptor); } /// <summary> /// Returns a font descriptor with the UIFontDescriptorNameAttribute and UIFontDescriptorMatrixAttribute dictionary attributes set to the given values. /// </summary> /// <param name="name">The value for UIFontDescriptorNameAttribute.</param> /// <param name="matrix">The value for UIFontDescriptorMatrixAttribute.</param> [iOSVersion(7)] public UIFontDescriptor(string name, CGAffineTransform matrix) { } /// <summary> /// Returns a font descriptor with the UIFontDescriptorNameAttribute and UIFontDescriptorSizeAttribute dictionary attributes set to the given values. /// </summary> /// <param name="name">The value for UIFontDescriptorNameAttribute.</param> /// <param name="size">The value for UIFontDescriptorSizeAttribute.</param> [iOSVersion(7)] public UIFontDescriptor(string name, CGFloat size) { } /// <summary> /// Returns a new font descriptor that is the same as the receiver but with the specified attributes taking precedence over the existing ones. /// </summary> /// <param name="attributes">The new attributes.</param> [iOSVersion(7)] [Export("fontDescriptorByAddingAttributes")] public virtual UIFontDescriptor FontDescriptorByAddingAttributes(Dictionary<NSObject, AnyObject> attributes) { return default(UIFontDescriptor); } /// <summary> /// Returns a new font descriptor that is the same as the receiver but with the specified face. /// </summary> /// <param name="newFace">The new font face.</param> [iOSVersion(7)] [Export("fontDescriptorWithFace")] public virtual UIFontDescriptor FontDescriptorWithFace(string newFace) { return default(UIFontDescriptor); } /// <summary> /// Returns a new font descriptor whose attributes are the same as the receiver but from the specified family. /// </summary> /// <param name="newFamily">The new font family.</param> [iOSVersion(7)] [Export("fontDescriptorWithFamily")] public virtual UIFontDescriptor FontDescriptorWithFamily(string newFamily) { return default(UIFontDescriptor); } /// <summary> /// Returns a new font descriptor that is the same as the receiver but with the specified matrix. /// </summary> /// <param name="matrix">The new font matrix.</param> [iOSVersion(7)] [Export("fontDescriptorWithMatrix")] public virtual UIFontDescriptor FontDescriptorWithMatrix(CGAffineTransform matrix) { return default(UIFontDescriptor); } /// <summary> /// Returns a new font descriptor that is the same as the receiver but with the specified point size. /// </summary> /// <param name="newPointSize">The new point size.</param> [iOSVersion(7)] [Export("fontDescriptorWithSize")] public virtual UIFontDescriptor FontDescriptorWithSize(CGFloat newPointSize) { return default(UIFontDescriptor); } /// <summary> /// Returns a new font descriptor that is the same as the receiver but with the specified symbolic traits taking precedence over the existing ones. /// </summary> /// <param name="symbolicTraits">The new symbolic traits.</param> [iOSVersion(7)] [Export("fontDescriptorWithSymbolicTraits")] public virtual UIFontDescriptor FontDescriptorWithSymbolicTraits(UIFontDescriptorSymbolicTraits symbolicTraits) { return default(UIFontDescriptor); } /// <summary> /// Initializes and returns a new font descriptor with the specified attributes. /// </summary> /// <param name="fontAttributes">The attributes for the new font descriptor. If nil, the font descriptor’s attribute dictionary will be empty.</param> [iOSVersion(7)] public UIFontDescriptor(Dictionary<NSObject, AnyObject> fontAttributes) { } /// <summary> /// Returns all the fonts available on the system whose specified attributes match those of the receiver. /// </summary> /// <param name="mandatoryKeys">Keys that must be identical to be matched. Can be nil.</param> [iOSVersion(7)] [Export("matchingFontDescriptorsWithMandatoryKeys")] public virtual AnyObject[] MatchingFontDescriptorsWithMandatoryKeys(NSSet mandatoryKeys) { return default(AnyObject[]); } /// <summary> /// Returns the receiver’s dictionary of attributes. /// </summary> [iOSVersion(7)] [Export("fontAttributes")] public virtual Dictionary<NSObject, AnyObject> FontAttributes() { return default(Dictionary<NSObject, AnyObject>); } /// <summary> /// Returns the font attribute specified by the given key. /// </summary> /// <param name="anAttribute">The font attribute key.</param> [iOSVersion(7)] [Export("objectForKey")] public virtual AnyObject ObjectForKey(string anAttribute) { return default(AnyObject); } /// <summary> /// The current transform matrix of the receiver. (read-only) /// </summary> [iOSVersion(7)] [Export("matrix")] public CGAffineTransform Matrix { get; private set; } /// <summary> /// The point size of the receiver. (read-only) /// </summary> [iOSVersion(7)] [Export("pointSize")] public CGFloat PointSize { get; private set; } /// <summary> /// The PostScript name of the receiver. (read-only) /// </summary> [iOSVersion(7)] [Export("postscriptName")] public string PostscriptName { get; private set; } /// <summary> /// A bit mask that describes the traits of the receiver. (read-only) /// </summary> [iOSVersion(7)] [Export("symbolicTraits")] public UIFontDescriptorSymbolicTraits SymbolicTraits { get; private set; } } /// <summary> /// UIFontDescriptorSymbolicTraits symbolically describes stylistic aspects of a font. The lower 16 bits represent the typeface, and the upper 16 bits describe appearance of the font. /// </summary> [iOSVersion(7)] public enum UIFontDescriptorSymbolicTraits { /// <summary> /// The font’s typestyle is italic. /// </summary> [iOSVersion(7)] TraitItalic, /// <summary> /// The font’s typestyle is boldface. /// </summary> [iOSVersion(7)] TraitBold, /// <summary> /// The font’s typestyle is expanded. Expanded and condensed traits are mutually exclusive. /// </summary> [iOSVersion(7)] TraitExpanded, /// <summary> /// The font’s typestyle is condensed. Expanded and condensed traits are mutually exclusive. /// </summary> [iOSVersion(7)] TraitCondensed, /// <summary> /// The font uses fixed-pitch glyphs if available. The font may have multiple glyph advances (many CJK glyphs contain two spaces). /// </summary> [iOSVersion(7)] TraitMonoSpace, /// <summary> /// The font uses vertical glyph variants and metrics. /// </summary> [iOSVersion(7)] TraitVertical, /// <summary> /// The font synthesizes appropriate attributes for user interface rendering, such as control titles, if necessary. /// </summary> [iOSVersion(7)] TraitUIOptimized, /// <summary> /// The font uses tighter leading values. /// </summary> [iOSVersion(7)] TraitTightLeading, /// <summary> /// The font uses looser leading values. /// </summary> [iOSVersion(7)] TraitLooseLeading, /// <summary> /// The font family class mask used to access UIFontDescriptorClass values. /// </summary> [iOSVersion(7)] ClassMask, /// <summary> /// The font has no design classification. /// </summary> [iOSVersion(7)] ClassUnknown, /// <summary> /// The font’s style is based on the Latin printing style of the 15th to 17th century. /// </summary> [iOSVersion(7)] ClassOldStyleSerifs, /// <summary> /// The font’s style is based on the Latin printing style of the 18th to 19th century. /// </summary> [iOSVersion(7)] ClassTransitionalSerifs, /// <summary> /// The font’s style is based on the Latin printing style of the 20th century. /// </summary> [iOSVersion(7)] ClassModernSerifs, /// <summary> /// The font’s style is a variation of the Oldstyle Serifs and the Transitional Serifs. /// </summary> [iOSVersion(7)] ClassClarendonSerifs, /// <summary> /// The font’s style is characterized by serifs with a square transition between the strokes and the serifs (no brackets). /// </summary> [iOSVersion(7)] ClassSlabSerifs, /// <summary> /// The font’s style includes serifs, but it expresses a design freedom that does not generally fit within the other serif design classifications. /// </summary> [iOSVersion(7)] ClassFreeformSerifs, /// <summary> /// The font’s style includes most basic letter forms (excluding Scripts and Ornamentals) that do not have serifs on the strokes. /// </summary> [iOSVersion(7)] ClassSansSerif, /// <summary> /// The font’s style includes highly decorated or stylized character shapes such as those typically used in headlines. /// </summary> [iOSVersion(7)] ClassOrnamentals, /// <summary> /// The font’s style is among those typefaces designed to simulate handwriting. /// </summary> [iOSVersion(7)] ClassScripts, /// <summary> /// The font’s style is generally design independent, making it suitable for special characters (icons, dingbats, technical symbols, and so on) that may be used equally well with any font. /// </summary> [iOSVersion(7)] ClassSymbolic, } /// <summary> /// UIFontDescriptorClass classifies certain stylistic qualities of the font. /// </summary> [iOSVersion(7)] public struct UIFontDescriptorClass { static public implicit operator UIFontDescriptorClass(int value) { return default(UIFontDescriptorClass); } static public implicit operator int(UIFontDescriptorClass value) { return default(int); } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIImage.cs b/CocoaSharp/UIKit/UIImage.cs
index 335da244..af0d0ebf 100644
--- a/CocoaSharp/UIKit/UIImage.cs
+++ b/CocoaSharp/UIKit/UIImage.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// A UIImage object is a high-level way to display image data. You can create images from files, from Quartz image objects, or from raw image data you receive. The UIImage class also offers several options for drawing images to the current graphics context using different blend modes and opacity values. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIImage_Class/index.html#//apple_ref/occ/cl/UIImage"/> [iOSVersion(2)] public class UIImage : NSObject//, AnyObject, NSCoding, NSObjectProtocol, NSSecureCoding, UIAccessibilityIdentification { public UIImage() { } /// <summary> /// Returns an image in the bundle that is compatible with the trait collection. /// </summary> /// <param name="named">The name of the image.</param> /// <param name="inBundle">The bundle the image file or asset catalog is located in, pass nil to use the main bundle.</param> /// <param name="compatibleWithTraitCollection">Traits that describe the desired image to retrieve, pass nil to use traits that describe the main screen.</param> [iOSVersion(8)] public UIImage(string named, NSBundle inBundle, UITraitCollection compatibleWithTraitCollection) { } /// <summary> /// Returns the image object associated with the specified filename. /// </summary> /// <param name="named">The name of the file. If this is the first time the image is being loaded, the method looks for an image with the specified name in the application’s main bundle.</param> [iOSVersion(2)] public UIImage(string named) { } /// <summary> /// Returns a new version of the image that uses the specified alignment insets. /// </summary> /// <param name="alignmentInsets">The alignment metadata to apply to the new image.</param> [iOSVersion(6)] [Export("imageWithAlignmentRectInsets")] public virtual UIImage ImageWithAlignmentRectInsets(UIEdgeInsets alignmentInsets) { return default(UIImage); } /// <summary> /// Creates and returns an animated image. /// </summary> /// <param name="name">The full or partial path to the file (sans suffix).</param> /// <param name="duration">The duration of the animation.</param> [iOSVersion(5)] [Export("animatedImageNamed")] public virtual static UIImage AnimatedImageNamed(string name, NSTimeInterval duration) { return default(UIImage); } /// <summary> /// Creates and returns an animated image from an existing set of images. /// </summary> /// <param name="images">An array of UIImage objects.</param> /// <param name="duration">The duration of the animation.</param> [iOSVersion(5)] [Export("animatedImageWithImages")] public virtual static UIImage AnimatedImageWithImages(AnyObject[] images, NSTimeInterval duration) { return default(UIImage); } /// <summary> /// Creates and returns an animated image with end caps. /// </summary> /// <param name="name">The full or partial path to the file (sans suffix).</param> /// <param name="capInsets">The values to use for the cap insets.</param> /// <param name="duration">The duration of the animation.</param> [iOSVersion(5)] [Export("animatedResizableImageNamed")] public virtual static UIImage AnimatedResizableImageNamed(string name, UIEdgeInsets capInsets, NSTimeInterval duration) { return default(UIImage); } /// <summary> /// Creates and returns a new image object with the specified cap values. /// </summary> /// <param name="leftCapWidth">The value to use for the left cap width. Specify 0 if you want the entire image to be horizontally stretchable. For a discussion of how a non-zero value affects the image, see the leftCapWidth property.</param> /// <param name="topCapHeight">The value to use for the top cap width. Specify 0 if you want the entire image to be vertically stretchable. For a discussion of how a non-zero value affects the image, see the topCapHeight property.</param> [iOSVersion(2)] [Export("stretchableImageWithLeftCapWidth")] public virtual UIImage StretchableImageWithLeftCapWidth(int leftCapWidth, int topCapHeight) { return default(UIImage); } /// <summary> /// Creates and returns a new image object with the specified cap insets. /// </summary> /// <param name="capInsets">The values to use for the cap insets.</param> [iOSVersion(5)] [Export("resizableImageWithCapInsets")] public virtual UIImage ResizableImageWithCapInsets(UIEdgeInsets capInsets) { return default(UIImage); } /// <summary> /// Creates and returns an animated image with end caps and a specific resizing mode. /// </summary> /// <param name="name">The full or partial path to the file (sans suffix).</param> /// <param name="capInsets">The values to use for the cap insets.</param> /// <param name="resizingMode">The mode with which the interior of the image is resized.</param> /// <param name="duration">The duration of the animation.</param> [iOSVersion(6)] [Export("animatedResizableImageNamed")] public virtual static UIImage AnimatedResizableImageNamed(string name, UIEdgeInsets capInsets, UIImageResizingMode resizingMode, NSTimeInterval duration) { return default(UIImage); } /// <summary> /// Creates and returns a new image object with the specified cap insets and options. /// </summary> /// <param name="capInsets">The values to use for the cap insets.</param> /// <param name="resizingMode">The mode with which the interior of the image is resized.</param> [iOSVersion(6)] [Export("resizableImageWithCapInsets")] public virtual UIImage ResizableImageWithCapInsets(UIEdgeInsets capInsets, UIImageResizingMode resizingMode) { return default(UIImage); } /// <summary> /// Creates and returns a new image object with the specified rendering mode. /// </summary> /// <param name="renderingMode">The rendering mode to use for the new image.</param> [iOSVersion(7)] [Export("imageWithRenderingMode")] public virtual UIImage ImageWithRenderingMode(UIImageRenderingMode renderingMode) { return default(UIImage); } /// <summary> /// Initializes and returns the image object with the contents of the specified file. /// </summary> /// <param name="contentsOfFile">The path to the file. This path should include the filename extension that identifies the type of the image data.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public UIImage(string contentsOfFile, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Initializes and returns the image object with the specified data. /// </summary> /// <param name="data">The data object containing the image data.</param> [iOSVersion(2)] public UIImage(NSData data) { } /// <summary> /// Initializes and returns the image object with the specified data and scale factor. /// </summary> /// <param name="data">The data object containing the image data.</param> /// <param name="scale">The scale factor to assume when interpreting the image data. Applying a scale factor of 1.0 results in an image whose size matches the pixel-based dimensions of the image. Applying a different scale factor changes the size of the image as reported by the size property.</param> [iOSVersion(6)] public UIImage(NSData data, CGFloat scale) { } /// <summary> /// Initializes and returns the image object with the specified Quartz image reference. /// </summary> /// <param name="CGImage">A Quartz image reference.</param> [iOSVersion(2)] public UIImage(CGImage CGImage) { } /// <summary> /// Initializes and returns an image object with the specified scale and orientation factors /// </summary> /// <param name="CGImage">The Quartz image object.</param> /// <param name="scale">The scale factor to assume when interpreting the image data. Applying a scale factor of 1.0 results in an image whose size matches the pixel-based dimensions of the image. Applying a different scale factor changes the size of the image as reported by the size property.</param> /// <param name="orientation">The orientation of the image data. You can use this parameter to specify any rotation factors applied to the image.</param> [iOSVersion(4)] public UIImage(CGImage CGImage, CGFloat scale, UIImageOrientation orientation) { } /// <summary> /// Initializes and returns an image object with the specified Core Image object. /// </summary> /// <param name="CIImage">The Core Image object.</param> [iOSVersion(5)] public UIImage(CIImage CIImage) { } /// <summary> /// Initializes and returns an image object with the specified Core Image object and properties. /// </summary> /// <param name="CIImage">The Core Image object.</param> /// <param name="scale">The scale factor to assume when interpreting the image data. Applying a scale factor of 1.0 results in an image whose size matches the pixel-based dimensions of the image. Applying a different scale factor changes the size of the image as reported by the size property.</param> /// <param name="orientation">The orientation of the image data. You can use this parameter to specify any rotation factors applied to the image.</param> [iOSVersion(6)] public UIImage(CIImage CIImage, CGFloat scale, UIImageOrientation orientation) { } /// <summary> /// Draws the image at the specified point in the current context. /// </summary> /// <param name="point">The point at which to draw the top-left corner of the image.</param> [iOSVersion(2)] [Export("drawAtPoint")] public virtual void DrawAtPoint(CGPoint point) { } /// <summary> /// Draws the entire image at the specified point using the custom compositing options. /// </summary> /// <param name="point">The point at which to draw the top-left corner of the image.</param> /// <param name="blendMode">The blend mode to use when compositing the image.</param> /// <param name="alpha">The desired opacity of the image, specified as a value between 0.0 and 1.0. A value of 0.0 renders the image totally transparent while 1.0 renders it fully opaque. Values larger than 1.0 are interpreted as 1.0.</param> [iOSVersion(2)] [Export("drawAtPoint")] public virtual void DrawAtPoint(CGPoint point, CGBlendMode blendMode, CGFloat alpha) { } /// <summary> /// Draws the entire image in the specified rectangle, scaling it as needed to fit. /// </summary> /// <param name="rect">The rectangle (in the coordinate system of the graphics context) in which to draw the image.</param> [iOSVersion(2)] [Export("drawInRect")] public virtual void DrawInRect(CGRect rect) { } /// <summary> /// Draws the entire image in the specified rectangle and using the specified compositing options. /// </summary> /// <param name="rect">The rectangle (in the coordinate system of the graphics context) in which to draw the image.</param> /// <param name="blendMode">The blend mode to use when compositing the image.</param> /// <param name="alpha">The desired opacity of the image, specified as a value between 0.0 and 1.0. A value of 0.0 renders the image totally transparent while 1.0 renders it fully opaque. Values larger than 1.0 are interpreted as 1.0.</param> [iOSVersion(2)] [Export("drawInRect")] public virtual void DrawInRect(CGRect rect, CGBlendMode blendMode, CGFloat alpha) { } /// <summary> /// Draws a tiled Quartz pattern using the receiver’s contents as the tile pattern. /// </summary> /// <param name="rect">The rectangle (in the coordinate system of the graphics context) in which to draw the image.</param> [iOSVersion(2)] [Export("drawAsPatternInRect")] public virtual void DrawAsPatternInRect(CGRect rect) { } /// <summary> /// The orientation of the receiver’s image. (read-only) /// </summary> [iOSVersion(2)] [Export("imageOrientation")] public UIImageOrientation ImageOrientation { get; private set; } /// <summary> /// The dimensions of the image in points, taking orientation into account. (read-only) /// </summary> [iOSVersion(2)] [Export("size")] public CGSize Size { get; private set; } /// <summary> /// The scale factor of the image. (read-only) /// </summary> [iOSVersion(4)] [Export("scale")] public CGFloat Scale { get; private set; } /// <summary> /// The resizing mode of the image. (read-only) /// </summary> [iOSVersion(6)] [Export("resizingMode")] public UIImageResizingMode ResizingMode { get; private set; } /// <summary> /// The underlying Quartz image data. (read-only) /// </summary> [iOSVersion(2)] public CGImage CGImage { get; private set; } /// <summary> /// The underlying Core Image data. (read-only) /// </summary> [iOSVersion(5)] public CIImage CIImage { get; private set; } /// <summary> /// For an animated image, this property holds the complete array of UIImage objects that make up the animation. (read-only) /// </summary> [iOSVersion(5)] [Export("images")] public AnyObject[] Images { get; private set; } /// <summary> /// Returns the time interval used to display an animated image. (read-only) /// </summary> [iOSVersion(5)] [Export("duration")] public NSTimeInterval Duration { get; private set; } /// <summary> /// The end-cap insets. (read-only) /// </summary> [iOSVersion(5)] [Export("capInsets")] public UIEdgeInsets CapInsets { get; private set; } /// <summary> /// The horizontal end-cap size. (read-only) /// </summary> [iOSVersion(2)] [Export("leftCapWidth")] public int LeftCapWidth { get; private set; } /// <summary> /// The vertical end-cap size. (read-only) /// </summary> [iOSVersion(2)] [Export("topCapHeight")] public int TopCapHeight { get; private set; } /// <summary> /// The alignment metadata used to position the image during layout. (read-only) /// </summary> [iOSVersion(6)] [Export("alignmentRectInsets")] public UIEdgeInsets AlignmentRectInsets { get; private set; } /// <summary> /// Returns a reference to the image asset the image is associated with. (read-only) /// </summary> [iOSVersion(8)] [Export("imageAsset")] public UIImageAsset ImageAsset { get; private set; } /// <summary> /// Returns the trait collection that describes the image. (read-only) /// </summary> [iOSVersion(8)] [Export("traitCollection")] public UITraitCollection TraitCollection { get; private set; } /// <summary> /// Determines how an image is rendered. (read-only) /// </summary> [iOSVersion(7)] [Export("renderingMode")] public UIImageRenderingMode RenderingMode { get; private set; } } /// <summary> /// Specifies the possible orientations of an image. /// </summary> [iOSVersion(2)] public enum UIImageOrientation { /// <summary> /// The default orientation of images. The image is drawn right-side up, as shown here. /// </summary> [iOSVersion(2)] Up, /// <summary> /// The image is rotated 180 degrees, as shown here. /// </summary> [iOSVersion(2)] Down, /// <summary> /// The image is rotated 90 degrees clockwise, as shown here. /// </summary> [iOSVersion(2)] Left, /// <summary> /// The image is rotated 90 degrees counterclockwise, as shown here. /// </summary> [iOSVersion(2)] Right, /// <summary> /// The image is drawn as a mirror version of an image drawn with the UIImageOrientationUp value. In other words, the image is flipped along its horizontal axis, as shown here. /// </summary> [iOSVersion(2)] UpMirrored, /// <summary> /// The image is drawn as a mirror version of an image drawn with the UIImageOrientationDown value. This is the equivalent to flipping an image in the “up” orientation along its horizontal axis and then rotating the image 180 degrees, as shown here. /// </summary> [iOSVersion(2)] DownMirrored, /// <summary> /// The image is drawn as a mirror version of an image drawn with the UIImageOrientationLeft value. This is the equivalent to flipping an image in the “up” orientation along its horizontal axis and then rotating the image 90 degrees counterclockwise, as shown here. /// </summary> [iOSVersion(2)] LeftMirrored, /// <summary> /// The image is drawn as a mirror version of an image drawn with the UIImageOrientationRight value. This is the equivalent to flipping an image in the “up” orientation along its horizontal axis and then rotating the image 90 degrees clockwise, as shown here. /// </summary> [iOSVersion(2)] RightMirrored, } /// <summary> /// Specifies the possible resizing modes for an image. /// </summary> [iOSVersion(6)] public enum UIImageResizingMode { /// <summary> /// The image is tiled when it is resized. In other words, the interior region of the original image will be repeated to fill in the interior region of the newly resized image. /// </summary> [iOSVersion(6)] Tile, /// <summary> /// The image is stretched when it is resized. In other words, the interior region of the original image will be scaled to fill in the interior region of the newly resized imaged. /// </summary> [iOSVersion(6)] Stretch, } /// <summary> /// Specifies the possible rendering modes for an image. /// </summary> [iOSVersion(7)] public enum UIImageRenderingMode { /// <summary> /// Use the default rendering mode for the context where the image is used. /// </summary> [iOSVersion(7)] Automatic, /// <summary> /// Always draw the original image, without treating it as a template. /// </summary> [iOSVersion(7)] AlwaysOriginal, /// <summary> /// Always draw the image as a template image, ignoring its color information. /// </summary> [iOSVersion(7)] AlwaysTemplate, } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// A UIImage object is a high-level way to display image data. You can create images from files, from Quartz image objects, or from raw image data you receive. The UIImage class also offers several options for drawing images to the current graphics context using different blend modes and opacity values. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIImage_Class/index.html#//apple_ref/occ/cl/UIImage"/> [iOSVersion(2)] public class UIImage : NSObject//, AnyObject, NSCoding, NSObjectProtocol, NSSecureCoding, UIAccessibilityIdentification { public UIImage() { } /// <summary> /// Returns an image in the bundle that is compatible with the trait collection. /// </summary> /// <param name="named">The name of the image.</param> /// <param name="inBundle">The bundle the image file or asset catalog is located in, pass nil to use the main bundle.</param> /// <param name="compatibleWithTraitCollection">Traits that describe the desired image to retrieve, pass nil to use traits that describe the main screen.</param> [iOSVersion(8)] public UIImage(string named, NSBundle inBundle, UITraitCollection compatibleWithTraitCollection) { } /// <summary> /// Returns the image object associated with the specified filename. /// </summary> /// <param name="named">The name of the file. If this is the first time the image is being loaded, the method looks for an image with the specified name in the application’s main bundle.</param> [iOSVersion(2)] public UIImage(string named) { } /// <summary> /// Returns a new version of the image that uses the specified alignment insets. /// </summary> /// <param name="alignmentInsets">The alignment metadata to apply to the new image.</param> [iOSVersion(6)] [Export("imageWithAlignmentRectInsets")] public virtual UIImage ImageWithAlignmentRectInsets(UIEdgeInsets alignmentInsets) { return default(UIImage); } /// <summary> /// Creates and returns an animated image. /// </summary> /// <param name="name">The full or partial path to the file (sans suffix).</param> /// <param name="duration">The duration of the animation.</param> [iOSVersion(5)] [Export("animatedImageNamed")] public static UIImage AnimatedImageNamed(string name, NSTimeInterval duration) { return default(UIImage); } /// <summary> /// Creates and returns an animated image from an existing set of images. /// </summary> /// <param name="images">An array of UIImage objects.</param> /// <param name="duration">The duration of the animation.</param> [iOSVersion(5)] [Export("animatedImageWithImages")] public static UIImage AnimatedImageWithImages(AnyObject[] images, NSTimeInterval duration) { return default(UIImage); } /// <summary> /// Creates and returns an animated image with end caps. /// </summary> /// <param name="name">The full or partial path to the file (sans suffix).</param> /// <param name="capInsets">The values to use for the cap insets.</param> /// <param name="duration">The duration of the animation.</param> [iOSVersion(5)] [Export("animatedResizableImageNamed")] public static UIImage AnimatedResizableImageNamed(string name, UIEdgeInsets capInsets, NSTimeInterval duration) { return default(UIImage); } /// <summary> /// Creates and returns a new image object with the specified cap values. /// </summary> /// <param name="leftCapWidth">The value to use for the left cap width. Specify 0 if you want the entire image to be horizontally stretchable. For a discussion of how a non-zero value affects the image, see the leftCapWidth property.</param> /// <param name="topCapHeight">The value to use for the top cap width. Specify 0 if you want the entire image to be vertically stretchable. For a discussion of how a non-zero value affects the image, see the topCapHeight property.</param> [iOSVersion(2)] [Export("stretchableImageWithLeftCapWidth")] public virtual UIImage StretchableImageWithLeftCapWidth(int leftCapWidth, int topCapHeight) { return default(UIImage); } /// <summary> /// Creates and returns a new image object with the specified cap insets. /// </summary> /// <param name="capInsets">The values to use for the cap insets.</param> [iOSVersion(5)] [Export("resizableImageWithCapInsets")] public virtual UIImage ResizableImageWithCapInsets(UIEdgeInsets capInsets) { return default(UIImage); } /// <summary> /// Creates and returns an animated image with end caps and a specific resizing mode. /// </summary> /// <param name="name">The full or partial path to the file (sans suffix).</param> /// <param name="capInsets">The values to use for the cap insets.</param> /// <param name="resizingMode">The mode with which the interior of the image is resized.</param> /// <param name="duration">The duration of the animation.</param> [iOSVersion(6)] [Export("animatedResizableImageNamed")] public static UIImage AnimatedResizableImageNamed(string name, UIEdgeInsets capInsets, UIImageResizingMode resizingMode, NSTimeInterval duration) { return default(UIImage); } /// <summary> /// Creates and returns a new image object with the specified cap insets and options. /// </summary> /// <param name="capInsets">The values to use for the cap insets.</param> /// <param name="resizingMode">The mode with which the interior of the image is resized.</param> [iOSVersion(6)] [Export("resizableImageWithCapInsets")] public virtual UIImage ResizableImageWithCapInsets(UIEdgeInsets capInsets, UIImageResizingMode resizingMode) { return default(UIImage); } /// <summary> /// Creates and returns a new image object with the specified rendering mode. /// </summary> /// <param name="renderingMode">The rendering mode to use for the new image.</param> [iOSVersion(7)] [Export("imageWithRenderingMode")] public virtual UIImage ImageWithRenderingMode(UIImageRenderingMode renderingMode) { return default(UIImage); } /// <summary> /// Initializes and returns the image object with the contents of the specified file. /// </summary> /// <param name="contentsOfFile">The path to the file. This path should include the filename extension that identifies the type of the image data.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [IgnoreParameter("NAME_YOUR_PARAMS")] public UIImage(string contentsOfFile, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Initializes and returns the image object with the specified data. /// </summary> /// <param name="data">The data object containing the image data.</param> [iOSVersion(2)] public UIImage(NSData data) { } /// <summary> /// Initializes and returns the image object with the specified data and scale factor. /// </summary> /// <param name="data">The data object containing the image data.</param> /// <param name="scale">The scale factor to assume when interpreting the image data. Applying a scale factor of 1.0 results in an image whose size matches the pixel-based dimensions of the image. Applying a different scale factor changes the size of the image as reported by the size property.</param> [iOSVersion(6)] public UIImage(NSData data, CGFloat scale) { } /// <summary> /// Initializes and returns the image object with the specified Quartz image reference. /// </summary> /// <param name="CGImage">A Quartz image reference.</param> [iOSVersion(2)] public UIImage(CGImage CGImage) { } /// <summary> /// Initializes and returns an image object with the specified scale and orientation factors /// </summary> /// <param name="CGImage">The Quartz image object.</param> /// <param name="scale">The scale factor to assume when interpreting the image data. Applying a scale factor of 1.0 results in an image whose size matches the pixel-based dimensions of the image. Applying a different scale factor changes the size of the image as reported by the size property.</param> /// <param name="orientation">The orientation of the image data. You can use this parameter to specify any rotation factors applied to the image.</param> [iOSVersion(4)] public UIImage(CGImage CGImage, CGFloat scale, UIImageOrientation orientation) { } /// <summary> /// Initializes and returns an image object with the specified Core Image object. /// </summary> /// <param name="CIImage">The Core Image object.</param> [iOSVersion(5)] public UIImage(CIImage CIImage) { } /// <summary> /// Initializes and returns an image object with the specified Core Image object and properties. /// </summary> /// <param name="CIImage">The Core Image object.</param> /// <param name="scale">The scale factor to assume when interpreting the image data. Applying a scale factor of 1.0 results in an image whose size matches the pixel-based dimensions of the image. Applying a different scale factor changes the size of the image as reported by the size property.</param> /// <param name="orientation">The orientation of the image data. You can use this parameter to specify any rotation factors applied to the image.</param> [iOSVersion(6)] public UIImage(CIImage CIImage, CGFloat scale, UIImageOrientation orientation) { } /// <summary> /// Draws the image at the specified point in the current context. /// </summary> /// <param name="point">The point at which to draw the top-left corner of the image.</param> [iOSVersion(2)] [Export("drawAtPoint")] public virtual void DrawAtPoint(CGPoint point) { } /// <summary> /// Draws the entire image at the specified point using the custom compositing options. /// </summary> /// <param name="point">The point at which to draw the top-left corner of the image.</param> /// <param name="blendMode">The blend mode to use when compositing the image.</param> /// <param name="alpha">The desired opacity of the image, specified as a value between 0.0 and 1.0. A value of 0.0 renders the image totally transparent while 1.0 renders it fully opaque. Values larger than 1.0 are interpreted as 1.0.</param> [iOSVersion(2)] [Export("drawAtPoint")] public virtual void DrawAtPoint(CGPoint point, CGBlendMode blendMode, CGFloat alpha) { } /// <summary> /// Draws the entire image in the specified rectangle, scaling it as needed to fit. /// </summary> /// <param name="rect">The rectangle (in the coordinate system of the graphics context) in which to draw the image.</param> [iOSVersion(2)] [Export("drawInRect")] public virtual void DrawInRect(CGRect rect) { } /// <summary> /// Draws the entire image in the specified rectangle and using the specified compositing options. /// </summary> /// <param name="rect">The rectangle (in the coordinate system of the graphics context) in which to draw the image.</param> /// <param name="blendMode">The blend mode to use when compositing the image.</param> /// <param name="alpha">The desired opacity of the image, specified as a value between 0.0 and 1.0. A value of 0.0 renders the image totally transparent while 1.0 renders it fully opaque. Values larger than 1.0 are interpreted as 1.0.</param> [iOSVersion(2)] [Export("drawInRect")] public virtual void DrawInRect(CGRect rect, CGBlendMode blendMode, CGFloat alpha) { } /// <summary> /// Draws a tiled Quartz pattern using the receiver’s contents as the tile pattern. /// </summary> /// <param name="rect">The rectangle (in the coordinate system of the graphics context) in which to draw the image.</param> [iOSVersion(2)] [Export("drawAsPatternInRect")] public virtual void DrawAsPatternInRect(CGRect rect) { } /// <summary> /// The orientation of the receiver’s image. (read-only) /// </summary> [iOSVersion(2)] [Export("imageOrientation")] public UIImageOrientation ImageOrientation { get; private set; } /// <summary> /// The dimensions of the image in points, taking orientation into account. (read-only) /// </summary> [iOSVersion(2)] [Export("size")] public CGSize Size { get; private set; } /// <summary> /// The scale factor of the image. (read-only) /// </summary> [iOSVersion(4)] [Export("scale")] public CGFloat Scale { get; private set; } /// <summary> /// The resizing mode of the image. (read-only) /// </summary> [iOSVersion(6)] [Export("resizingMode")] public UIImageResizingMode ResizingMode { get; private set; } /// <summary> /// The underlying Quartz image data. (read-only) /// </summary> [iOSVersion(2)] public CGImage CGImage { get; private set; } /// <summary> /// The underlying Core Image data. (read-only) /// </summary> [iOSVersion(5)] public CIImage CIImage { get; private set; } /// <summary> /// For an animated image, this property holds the complete array of UIImage objects that make up the animation. (read-only) /// </summary> [iOSVersion(5)] [Export("images")] public AnyObject[] Images { get; private set; } /// <summary> /// Returns the time interval used to display an animated image. (read-only) /// </summary> [iOSVersion(5)] [Export("duration")] public NSTimeInterval Duration { get; private set; } /// <summary> /// The end-cap insets. (read-only) /// </summary> [iOSVersion(5)] [Export("capInsets")] public UIEdgeInsets CapInsets { get; private set; } /// <summary> /// The horizontal end-cap size. (read-only) /// </summary> [iOSVersion(2)] [Export("leftCapWidth")] public int LeftCapWidth { get; private set; } /// <summary> /// The vertical end-cap size. (read-only) /// </summary> [iOSVersion(2)] [Export("topCapHeight")] public int TopCapHeight { get; private set; } /// <summary> /// The alignment metadata used to position the image during layout. (read-only) /// </summary> [iOSVersion(6)] [Export("alignmentRectInsets")] public UIEdgeInsets AlignmentRectInsets { get; private set; } /// <summary> /// Returns a reference to the image asset the image is associated with. (read-only) /// </summary> [iOSVersion(8)] [Export("imageAsset")] public UIImageAsset ImageAsset { get; private set; } /// <summary> /// Returns the trait collection that describes the image. (read-only) /// </summary> [iOSVersion(8)] [Export("traitCollection")] public UITraitCollection TraitCollection { get; private set; } /// <summary> /// Determines how an image is rendered. (read-only) /// </summary> [iOSVersion(7)] [Export("renderingMode")] public UIImageRenderingMode RenderingMode { get; private set; } } /// <summary> /// Specifies the possible orientations of an image. /// </summary> [iOSVersion(2)] public enum UIImageOrientation { /// <summary> /// The default orientation of images. The image is drawn right-side up, as shown here. /// </summary> [iOSVersion(2)] Up, /// <summary> /// The image is rotated 180 degrees, as shown here. /// </summary> [iOSVersion(2)] Down, /// <summary> /// The image is rotated 90 degrees clockwise, as shown here. /// </summary> [iOSVersion(2)] Left, /// <summary> /// The image is rotated 90 degrees counterclockwise, as shown here. /// </summary> [iOSVersion(2)] Right, /// <summary> /// The image is drawn as a mirror version of an image drawn with the UIImageOrientationUp value. In other words, the image is flipped along its horizontal axis, as shown here. /// </summary> [iOSVersion(2)] UpMirrored, /// <summary> /// The image is drawn as a mirror version of an image drawn with the UIImageOrientationDown value. This is the equivalent to flipping an image in the “up” orientation along its horizontal axis and then rotating the image 180 degrees, as shown here. /// </summary> [iOSVersion(2)] DownMirrored, /// <summary> /// The image is drawn as a mirror version of an image drawn with the UIImageOrientationLeft value. This is the equivalent to flipping an image in the “up” orientation along its horizontal axis and then rotating the image 90 degrees counterclockwise, as shown here. /// </summary> [iOSVersion(2)] LeftMirrored, /// <summary> /// The image is drawn as a mirror version of an image drawn with the UIImageOrientationRight value. This is the equivalent to flipping an image in the “up” orientation along its horizontal axis and then rotating the image 90 degrees clockwise, as shown here. /// </summary> [iOSVersion(2)] RightMirrored, } /// <summary> /// Specifies the possible resizing modes for an image. /// </summary> [iOSVersion(6)] public enum UIImageResizingMode { /// <summary> /// The image is tiled when it is resized. In other words, the interior region of the original image will be repeated to fill in the interior region of the newly resized image. /// </summary> [iOSVersion(6)] Tile, /// <summary> /// The image is stretched when it is resized. In other words, the interior region of the original image will be scaled to fill in the interior region of the newly resized imaged. /// </summary> [iOSVersion(6)] Stretch, } /// <summary> /// Specifies the possible rendering modes for an image. /// </summary> [iOSVersion(7)] public enum UIImageRenderingMode { /// <summary> /// Use the default rendering mode for the context where the image is used. /// </summary> [iOSVersion(7)] Automatic, /// <summary> /// Always draw the original image, without treating it as a template. /// </summary> [iOSVersion(7)] AlwaysOriginal, /// <summary> /// Always draw the image as a template image, ignoring its color information. /// </summary> [iOSVersion(7)] AlwaysTemplate, } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIImagePickerController.cs b/CocoaSharp/UIKit/UIImagePickerController.cs
index 6e99d30e..a9e5e6cd 100644
--- a/CocoaSharp/UIKit/UIImagePickerController.cs
+++ b/CocoaSharp/UIKit/UIImagePickerController.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIImagePickerController class manages customizable, system-supplied user interfaces for taking pictures and movies on supported devices, and for choosing saved images and movies for use in your app. An image picker controller manages user interactions and delivers the results of those interactions to a delegate object. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIImagePickerController_Class/index.html#//apple_ref/occ/cl/UIImagePickerController"/> [iOSVersion(2)] public class UIImagePickerController : UINavigationController//, AnyObject, NSCoding, NSExtensionRequestHandling, NSObjectProtocol, UIAppearanceContainer, UIContentContainer, UIStateRestoring, UITraitEnvironment { public UIImagePickerController() { } /// <summary> /// Returns an array of the available media types for the specified source type. /// </summary> /// <param name="sourceType">The source to use to pick an image.</param> [iOSVersion(3)] [Export("availableMediaTypesForSourceType")] public virtual static AnyObject[] AvailableMediaTypesForSourceType(UIImagePickerControllerSourceType sourceType) { return default(AnyObject[]); } /// <summary> /// Returns a Boolean value indicating whether the device supports picking media using the specified source type. /// </summary> /// <param name="sourceType">The source to use to pick an image or movie.</param> [iOSVersion(2)] [Export("isSourceTypeAvailable")] public virtual static bool IsSourceTypeAvailable(UIImagePickerControllerSourceType sourceType) { return default(bool); } /// <summary> /// Captures a still image using the camera. /// </summary> [iOSVersion(3.1)] [Export("takePicture")] public virtual void TakePicture() { } /// <summary> /// Starts video capture using the camera specified by the UIImagePickerControllerCameraDevice property. /// </summary> [iOSVersion(4)] [Export("startVideoCapture")] public virtual bool StartVideoCapture() { return default(bool); } /// <summary> /// Stops video capture. /// </summary> [iOSVersion(4)] [Export("stopVideoCapture")] public virtual void StopVideoCapture() { } /// <summary> /// Returns a Boolean value that indicates whether a given camera is available. /// </summary> /// <param name="cameraDevice">A UIImagePickerControllerCameraDevice constant indicating the camera whose availability you want to check.</param> [iOSVersion(4)] [Export("isCameraDeviceAvailable")] public virtual static bool IsCameraDeviceAvailable(UIImagePickerControllerCameraDevice cameraDevice) { return default(bool); } /// <summary> /// Returns an array of NSNumber objects indicating the capture modes supported by a given camera device. /// </summary> /// <param name="cameraDevice">A UIImagePickerControllerCameraDevice constant indicating the camera you want to interrogate.</param> [iOSVersion(4)] [Export("availableCaptureModesForCameraDevice")] public virtual static AnyObject[] AvailableCaptureModesForCameraDevice(UIImagePickerControllerCameraDevice cameraDevice) { return default(AnyObject[]); } /// <summary> /// Indicates whether a given camera has flash illumination capability. /// </summary> /// <param name="cameraDevice">A UIImagePickerControllerCameraDevice constant indicating the camera whose flash capability you want to know.</param> [iOSVersion(4)] [Export("isFlashAvailableForCameraDevice")] public virtual static bool IsFlashAvailableForCameraDevice(UIImagePickerControllerCameraDevice cameraDevice) { return default(bool); } /// <summary> /// The type of picker interface to be displayed by the controller. /// </summary> [iOSVersion(2)] [Export("sourceType")] public UIImagePickerControllerSourceType SourceType { get; set; } /// <summary> /// A Boolean value indicating whether the user is allowed to edit a selected still image or movie. /// </summary> [iOSVersion(3.1)] [Export("allowsEditing")] public bool AllowsEditing { get; set; } /// <summary> /// The image picker’s delegate object. /// </summary> [iOSVersion(2)] [Export("delegate")] public protocol<UIImagePickerControllerDelegate, UINavigationControllerDelegate> Delegate { get; set; } /// <summary> /// An array indicating the media types to be accessed by the media picker controller. /// </summary> [iOSVersion(3)] [Export("mediaTypes")] public AnyObject[] MediaTypes { get; set; } /// <summary> /// The video recording and transcoding quality. /// </summary> [iOSVersion(3.1)] [Export("videoQuality")] public UIImagePickerControllerQualityType VideoQuality { get; set; } /// <summary> /// The maximum duration, in seconds, for a video recording. /// </summary> [iOSVersion(3.1)] [Export("videoMaximumDuration")] public NSTimeInterval VideoMaximumDuration { get; set; } /// <summary> /// Indicates whether the image picker displays the default camera controls. /// </summary> [iOSVersion(3.1)] [Export("showsCameraControls")] public bool ShowsCameraControls { get; set; } /// <summary> /// The view to display on top of the default image picker interface. /// </summary> [iOSVersion(3.1)] [Export("cameraOverlayView")] public UIView CameraOverlayView { get; set; } /// <summary> /// The transform to apply to the camera’s preview image. /// </summary> [iOSVersion(3.1)] [Export("cameraViewTransform")] public CGAffineTransform CameraViewTransform { get; set; } /// <summary> /// The camera used by the image picker controller. /// </summary> [iOSVersion(4)] [Export("cameraDevice")] public UIImagePickerControllerCameraDevice CameraDevice { get; set; } /// <summary> /// The capture mode used by the camera. /// </summary> [iOSVersion(4)] [Export("cameraCaptureMode")] public UIImagePickerControllerCameraCaptureMode CameraCaptureMode { get; set; } /// <summary> /// The flash mode used by the active camera. /// </summary> [iOSVersion(4)] [Export("cameraFlashMode")] public UIImagePickerControllerCameraFlashMode CameraFlashMode { get; set; } } /// <summary> /// The source to use when picking an image or when determining available media types. /// </summary> [iOSVersion(2)] public enum UIImagePickerControllerSourceType { /// <summary> /// Specifies the device’s photo library as the source for the image picker controller. /// </summary> [iOSVersion(2)] PhotoLibrary, /// <summary> /// Specifies the device’s built-in camera as the source for the image picker controller. Indicate the specific camera you want (front or rear, as available) by using the cameraDevice property. /// </summary> [iOSVersion(2)] Camera, /// <summary> /// Specifies the device’s Camera Roll album as the source for the image picker controller. If the device does not have a camera, specifies the Saved Photos album as the source. /// </summary> [iOSVersion(2)] SavedPhotosAlbum, } /// <summary> /// Video quality settings for movies recorded with the built-in camera, or transcoded by displaying in the image picker. /// </summary> [iOSVersion(3.1)] public enum UIImagePickerControllerQualityType { /// <summary> /// If recording, specifies that you want to use the highest-quality video recording supported for the active camera on the device. /// Recorded files are suitable for on-device playback and for wired transfer to the Desktop using Image Capture; they are likely to be too large for transfer using Wi-Fi. /// If displaying a recorded movie in the image picker, specifies that you do not want to reduce the video quality of the movie. /// </summary> [iOSVersion(3.1)] TypeHigh, /// <summary> /// If recording, specifies that you want to use medium-quality video recording. /// Recorded files can usually be transferred using Wi-Fi. This is the default video quality setting. /// If displaying a recorded movie in the image picker, specifies that you want to transcode higher-quality movies to medium video quality. /// </summary> [iOSVersion(3.1)] TypeMedium, /// <summary> /// If recording, specifies that you want to use low-quality video recording. /// Recorded files can usually be transferred over the cellular network. /// If displaying a recorded movie in the image picker, specifies that you want to transcode higher-quality movies to low video quality. /// </summary> [iOSVersion(3.1)] TypeLow, /// <summary> /// If recording, specifies that you want to use VGA-quality video recording (pixel dimensions of 640x480). /// If displaying a recorded movie in the image picker, specifies that you want to transcode higher-quality movies to VGA video quality. /// </summary> [iOSVersion(4)] Type640x480, /// <summary> /// If recording, specifies that you want to use 1280x720 iFrame format. /// The Apple iFrame format supports video editing by keeping content in its native recorded format while editing. /// </summary> [iOSVersion(5)] TypeIFrame1280x720, /// <summary> /// If recording, specifies that you want to use 960x540 iFrame format. /// The Apple iFrame format supports video editing by keeping content in its native recorded format while editing. /// </summary> [iOSVersion(5)] TypeIFrame960x540, } /// <summary> /// The camera to use for image or movie capture. /// </summary> [iOSVersion(4)] public enum UIImagePickerControllerCameraDevice { /// <summary> /// Specifies the camera on the rear of the device. /// </summary> [iOSVersion(4)] Rear, /// <summary> /// Specifies the camera on the front of the device. /// </summary> [iOSVersion(4)] Front, } /// <summary> /// The category of media for the camera to capture. /// </summary> [iOSVersion(4)] public enum UIImagePickerControllerCameraCaptureMode { /// <summary> /// Specifies that the camera captures still images. /// </summary> [iOSVersion(4)] Photo, /// <summary> /// Specifies that the camera captures movies. /// </summary> [iOSVersion(4)] Video, } /// <summary> /// The flash mode to use with the active camera. /// </summary> [iOSVersion(4)] public enum UIImagePickerControllerCameraFlashMode { /// <summary> /// Specifies that flash illumination is always off, no matter what the ambient light conditions are. /// </summary> [iOSVersion(4)] Off, /// <summary> /// Specifies that the device should consider ambient light conditions to automatically determine whether or not to use flash illumination. /// </summary> [iOSVersion(4)] Auto, /// <summary> /// Specifies that flash illumination is always on, no matter what the ambient light conditions are. /// </summary> [iOSVersion(4)] On, } } \ 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 UIImagePickerController class manages customizable, system-supplied user interfaces for taking pictures and movies on supported devices, and for choosing saved images and movies for use in your app. An image picker controller manages user interactions and delivers the results of those interactions to a delegate object. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIImagePickerController_Class/index.html#//apple_ref/occ/cl/UIImagePickerController"/> [iOSVersion(2)] public class UIImagePickerController : UINavigationController//, AnyObject, NSCoding, NSExtensionRequestHandling, NSObjectProtocol, UIAppearanceContainer, UIContentContainer, UIStateRestoring, UITraitEnvironment { public UIImagePickerController() { } /// <summary> /// Returns an array of the available media types for the specified source type. /// </summary> /// <param name="sourceType">The source to use to pick an image.</param> [iOSVersion(3)] [Export("availableMediaTypesForSourceType")] public static AnyObject[] AvailableMediaTypesForSourceType(UIImagePickerControllerSourceType sourceType) { return default(AnyObject[]); } /// <summary> /// Returns a Boolean value indicating whether the device supports picking media using the specified source type. /// </summary> /// <param name="sourceType">The source to use to pick an image or movie.</param> [iOSVersion(2)] [Export("isSourceTypeAvailable")] public static bool IsSourceTypeAvailable(UIImagePickerControllerSourceType sourceType) { return default(bool); } /// <summary> /// Captures a still image using the camera. /// </summary> [iOSVersion(3.1)] [Export("takePicture")] public virtual void TakePicture() { } /// <summary> /// Starts video capture using the camera specified by the UIImagePickerControllerCameraDevice property. /// </summary> [iOSVersion(4)] [Export("startVideoCapture")] public virtual bool StartVideoCapture() { return default(bool); } /// <summary> /// Stops video capture. /// </summary> [iOSVersion(4)] [Export("stopVideoCapture")] public virtual void StopVideoCapture() { } /// <summary> /// Returns a Boolean value that indicates whether a given camera is available. /// </summary> /// <param name="cameraDevice">A UIImagePickerControllerCameraDevice constant indicating the camera whose availability you want to check.</param> [iOSVersion(4)] [Export("isCameraDeviceAvailable")] public static bool IsCameraDeviceAvailable(UIImagePickerControllerCameraDevice cameraDevice) { return default(bool); } /// <summary> /// Returns an array of NSNumber objects indicating the capture modes supported by a given camera device. /// </summary> /// <param name="cameraDevice">A UIImagePickerControllerCameraDevice constant indicating the camera you want to interrogate.</param> [iOSVersion(4)] [Export("availableCaptureModesForCameraDevice")] public static AnyObject[] AvailableCaptureModesForCameraDevice(UIImagePickerControllerCameraDevice cameraDevice) { return default(AnyObject[]); } /// <summary> /// Indicates whether a given camera has flash illumination capability. /// </summary> /// <param name="cameraDevice">A UIImagePickerControllerCameraDevice constant indicating the camera whose flash capability you want to know.</param> [iOSVersion(4)] [Export("isFlashAvailableForCameraDevice")] public static bool IsFlashAvailableForCameraDevice(UIImagePickerControllerCameraDevice cameraDevice) { return default(bool); } /// <summary> /// The type of picker interface to be displayed by the controller. /// </summary> [iOSVersion(2)] [Export("sourceType")] public UIImagePickerControllerSourceType SourceType { get; set; } /// <summary> /// A Boolean value indicating whether the user is allowed to edit a selected still image or movie. /// </summary> [iOSVersion(3.1)] [Export("allowsEditing")] public bool AllowsEditing { get; set; } /// <summary> /// The image picker’s delegate object. /// </summary> [iOSVersion(2)] [Export("delegate")] public Protocol<UIImagePickerControllerDelegate, UINavigationControllerDelegate> Delegate { get; set; } /// <summary> /// An array indicating the media types to be accessed by the media picker controller. /// </summary> [iOSVersion(3)] [Export("mediaTypes")] public AnyObject[] MediaTypes { get; set; } /// <summary> /// The video recording and transcoding quality. /// </summary> [iOSVersion(3.1)] [Export("videoQuality")] public UIImagePickerControllerQualityType VideoQuality { get; set; } /// <summary> /// The maximum duration, in seconds, for a video recording. /// </summary> [iOSVersion(3.1)] [Export("videoMaximumDuration")] public NSTimeInterval VideoMaximumDuration { get; set; } /// <summary> /// Indicates whether the image picker displays the default camera controls. /// </summary> [iOSVersion(3.1)] [Export("showsCameraControls")] public bool ShowsCameraControls { get; set; } /// <summary> /// The view to display on top of the default image picker interface. /// </summary> [iOSVersion(3.1)] [Export("cameraOverlayView")] public UIView CameraOverlayView { get; set; } /// <summary> /// The transform to apply to the camera’s preview image. /// </summary> [iOSVersion(3.1)] [Export("cameraViewTransform")] public CGAffineTransform CameraViewTransform { get; set; } /// <summary> /// The camera used by the image picker controller. /// </summary> [iOSVersion(4)] [Export("cameraDevice")] public UIImagePickerControllerCameraDevice CameraDevice { get; set; } /// <summary> /// The capture mode used by the camera. /// </summary> [iOSVersion(4)] [Export("cameraCaptureMode")] public UIImagePickerControllerCameraCaptureMode CameraCaptureMode { get; set; } /// <summary> /// The flash mode used by the active camera. /// </summary> [iOSVersion(4)] [Export("cameraFlashMode")] public UIImagePickerControllerCameraFlashMode CameraFlashMode { get; set; } } /// <summary> /// The source to use when picking an image or when determining available media types. /// </summary> [iOSVersion(2)] public enum UIImagePickerControllerSourceType { /// <summary> /// Specifies the device’s photo library as the source for the image picker controller. /// </summary> [iOSVersion(2)] PhotoLibrary, /// <summary> /// Specifies the device’s built-in camera as the source for the image picker controller. Indicate the specific camera you want (front or rear, as available) by using the cameraDevice property. /// </summary> [iOSVersion(2)] Camera, /// <summary> /// Specifies the device’s Camera Roll album as the source for the image picker controller. If the device does not have a camera, specifies the Saved Photos album as the source. /// </summary> [iOSVersion(2)] SavedPhotosAlbum, } /// <summary> /// Video quality settings for movies recorded with the built-in camera, or transcoded by displaying in the image picker. /// </summary> [iOSVersion(3.1)] public enum UIImagePickerControllerQualityType { /// <summary> /// If recording, specifies that you want to use the highest-quality video recording supported for the active camera on the device. /// Recorded files are suitable for on-device playback and for wired transfer to the Desktop using Image Capture; they are likely to be too large for transfer using Wi-Fi. /// If displaying a recorded movie in the image picker, specifies that you do not want to reduce the video quality of the movie. /// </summary> [iOSVersion(3.1)] TypeHigh, /// <summary> /// If recording, specifies that you want to use medium-quality video recording. /// Recorded files can usually be transferred using Wi-Fi. This is the default video quality setting. /// If displaying a recorded movie in the image picker, specifies that you want to transcode higher-quality movies to medium video quality. /// </summary> [iOSVersion(3.1)] TypeMedium, /// <summary> /// If recording, specifies that you want to use low-quality video recording. /// Recorded files can usually be transferred over the cellular network. /// If displaying a recorded movie in the image picker, specifies that you want to transcode higher-quality movies to low video quality. /// </summary> [iOSVersion(3.1)] TypeLow, /// <summary> /// If recording, specifies that you want to use VGA-quality video recording (pixel dimensions of 640x480). /// If displaying a recorded movie in the image picker, specifies that you want to transcode higher-quality movies to VGA video quality. /// </summary> [iOSVersion(4)] Type640x480, /// <summary> /// If recording, specifies that you want to use 1280x720 iFrame format. /// The Apple iFrame format supports video editing by keeping content in its native recorded format while editing. /// </summary> [iOSVersion(5)] TypeIFrame1280x720, /// <summary> /// If recording, specifies that you want to use 960x540 iFrame format. /// The Apple iFrame format supports video editing by keeping content in its native recorded format while editing. /// </summary> [iOSVersion(5)] TypeIFrame960x540, } /// <summary> /// The camera to use for image or movie capture. /// </summary> [iOSVersion(4)] public enum UIImagePickerControllerCameraDevice { /// <summary> /// Specifies the camera on the rear of the device. /// </summary> [iOSVersion(4)] Rear, /// <summary> /// Specifies the camera on the front of the device. /// </summary> [iOSVersion(4)] Front, } /// <summary> /// The category of media for the camera to capture. /// </summary> [iOSVersion(4)] public enum UIImagePickerControllerCameraCaptureMode { /// <summary> /// Specifies that the camera captures still images. /// </summary> [iOSVersion(4)] Photo, /// <summary> /// Specifies that the camera captures movies. /// </summary> [iOSVersion(4)] Video, } /// <summary> /// The flash mode to use with the active camera. /// </summary> [iOSVersion(4)] public enum UIImagePickerControllerCameraFlashMode { /// <summary> /// Specifies that flash illumination is always off, no matter what the ambient light conditions are. /// </summary> [iOSVersion(4)] Off, /// <summary> /// Specifies that the device should consider ambient light conditions to automatically determine whether or not to use flash illumination. /// </summary> [iOSVersion(4)] Auto, /// <summary> /// Specifies that flash illumination is always on, no matter what the ambient light conditions are. /// </summary> [iOSVersion(4)] On, } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIKit.csproj b/CocoaSharp/UIKit/UIKit.csproj
index 41cbba3e..59f3a06b 100644
--- a/CocoaSharp/UIKit/UIKit.csproj
+++ b/CocoaSharp/UIKit/UIKit.csproj
@@ -42,6 +42,7 @@
<Compile Include="Additions\NSString.cs" />
<Compile Include="Additions\NSValue.cs" />
<Compile Include="Constants.cs" />
+ <Compile Include="DataTypes.cs" />
<Compile Include="DataTypes\DataTypes.cs" />
<Compile Include="DataTypes\UICollectionViewLayoutinteractiveTransitionCompletion.cs" />
<Compile Include="DataTypes\UIPrintinteractionCompletionHandler.cs" />
@@ -71,9 +72,7 @@
<Compile Include="Protocols\UIAccessibilityFocus.cs" />
<Compile Include="Protocols\UIAccessibilityIdentification.cs" />
<Compile Include="Protocols\UIAccessibilityReadingContent.cs" />
- <Compile Include="Protocols\Delegates\UIActionSheetDelegate.cs" />
<Compile Include="Protocols\UIActivityItemSource.cs" />
- <Compile Include="Protocols\Delegates\UIAlertViewDelegate.cs" />
<Compile Include="Protocols\UIAppearance.cs" />
<Compile Include="Protocols\UIAppearanceContainer.cs" />
<Compile Include="Protocols\Delegates\UIApplicationDelegate.cs" />
@@ -84,6 +83,7 @@
<Compile Include="Protocols\Delegates\UICollectionViewDelegateFlowLayout.cs" />
<Compile Include="Protocols\Delegates\UICollisionBehaviorDelegate.cs" />
<Compile Include="Protocols\UIContentContainer.cs" />
+ <Compile Include="Protocols\UICoordinateSpace.cs" />
<Compile Include="Protocols\UIDataSourceModelAssociation.cs" />
<Compile Include="Protocols\Delegates\UIDocumentInteractionControllerDelegate.cs" />
<Compile Include="Protocols\Delegates\UIDocumentMenuDelegate.cs" />
@@ -143,14 +143,12 @@
<Compile Include="UIAcceleration.cs" />
<Compile Include="UIAccelerometer.cs" />
<Compile Include="UIAccessibilityElement.cs" />
- <Compile Include="UIActionSheet.cs" />
<Compile Include="UIActivity.cs" />
<Compile Include="UIActivityIndicatorView.cs" />
<Compile Include="UIActivityItemProvider.cs" />
<Compile Include="UIActivityViewController.cs" />
<Compile Include="UIAlertAction.cs" />
<Compile Include="UIAlertController.cs" />
- <Compile Include="UIAlertView.cs" />
<Compile Include="UIApplication.cs" />
<Compile Include="UIAttachmentBehavior.cs" />
<Compile Include="UIBarButtonItem.cs" />
diff --git a/CocoaSharp/UIKit/UILocalizedIndexedCollation.cs b/CocoaSharp/UIKit/UILocalizedIndexedCollation.cs
index df82acd4..0f84085a 100644
--- a/CocoaSharp/UIKit/UILocalizedIndexedCollation.cs
+++ b/CocoaSharp/UIKit/UILocalizedIndexedCollation.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UILocalizedIndexedCollation class is a convenience for organizing, sorting, and localizing the data for a table view that has a section index. The table view’s data source then uses the collation object to provide the table view with input for section titles and section index titles. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/iPhone/Reference/UILocalizedIndexedCollation_Class/index.html#//apple_ref/occ/cl/UILocalizedIndexedCollation"/> [iOSVersion(3)] public class UILocalizedIndexedCollation : NSObject//, AnyObject, NSObjectProtocol { public UILocalizedIndexedCollation() { } /// <summary> /// Returns a indexed-collation instance for the current table view. /// </summary> [iOSVersion(3)] [Export("currentCollation")] public virtual static AnyObject CurrentCollation() { return default(AnyObject); } /// <summary> /// Returns an integer identifying the section in which a model object belongs. /// </summary> /// <param name="@object">A model object of the application that is part of the data model for the table view.</param> /// <param name="collationStringSelector">A selector that identifies a method returning an identifying string for object that is used in collation. The method should take no arguments and return an NSString object. For example, this could be a name property on the object.</param> [iOSVersion(3)] [Export("sectionForObject")] public virtual int SectionForObject(AnyObject @object, Selector collationStringSelector) { return default(int); } /// <summary> /// Sorts the objects within a section by their localized titles. /// </summary> /// <param name="array">An array containing the model objects for a section.</param> /// <param name="collationStringSelector">A selector that identifies a method returning an identifying string for each object in array. The index-collation object uses this string for sorting the objects in the array. The method should take no arguments and return an NSString object. For example, this could be a name property on the object.</param> [iOSVersion(3)] [Export("sortedArrayFromArray")] public virtual AnyObject[] SortedArrayFromArray(AnyObject[] array, Selector collationStringSelector) { return default(AnyObject[]); } /// <summary> /// Returns the section that the table view should scroll to for the given index title. /// </summary> /// <param name="indexTitleIndex">An integer identifying a section-index title by its position in the array of such titles.</param> [iOSVersion(3)] [Export("sectionForSectionIndexTitleAtIndex")] public virtual int SectionForSectionIndexTitleAtIndex(int indexTitleIndex) { return default(int); } /// <summary> /// Returns the list of section titles for the table view. (read-only) /// </summary> [iOSVersion(3)] [Export("sectionTitles")] public AnyObject[] SectionTitles { get; private set; } /// <summary> /// Returns the list of section-index titles for the table view (read-only) /// </summary> [iOSVersion(3)] [Export("sectionIndexTitles")] public AnyObject[] SectionIndexTitles { get; private set; } } } \ 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 UILocalizedIndexedCollation class is a convenience for organizing, sorting, and localizing the data for a table view that has a section index. The table view’s data source then uses the collation object to provide the table view with input for section titles and section index titles. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/iPhone/Reference/UILocalizedIndexedCollation_Class/index.html#//apple_ref/occ/cl/UILocalizedIndexedCollation"/> [iOSVersion(3)] public class UILocalizedIndexedCollation : NSObject//, AnyObject, NSObjectProtocol { public UILocalizedIndexedCollation() { } /// <summary> /// Returns a indexed-collation instance for the current table view. /// </summary> [iOSVersion(3)] [Export("currentCollation")] public static AnyObject CurrentCollation() { return default(AnyObject); } /// <summary> /// Returns an integer identifying the section in which a model object belongs. /// </summary> /// <param name="@object">A model object of the application that is part of the data model for the table view.</param> /// <param name="collationStringSelector">A selector that identifies a method returning an identifying string for object that is used in collation. The method should take no arguments and return an NSString object. For example, this could be a name property on the object.</param> [iOSVersion(3)] [Export("sectionForObject")] public virtual int SectionForObject(AnyObject @object, Selector collationStringSelector) { return default(int); } /// <summary> /// Sorts the objects within a section by their localized titles. /// </summary> /// <param name="array">An array containing the model objects for a section.</param> /// <param name="collationStringSelector">A selector that identifies a method returning an identifying string for each object in array. The index-collation object uses this string for sorting the objects in the array. The method should take no arguments and return an NSString object. For example, this could be a name property on the object.</param> [iOSVersion(3)] [Export("sortedArrayFromArray")] public virtual AnyObject[] SortedArrayFromArray(AnyObject[] array, Selector collationStringSelector) { return default(AnyObject[]); } /// <summary> /// Returns the section that the table view should scroll to for the given index title. /// </summary> /// <param name="indexTitleIndex">An integer identifying a section-index title by its position in the array of such titles.</param> [iOSVersion(3)] [Export("sectionForSectionIndexTitleAtIndex")] public virtual int SectionForSectionIndexTitleAtIndex(int indexTitleIndex) { return default(int); } /// <summary> /// Returns the list of section titles for the table view. (read-only) /// </summary> [iOSVersion(3)] [Export("sectionTitles")] public AnyObject[] SectionTitles { get; private set; } /// <summary> /// Returns the list of section-index titles for the table view (read-only) /// </summary> [iOSVersion(3)] [Export("sectionIndexTitles")] public AnyObject[] SectionIndexTitles { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIManagedDocument.cs b/CocoaSharp/UIKit/UIManagedDocument.cs
index 19b0e071..b706be6e 100644
--- a/CocoaSharp/UIKit/UIManagedDocument.cs
+++ b/CocoaSharp/UIKit/UIManagedDocument.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// UIManagedDocument is a concrete subclass of UIDocument that integrates with Core Data. When you initialize a managed document, you specify the URL for the document location. The document object then creates a Core Data stack to use to access the document’s persistent store using a managed object model from the application’s main bundle. See Supporting Document-Based Apps in iCloud in iCloud Programming Guide for Core Data for implementation strategies and troubleshooting steps. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIManagedDocument_Class/index.html#//apple_ref/occ/cl/UIManagedDocument"/> [iOSVersion(5)] public class UIManagedDocument : UIDocument//, AnyObject, NSFilePresenter, NSObjectProtocol { public UIManagedDocument() { } /// <summary> /// Creates or loads the document’s persistent store. /// </summary> /// <param name="storeURL">The URL for the persistent store.</param> /// <param name="ofType">The document’s file type.</param> /// <param name="modelConfiguration">The managed object model configuration to use.</param> /// <param name="storeOptions">The options used to configure the persistent store coordinator.</param> /// <param name="error">Upon return, if a problem occurs, contains an error object that describes the problem.</param> [iOSVersion(5)] [Export("configurePersistentStoreCoordinatorForURL")] public virtual bool ConfigurePersistentStoreCoordinatorForURL(NSURL storeURL, string ofType, string modelConfiguration, Dictionary<NSObject, AnyObject> storeOptions, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the Core Data store type for a given document file type. /// </summary> /// <param name="fileType">The document file type.</param> [iOSVersion(5)] [Export("persistentStoreTypeForFileType")] public virtual string PersistentStoreTypeForFileType(string fileType) { return default(string); } /// <summary> /// Handles reading non-Core Data content in the additional content directory in the document’s file package. /// </summary> /// <param name="absoluteURL">The URL for the additional content directory in the document’s file package.</param> /// <param name="error">Upon return, if a problem occurs, contains an error object that describes the problem.</param> [iOSVersion(5)] [Export("readAdditionalContentFromURL")] public virtual bool ReadAdditionalContentFromURL(NSURL absoluteURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Handles writing non-Core Data content to the additional content directory in the document’s file package. /// </summary> /// <param name="absoluteURL">The URL for the additional content directory in the document’s file package.</param> /// <param name="error">Upon return, if a problem occurs, contains an error object that describes the problem.</param> [iOSVersion(5)] [Export("additionalContentForURL")] public virtual AnyObject AdditionalContentForURL(NSURL absoluteURL, NSErrorPointer error) { return default(AnyObject); } /// <summary> /// Handles writing non-Core Data content to the document’s file package. /// </summary> /// <param name="content">An object that represents the additional content for the document. /// This is the object returned from additionalContentForURL:error:.</param> /// <param name="toURL">The URL to which to write the additional content.</param> /// <param name="originalContentsURL">The current URL of the document that is being saved.</param> /// <param name="error">Upon return, if a problem occurs, contains an error object that describes the problem.</param> [iOSVersion(5)] [Export("writeAdditionalContent")] public virtual bool WriteAdditionalContent(AnyObject content, NSURL toURL, NSURL originalContentsURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the name for the persistent store file inside the document’s file package. /// </summary> [iOSVersion(5)] [Export("persistentStoreName")] public virtual static string PersistentStoreName() { return default(string); } /// <summary> /// Options used when creating the document’s persistent store. /// </summary> [iOSVersion(5)] [Export("persistentStoreOptions")] public Dictionary<NSObject, AnyObject> PersistentStoreOptions { get; set; } /// <summary> /// A model configuration name to be passed when configuring the persistent store. /// </summary> [iOSVersion(5)] [Export("modelConfiguration")] public string ModelConfiguration { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// UIManagedDocument is a concrete subclass of UIDocument that integrates with Core Data. When you initialize a managed document, you specify the URL for the document location. The document object then creates a Core Data stack to use to access the document’s persistent store using a managed object model from the application’s main bundle. See Supporting Document-Based Apps in iCloud in iCloud Programming Guide for Core Data for implementation strategies and troubleshooting steps. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIManagedDocument_Class/index.html#//apple_ref/occ/cl/UIManagedDocument"/> [iOSVersion(5)] public class UIManagedDocument : UIDocument//, AnyObject, NSFilePresenter, NSObjectProtocol { public UIManagedDocument() { } /// <summary> /// Creates or loads the document’s persistent store. /// </summary> /// <param name="storeURL">The URL for the persistent store.</param> /// <param name="ofType">The document’s file type.</param> /// <param name="modelConfiguration">The managed object model configuration to use.</param> /// <param name="storeOptions">The options used to configure the persistent store coordinator.</param> /// <param name="error">Upon return, if a problem occurs, contains an error object that describes the problem.</param> [iOSVersion(5)] [Export("configurePersistentStoreCoordinatorForURL")] public virtual bool ConfigurePersistentStoreCoordinatorForURL(NSURL storeURL, string ofType, string modelConfiguration, Dictionary<NSObject, AnyObject> storeOptions, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the Core Data store type for a given document file type. /// </summary> /// <param name="fileType">The document file type.</param> [iOSVersion(5)] [Export("persistentStoreTypeForFileType")] public virtual string PersistentStoreTypeForFileType(string fileType) { return default(string); } /// <summary> /// Handles reading non-Core Data content in the additional content directory in the document’s file package. /// </summary> /// <param name="absoluteURL">The URL for the additional content directory in the document’s file package.</param> /// <param name="error">Upon return, if a problem occurs, contains an error object that describes the problem.</param> [iOSVersion(5)] [Export("readAdditionalContentFromURL")] public virtual bool ReadAdditionalContentFromURL(NSURL absoluteURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Handles writing non-Core Data content to the additional content directory in the document’s file package. /// </summary> /// <param name="absoluteURL">The URL for the additional content directory in the document’s file package.</param> /// <param name="error">Upon return, if a problem occurs, contains an error object that describes the problem.</param> [iOSVersion(5)] [Export("additionalContentForURL")] public virtual AnyObject AdditionalContentForURL(NSURL absoluteURL, NSErrorPointer error) { return default(AnyObject); } /// <summary> /// Handles writing non-Core Data content to the document’s file package. /// </summary> /// <param name="content">An object that represents the additional content for the document. /// This is the object returned from additionalContentForURL:error:.</param> /// <param name="toURL">The URL to which to write the additional content.</param> /// <param name="originalContentsURL">The current URL of the document that is being saved.</param> /// <param name="error">Upon return, if a problem occurs, contains an error object that describes the problem.</param> [iOSVersion(5)] [Export("writeAdditionalContent")] public virtual bool WriteAdditionalContent(AnyObject content, NSURL toURL, NSURL originalContentsURL, NSErrorPointer error) { return default(bool); } /// <summary> /// Returns the name for the persistent store file inside the document’s file package. /// </summary> [iOSVersion(5)] [Export("persistentStoreName")] public static string PersistentStoreName() { return default(string); } /// <summary> /// Options used when creating the document’s persistent store. /// </summary> [iOSVersion(5)] [Export("persistentStoreOptions")] public Dictionary<NSObject, AnyObject> PersistentStoreOptions { get; set; } /// <summary> /// A model configuration name to be passed when configuring the persistent store. /// </summary> [iOSVersion(5)] [Export("modelConfiguration")] public string ModelConfiguration { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIMenuController.cs b/CocoaSharp/UIKit/UIMenuController.cs
index 8f528649..a03f60c9 100644
--- a/CocoaSharp/UIKit/UIMenuController.cs
+++ b/CocoaSharp/UIKit/UIMenuController.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The singleton UIMenuController instance presents the menu interface for the Cut, Copy, Paste, Select, Select All, and Delete commands. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/iPhone/Reference/UIMenuController_Class/index.html#//apple_ref/occ/cl/UIMenuController"/> [iOSVersion(3)] public class UIMenuController : NSObject//, AnyObject, NSObjectProtocol { public UIMenuController() { } /// <summary> /// Returns the menu controller. /// </summary> [iOSVersion(3)] [Export("sharedMenuController")] public virtual static UIMenuController SharedMenuController() { return default(UIMenuController); } /// <summary> /// Shows or hides the editing menu, optionally animating the action. /// </summary> /// <param name="menuVisible">true if the menu should be shown, false if it should be hidden.</param> /// <param name="animated">true if the showing or hiding of the menu should be animated, otherwise false.</param> [iOSVersion(3)] [Export("setMenuVisible")] public virtual void SetMenuVisible(bool menuVisible, bool animated) { } /// <summary> /// Sets the area in a view above or below which the editing menu is positioned. /// </summary> /// <param name="targetRect">A rectangle that defines the area that is to be the target of the menu commands.</param> /// <param name="inView">The view in which targetRect appears.</param> [iOSVersion(3)] [Export("setTargetRect")] public virtual void SetTargetRect(CGRect targetRect, UIView inView) { } /// <summary> /// Updates the appearance and enabled state of menu commands. /// </summary> [iOSVersion(3)] [Export("update")] public virtual void Update() { } /// <summary> /// The visibility of the editing menu. /// </summary> [iOSVersion(3)] [Export("menuVisible")] public bool MenuVisible { get; set; } /// <summary> /// Returns the frame of the editing menu. (read-only) /// </summary> [iOSVersion(3)] [Export("menuFrame")] public CGRect MenuFrame { get; private set; } /// <summary> /// The direction the arrow of the editing menu is pointing. /// </summary> [iOSVersion(3.2)] [Export("arrowDirection")] public UIMenuControllerArrowDirection ArrowDirection { get; set; } /// <summary> /// The custom menu items for the editing menu. /// </summary> [iOSVersion(3.2)] [Export("menuItems")] public AnyObject[] MenuItems { get; set; } } /// <summary> /// The direction the arrow of the editing menu is pointing. /// </summary> [iOSVersion(3.2)] public enum UIMenuControllerArrowDirection { /// <summary> /// The arrow is pointing up or down at the object of focus based on its location in the screen. /// </summary> [iOSVersion(3.2)] Default, /// <summary> /// The arrow is pointing up at the object of focus. /// </summary> [iOSVersion(3.2)] Up, /// <summary> /// The arrow is pointing down at the object of focus. /// </summary> [iOSVersion(3.2)] Down, /// <summary> /// The arrow is pointing left at the object of focus. /// </summary> [iOSVersion(3.2)] Left, /// <summary> /// The arrow is pointing right at the object of focus. /// </summary> [iOSVersion(3.2)] Right, } /// <summary> /// There is no userInfo dictionary. /// </summary> [iOSVersion(3)] public class UIMenuControllerWillShowMenuNotification : NSNotification { public UIMenuControllerWillShowMenuNotification() : base("", null) { } } /// <summary> /// There is no userInfo dictionary. /// </summary> [iOSVersion(3)] public class UIMenuControllerDidShowMenuNotification : NSNotification { public UIMenuControllerDidShowMenuNotification() : base("", null) { } } /// <summary> /// There is no userInfo dictionary. /// </summary> [iOSVersion(3)] public class UIMenuControllerWillHideMenuNotification : NSNotification { public UIMenuControllerWillHideMenuNotification() : base("", null) { } } /// <summary> /// There is no userInfo dictionary. /// </summary> [iOSVersion(3)] public class UIMenuControllerDidHideMenuNotification : NSNotification { public UIMenuControllerDidHideMenuNotification() : base("", null) { } } /// <summary> /// There is no userInfo dictionary. /// </summary> [iOSVersion(3)] public class UIMenuControllerMenuFrameDidChangeNotification : NSNotification { public UIMenuControllerMenuFrameDidChangeNotification() : base("", null) { } } } \ 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 singleton UIMenuController instance presents the menu interface for the Cut, Copy, Paste, Select, Select All, and Delete commands. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/iPhone/Reference/UIMenuController_Class/index.html#//apple_ref/occ/cl/UIMenuController"/> [iOSVersion(3)] public class UIMenuController : NSObject//, AnyObject, NSObjectProtocol { public UIMenuController() { } /// <summary> /// Returns the menu controller. /// </summary> [iOSVersion(3)] [Export("sharedMenuController")] public static UIMenuController SharedMenuController() { return default(UIMenuController); } /// <summary> /// Shows or hides the editing menu, optionally animating the action. /// </summary> /// <param name="menuVisible">true if the menu should be shown, false if it should be hidden.</param> /// <param name="animated">true if the showing or hiding of the menu should be animated, otherwise false.</param> [iOSVersion(3)] [Export("setMenuVisible")] public virtual void SetMenuVisible(bool menuVisible, bool animated) { } /// <summary> /// Sets the area in a view above or below which the editing menu is positioned. /// </summary> /// <param name="targetRect">A rectangle that defines the area that is to be the target of the menu commands.</param> /// <param name="inView">The view in which targetRect appears.</param> [iOSVersion(3)] [Export("setTargetRect")] public virtual void SetTargetRect(CGRect targetRect, UIView inView) { } /// <summary> /// Updates the appearance and enabled state of menu commands. /// </summary> [iOSVersion(3)] [Export("update")] public virtual void Update() { } /// <summary> /// The visibility of the editing menu. /// </summary> [iOSVersion(3)] [Export("menuVisible")] public bool MenuVisible { get; set; } /// <summary> /// Returns the frame of the editing menu. (read-only) /// </summary> [iOSVersion(3)] [Export("menuFrame")] public CGRect MenuFrame { get; private set; } /// <summary> /// The direction the arrow of the editing menu is pointing. /// </summary> [iOSVersion(3.2)] [Export("arrowDirection")] public UIMenuControllerArrowDirection ArrowDirection { get; set; } /// <summary> /// The custom menu items for the editing menu. /// </summary> [iOSVersion(3.2)] [Export("menuItems")] public AnyObject[] MenuItems { get; set; } } /// <summary> /// The direction the arrow of the editing menu is pointing. /// </summary> [iOSVersion(3.2)] public enum UIMenuControllerArrowDirection { /// <summary> /// The arrow is pointing up or down at the object of focus based on its location in the screen. /// </summary> [iOSVersion(3.2)] Default, /// <summary> /// The arrow is pointing up at the object of focus. /// </summary> [iOSVersion(3.2)] Up, /// <summary> /// The arrow is pointing down at the object of focus. /// </summary> [iOSVersion(3.2)] Down, /// <summary> /// The arrow is pointing left at the object of focus. /// </summary> [iOSVersion(3.2)] Left, /// <summary> /// The arrow is pointing right at the object of focus. /// </summary> [iOSVersion(3.2)] Right, } /// <summary> /// There is no userInfo dictionary. /// </summary> [iOSVersion(3)] public class UIMenuControllerWillShowMenuNotification : NSNotification { public UIMenuControllerWillShowMenuNotification() : base("", null) { } } /// <summary> /// There is no userInfo dictionary. /// </summary> [iOSVersion(3)] public class UIMenuControllerDidShowMenuNotification : NSNotification { public UIMenuControllerDidShowMenuNotification() : base("", null) { } } /// <summary> /// There is no userInfo dictionary. /// </summary> [iOSVersion(3)] public class UIMenuControllerWillHideMenuNotification : NSNotification { public UIMenuControllerWillHideMenuNotification() : base("", null) { } } /// <summary> /// There is no userInfo dictionary. /// </summary> [iOSVersion(3)] public class UIMenuControllerDidHideMenuNotification : NSNotification { public UIMenuControllerDidHideMenuNotification() : base("", null) { } } /// <summary> /// There is no userInfo dictionary. /// </summary> [iOSVersion(3)] public class UIMenuControllerMenuFrameDidChangeNotification : NSNotification { public UIMenuControllerMenuFrameDidChangeNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIPasteboard.cs b/CocoaSharp/UIKit/UIPasteboard.cs
index 485fef80..dd3805bd 100644
--- a/CocoaSharp/UIKit/UIPasteboard.cs
+++ b/CocoaSharp/UIKit/UIPasteboard.cs
@@ -1 +1,10 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIPasteboard class enables an app to share data within the app and with another app. To share data with any other app, you can use system-wide pasteboards; to share data with another app that has the same team ID as your app, you can use app-specific pasteboards. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPasteboard_Class/index.html#//apple_ref/occ/cl/UIPasteboard"/> [iOSVersion(3)] public class UIPasteboard : NSObject//, AnyObject, NSObjectProtocol { public UIPasteboard() { } /// <summary> /// Returns the general pasteboard, which is used for general copy-paste operations /// </summary> [iOSVersion(3)] [Export("generalPasteboard")] public virtual static UIPasteboard GeneralPasteboard() { return default(UIPasteboard); } /// <summary> /// Returns a pasteboard identified by name, optionally creating it if it doesn’t exist. /// </summary> /// <param name="name">A string or string constant that identifies (or should identify) the pasteboard. Specify nil if you want UIPasteboard to create a pasteboard with a unique name.</param> /// <param name="create">A Boolean value that indicates whether the pasteboard should be created if it doesn’t already exist. Specify false for system pasteboards or if you want an existing app pasteboard.</param> [iOSVersion(3)] public UIPasteboard(string name, bool create) { } /// <summary> /// Returns an app pasteboard identified by a unique system-generated name. /// </summary> [iOSVersion(3)] [Export("pasteboardWithUniqueName")] public virtual static UIPasteboard PasteboardWithUniqueName() { return default(UIPasteboard); } /// <summary> /// Invalidates the designated app pasteboard. /// </summary> /// <param name="pasteboardName">The name of the pasteboard to be invalidated.</param> [iOSVersion(3)] [Export("removePasteboardWithName")] public virtual static void RemovePasteboardWithName(string pasteboardName) { } /// <summary> /// Returns the types of the first item on the pasteboard. /// </summary> [iOSVersion(3)] [Export("pasteboardTypes")] public virtual AnyObject[] PasteboardTypes() { return default(AnyObject[]); } /// <summary> /// Returns whether the pasteboard holds data of the specified representation type. /// </summary> /// <param name="pasteboardTypes">An array of strings. Each string should identify a representation of the pasteboard item that the pasteboard reader can handle. These string are frequently UTIs. See the class description for more information about pasteboard item types.</param> [iOSVersion(3)] [Export("containsPasteboardTypes")] public virtual bool ContainsPasteboardTypes(AnyObject[] pasteboardTypes) { return default(bool); } /// <summary> /// Returns the data in the pasteboard for the given representation type. /// </summary> /// <param name="pasteboardType">A string identifying a representation type of a pasteboard item.</param> [iOSVersion(3)] [Export("dataForPasteboardType")] public virtual NSData DataForPasteboardType(string pasteboardType) { return default(NSData); } /// <summary> /// Returns an object in the pasteboard for the given representation type. /// </summary> /// <param name="pasteboardType">A string identifying a representation type of a pasteboard item.</param> [iOSVersion(3)] [Export("valueForPasteboardType")] public virtual AnyObject ValueForPasteboardType(string pasteboardType) { return default(AnyObject); } /// <summary> /// Puts data in the pasteboard for the specified representation type. /// </summary> /// <param name="data">The data object to be written to the pasteboard.</param> /// <param name="forPasteboardType">A string identifying the representation type of the pasteboard item. This is typically a UTI.</param> [iOSVersion(3)] [Export("setData")] public virtual void SetData(NSData data, string forPasteboardType) { } /// <summary> /// Puts an object in the pasteboard for the specified representation type. /// </summary> /// <param name="value">The object to be written to the pasteboard.</param> /// <param name="forPasteboardType">A string identifying the representation type of the pasteboard item. If the type is a UTI, it must be compatible with the class of value; otherwise, nothing is written to the pasteboard.</param> [iOSVersion(3)] [Export("setValue")] public virtual void SetValue(AnyObject value, string forPasteboardType) { } /// <summary> /// Returns an array of representation types for each specified pasteboard item. /// </summary> /// <param name="itemSet">An index set with each integer value identifying a pasteboard item positionally in the pasteboard. Pass in nil to request all pasteboard items.</param> [iOSVersion(3)] [Export("pasteboardTypesForItemSet")] public virtual AnyObject[] PasteboardTypesForItemSet(NSIndexSet itemSet) { return default(AnyObject[]); } /// <summary> /// Returns an index set identifying pasteboard items having the specified representation types. /// </summary> /// <param name="pasteboardTypes">An array of strings, with each string identifying a representation type. Typically you use UTIs as pasteboard types.</param> [iOSVersion(3)] [Export("itemSetWithPasteboardTypes")] public virtual NSIndexSet ItemSetWithPasteboardTypes(AnyObject[] pasteboardTypes) { return default(NSIndexSet); } /// <summary> /// Returns whether the specified pasteboard items contain data of the given representation types. /// </summary> /// <param name="pasteboardTypes">An array of strings, with each string identifying a representation type. Typically you use UTIs as pasteboard types.</param> /// <param name="inItemSet">An index set with each integer value identifying a pasteboard item positionally in the pasteboard. Pass in nil to request all pasteboard items.</param> [iOSVersion(3)] [Export("containsPasteboardTypes")] public virtual bool ContainsPasteboardTypes(AnyObject[] pasteboardTypes, NSIndexSet inItemSet) { return default(bool); } /// <summary> /// Returns the data objects in the indicated pasteboard items that have the given representation type. /// </summary> /// <param name="pasteboardType">A string identifying a representation type. Typically this is a UTI.</param> /// <param name="inItemSet">An index set with each integer value identifying a pasteboard item positionally in the pasteboard. Pass in nil to request all pasteboard items.</param> [iOSVersion(3)] [Export("dataForPasteboardType")] public virtual AnyObject[] DataForPasteboardType(string pasteboardType, NSIndexSet inItemSet) { return default(AnyObject[]); } /// <summary> /// Returns the objects in the indicated pasteboard items that have the given representation type. /// </summary> /// <param name="pasteboardType">A string identifying a representation type. Typically this is a UTI.</param> /// <param name="inItemSet">An index set with each integer value identifying a pasteboard item positionally in the pasteboard. Pass in nil to request all pasteboard items.</param> [iOSVersion(3)] [Export("valuesForPasteboardType")] public virtual AnyObject[] ValuesForPasteboardType(string pasteboardType, NSIndexSet inItemSet) { return default(AnyObject[]); } /// <summary> /// Appends pasteboard items to the current contents of the pasteboard. /// </summary> /// <param name="items">An array of dictionaries. Each dictionary represents a pasteboard item, with the key being the representation type and the value being the object associated with that type.</param> [iOSVersion(3)] [Export("addItems")] public virtual void AddItems(AnyObject[] items) { } /// <summary> /// The name of the pasteboard. (read-only) /// </summary> [iOSVersion(3)] [Export("name")] public string Name { get; private set; } /// <summary> /// A Boolean value that indicates whether the pasteboard is persistent. /// </summary> [iOSVersion(3)] [Export("persistent")] public bool Persistent { get; set; } /// <summary> /// The number of times the pasteboard’s contents have changed. (read-only) /// </summary> [iOSVersion(3)] [Export("changeCount")] public int ChangeCount { get; private set; } /// <summary> /// Returns the number of items in the pasteboard (read-only) /// </summary> [iOSVersion(3)] [Export("numberOfItems")] public int NumberOfItems { get; private set; } /// <summary> /// The pasteboard items on the pasteboard. /// </summary> [iOSVersion(3)] [Export("items")] public AnyObject[] Items { get; set; } /// <summary> /// The string value of the first pasteboard item. /// </summary> [iOSVersion(3)] [Export("string")] public string String { get; set; } /// <summary> /// An array of strings in all pasteboard items. /// </summary> [iOSVersion(3)] [Export("strings")] public AnyObject[] Strings { get; set; } /// <summary> /// The image object of the first pasteboard item. /// </summary> [iOSVersion(3)] [Export("image")] public UIImage Image { get; set; } /// <summary> /// An array of image objects in all pasteboard items. /// </summary> [iOSVersion(3)] [Export("images")] public AnyObject[] Images { get; set; } /// <summary> /// The URL object of the first pasteboard item. /// </summary> [iOSVersion(3)] public NSURL URL { get; set; } /// <summary> /// An array of URL objects in all pasteboard items. /// </summary> [iOSVersion(3)] public AnyObject[] URLs { get; set; } /// <summary> /// The color object of the first pasteboard item. /// </summary> [iOSVersion(3)] [Export("color")] public UIColor Color { get; set; } /// <summary> /// An array of color objects in all pasteboard items. /// </summary> [iOSVersion(3)] [Export("colors")] public AnyObject[] Colors { get; set; } /// <summary> /// Pasteboard-item representation types for a given object value. /// </summary> public NSArray! var UIPasteboardTypeListURL: NSArray! var UIPasteboardTypeListImage: NSArray! var UIPasteboardTypeListColor: NSArray UIPasteboardTypeListString { get; set; } } /// <summary> /// /// </summary> [iOSVersion(3)] public class UIPasteboardChangedNotification : NSNotification { public UIPasteboardChangedNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(3)] public class UIPasteboardRemovedNotification : NSNotification { public UIPasteboardRemovedNotification() : base("", null) { } } } \ 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 UIPasteboard class enables an app to share data within the app and with another app. To share data with any other app, you can use system-wide pasteboards; to share data with another app that has the same team ID as your app, you can use app-specific pasteboards. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPasteboard_Class/index.html#//apple_ref/occ/cl/UIPasteboard"/> [iOSVersion(3)] public class UIPasteboard : NSObject//, AnyObject, NSObjectProtocol { public UIPasteboard() { } /// <summary> /// Returns the general pasteboard, which is used for general copy-paste operations /// </summary> [iOSVersion(3)] [Export("generalPasteboard")] public static UIPasteboard GeneralPasteboard() { return default(UIPasteboard); } /// <summary> /// Returns a pasteboard identified by name, optionally creating it if it doesn’t exist. /// </summary> /// <param name="name">A string or string constant that identifies (or should identify) the pasteboard. Specify nil if you want UIPasteboard to create a pasteboard with a unique name.</param> /// <param name="create">A Boolean value that indicates whether the pasteboard should be created if it doesn’t already exist. Specify false for system pasteboards or if you want an existing app pasteboard.</param> [iOSVersion(3)] public UIPasteboard(string name, bool create) { } /// <summary> /// Returns an app pasteboard identified by a unique system-generated name. /// </summary> [iOSVersion(3)] [Export("pasteboardWithUniqueName")] public static UIPasteboard PasteboardWithUniqueName() { return default(UIPasteboard); } /// <summary> /// Invalidates the designated app pasteboard. /// </summary> /// <param name="pasteboardName">The name of the pasteboard to be invalidated.</param> [iOSVersion(3)] [Export("removePasteboardWithName")] public static void RemovePasteboardWithName(string pasteboardName) { } /// <summary> /// Returns the types of the first item on the pasteboard. /// </summary> [iOSVersion(3)] [Export("pasteboardTypes")] public virtual AnyObject[] PasteboardTypes() { return default(AnyObject[]); } /// <summary> /// Returns whether the pasteboard holds data of the specified representation type. /// </summary> /// <param name="pasteboardTypes">An array of strings. Each string should identify a representation of the pasteboard item that the pasteboard reader can handle. These string are frequently UTIs. See the class description for more information about pasteboard item types.</param> [iOSVersion(3)] [Export("containsPasteboardTypes")] public virtual bool ContainsPasteboardTypes(AnyObject[] pasteboardTypes) { return default(bool); } /// <summary> /// Returns the data in the pasteboard for the given representation type. /// </summary> /// <param name="pasteboardType">A string identifying a representation type of a pasteboard item.</param> [iOSVersion(3)] [Export("dataForPasteboardType")] public virtual NSData DataForPasteboardType(string pasteboardType) { return default(NSData); } /// <summary> /// Returns an object in the pasteboard for the given representation type. /// </summary> /// <param name="pasteboardType">A string identifying a representation type of a pasteboard item.</param> [iOSVersion(3)] [Export("valueForPasteboardType")] public virtual AnyObject ValueForPasteboardType(string pasteboardType) { return default(AnyObject); } /// <summary> /// Puts data in the pasteboard for the specified representation type. /// </summary> /// <param name="data">The data object to be written to the pasteboard.</param> /// <param name="forPasteboardType">A string identifying the representation type of the pasteboard item. This is typically a UTI.</param> [iOSVersion(3)] [Export("setData")] public virtual void SetData(NSData data, string forPasteboardType) { } /// <summary> /// Puts an object in the pasteboard for the specified representation type. /// </summary> /// <param name="value">The object to be written to the pasteboard.</param> /// <param name="forPasteboardType">A string identifying the representation type of the pasteboard item. If the type is a UTI, it must be compatible with the class of value; otherwise, nothing is written to the pasteboard.</param> [iOSVersion(3)] [Export("setValue")] public virtual void SetValue(AnyObject value, string forPasteboardType) { } /// <summary> /// Returns an array of representation types for each specified pasteboard item. /// </summary> /// <param name="itemSet">An index set with each integer value identifying a pasteboard item positionally in the pasteboard. Pass in nil to request all pasteboard items.</param> [iOSVersion(3)] [Export("pasteboardTypesForItemSet")] public virtual AnyObject[] PasteboardTypesForItemSet(NSIndexSet itemSet) { return default(AnyObject[]); } /// <summary> /// Returns an index set identifying pasteboard items having the specified representation types. /// </summary> /// <param name="pasteboardTypes">An array of strings, with each string identifying a representation type. Typically you use UTIs as pasteboard types.</param> [iOSVersion(3)] [Export("itemSetWithPasteboardTypes")] public virtual NSIndexSet ItemSetWithPasteboardTypes(AnyObject[] pasteboardTypes) { return default(NSIndexSet); } /// <summary> /// Returns whether the specified pasteboard items contain data of the given representation types. /// </summary> /// <param name="pasteboardTypes">An array of strings, with each string identifying a representation type. Typically you use UTIs as pasteboard types.</param> /// <param name="inItemSet">An index set with each integer value identifying a pasteboard item positionally in the pasteboard. Pass in nil to request all pasteboard items.</param> [iOSVersion(3)] [Export("containsPasteboardTypes")] public virtual bool ContainsPasteboardTypes(AnyObject[] pasteboardTypes, NSIndexSet inItemSet) { return default(bool); } /// <summary> /// Returns the data objects in the indicated pasteboard items that have the given representation type. /// </summary> /// <param name="pasteboardType">A string identifying a representation type. Typically this is a UTI.</param> /// <param name="inItemSet">An index set with each integer value identifying a pasteboard item positionally in the pasteboard. Pass in nil to request all pasteboard items.</param> [iOSVersion(3)] [Export("dataForPasteboardType")] public virtual AnyObject[] DataForPasteboardType(string pasteboardType, NSIndexSet inItemSet) { return default(AnyObject[]); } /// <summary> /// Returns the objects in the indicated pasteboard items that have the given representation type. /// </summary> /// <param name="pasteboardType">A string identifying a representation type. Typically this is a UTI.</param> /// <param name="inItemSet">An index set with each integer value identifying a pasteboard item positionally in the pasteboard. Pass in nil to request all pasteboard items.</param> [iOSVersion(3)] [Export("valuesForPasteboardType")] public virtual AnyObject[] ValuesForPasteboardType(string pasteboardType, NSIndexSet inItemSet) { return default(AnyObject[]); } /// <summary> /// Appends pasteboard items to the current contents of the pasteboard. /// </summary> /// <param name="items">An array of dictionaries. Each dictionary represents a pasteboard item, with the key being the representation type and the value being the object associated with that type.</param> [iOSVersion(3)] [Export("addItems")] public virtual void AddItems(AnyObject[] items) { } /// <summary> /// The name of the pasteboard. (read-only) /// </summary> [iOSVersion(3)] [Export("name")] public string Name { get; private set; } /// <summary> /// A Boolean value that indicates whether the pasteboard is persistent. /// </summary> [iOSVersion(3)] [Export("persistent")] public bool Persistent { get; set; } /// <summary> /// The number of times the pasteboard’s contents have changed. (read-only) /// </summary> [iOSVersion(3)] [Export("changeCount")] public int ChangeCount { get; private set; } /// <summary> /// Returns the number of items in the pasteboard (read-only) /// </summary> [iOSVersion(3)] [Export("numberOfItems")] public int NumberOfItems { get; private set; } /// <summary> /// The pasteboard items on the pasteboard. /// </summary> [iOSVersion(3)] [Export("items")] public AnyObject[] Items { get; set; } /// <summary> /// The string value of the first pasteboard item. /// </summary> [iOSVersion(3)] [Export("string")] public string String { get; set; } /// <summary> /// An array of strings in all pasteboard items. /// </summary> [iOSVersion(3)] [Export("strings")] public AnyObject[] Strings { get; set; } /// <summary> /// The image object of the first pasteboard item. /// </summary> [iOSVersion(3)] [Export("image")] public UIImage Image { get; set; } /// <summary> /// An array of image objects in all pasteboard items. /// </summary> [iOSVersion(3)] [Export("images")] public AnyObject[] Images { get; set; } /// <summary> /// The URL object of the first pasteboard item. /// </summary> [iOSVersion(3)] public NSURL URL { get; set; } /// <summary> /// An array of URL objects in all pasteboard items. /// </summary> [iOSVersion(3)] public AnyObject[] URLs { get; set; } /// <summary> /// The color object of the first pasteboard item. /// </summary> [iOSVersion(3)] [Export("color")] public UIColor Color { get; set; } /// <summary> /// An array of color objects in all pasteboard items. /// </summary> [iOSVersion(3)] [Export("colors")] public AnyObject[] Colors { get; set; }
+
+ /// <summary> /// Pasteboard-item representation types for a given object value. /// </summary>
+ //TODO: comment and double-check these
+ public Array UIPasteboardTypeListURL { get; set; }
+ public Array UIPasteboardTypeListImage { get; set; }
+ public Array UIPasteboardTypeListColor { get; set; }
+ public Array UIPasteboardTypeListString { get; set; }
+ //public NSArray! var UIPasteboardTypeListURL: NSArray! var UIPasteboardTypeListImage: NSArray! var UIPasteboardTypeListColor: NSArray UIPasteboardTypeListString { get; set; }
+ } /// <summary> /// /// </summary> [iOSVersion(3)] public class UIPasteboardChangedNotification : NSNotification { public UIPasteboardChangedNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(3)] public class UIPasteboardRemovedNotification : NSNotification { public UIPasteboardRemovedNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIPopoverBackgroundView.cs b/CocoaSharp/UIKit/UIPopoverBackgroundView.cs
index 402ff929..cc101358 100644
--- a/CocoaSharp/UIKit/UIPopoverBackgroundView.cs
+++ b/CocoaSharp/UIKit/UIPopoverBackgroundView.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIPopoverBackgroundView class provides the background appearance for a popover. This class must be subclassed before it can be used. The implementation of your subclass is responsible for providing the border decoration and arrow for the popover. Subclasses must override all declared properties and methods to provide information about where to lay out the corresponding popover content and arrow. Subclasses must also provide implementations for all methods of the UIPopoverBackgroundViewMethods protocol. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPopoverBackgroundView_class/index.html#//apple_ref/occ/cl/UIPopoverBackgroundView"/> [iOSVersion(5)] public class UIPopoverBackgroundView : UIView//, AnyObject, NSCoding, NSObjectProtocol, Reflectable, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UIPopoverBackgroundViewMethods, UITraitEnvironment { public UIPopoverBackgroundView() { } /// <summary> /// Determines whether the default content appearance should be used for the popover. /// </summary> [iOSVersion(6)] [Export("wantsDefaultContentAppearance")] public virtual static bool WantsDefaultContentAppearance() { return default(bool); } /// <summary> /// The distance (measured in points) from the center of the view to the center line of the arrow. /// </summary> [iOSVersion(5)] [Export("arrowOffset")] public CGFloat ArrowOffset { get; set; } /// <summary> /// The direction in which the popover arrow is pointing. /// </summary> [iOSVersion(5)] [Export("arrowDirection")] public UIPopoverArrowDirection ArrowDirection { get; set; } } } \ 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 UIPopoverBackgroundView class provides the background appearance for a popover. This class must be subclassed before it can be used. The implementation of your subclass is responsible for providing the border decoration and arrow for the popover. Subclasses must override all declared properties and methods to provide information about where to lay out the corresponding popover content and arrow. Subclasses must also provide implementations for all methods of the UIPopoverBackgroundViewMethods protocol. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPopoverBackgroundView_class/index.html#//apple_ref/occ/cl/UIPopoverBackgroundView"/> [iOSVersion(5)] public class UIPopoverBackgroundView : UIView//, AnyObject, NSCoding, NSObjectProtocol, Reflectable, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UIPopoverBackgroundViewMethods, UITraitEnvironment { public UIPopoverBackgroundView() { } /// <summary> /// Determines whether the default content appearance should be used for the popover. /// </summary> [iOSVersion(6)] [Export("wantsDefaultContentAppearance")] public static bool WantsDefaultContentAppearance() { return default(bool); } /// <summary> /// The distance (measured in points) from the center of the view to the center line of the arrow. /// </summary> [iOSVersion(5)] [Export("arrowOffset")] public CGFloat ArrowOffset { get; set; } /// <summary> /// The direction in which the popover arrow is pointing. /// </summary> [iOSVersion(5)] [Export("arrowDirection")] public UIPopoverArrowDirection ArrowDirection { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIPrintInteractionController.cs b/CocoaSharp/UIKit/UIPrintInteractionController.cs
index f05119d8..8b32ec13 100644
--- a/CocoaSharp/UIKit/UIPrintInteractionController.cs
+++ b/CocoaSharp/UIKit/UIPrintInteractionController.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The shared instance of the UIPrintInteractionController class presents a printing user interface and manages the printing of documents, images, and other printable content in iOS. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPrintInteractionController_Class/index.html#//apple_ref/occ/cl/UIPrintInteractionController"/> [iOSVersion(4.2)] public class UIPrintInteractionController : NSObject//, AnyObject, NSObjectProtocol { public UIPrintInteractionController() { } /// <summary> /// Returns the shared print-interaction controller object. /// </summary> [iOSVersion(4.2)] [Export("sharedPrintController")] public virtual static UIPrintInteractionController SharedPrintController() { return default(UIPrintInteractionController); } /// <summary> /// Returns a Boolean indicating whether the device supports printing. /// </summary> [iOSVersion(4.2)] [Export("isPrintingAvailable")] public virtual static bool IsPrintingAvailable() { return default(bool); } /// <summary> /// Returns whether UIKit can print the contents of a data object. /// </summary> /// <param name="data">An instance of the NSData class that contains PDF data or an image in a format supported by the Image I/O framework. See Supported Image Formats in View Programming Guide for iOS for a list of the supported image formats.</param> [iOSVersion(4.2)] [Export("canPrintData")] public virtual static bool CanPrintData(NSData data) { return default(bool); } /// <summary> /// Returns whether UIKit can print the file referenced by a URL. /// </summary> /// <param name="url">An object representing a URL. Valid NSURL objects must use the file: or assets-library: scheme or any scheme that can return an NSData object with a registered protocol. The file referenced by the URL must contain PDF data or an image in a format supported by the Image I/O framework. See Supported Image Formats in View Programming Guide for iOS for a list of the supported image formats.</param> [iOSVersion(4.2)] [Export("canPrintURL")] public virtual static bool CanPrintURL(NSURL url) { return default(bool); } /// <summary> /// Returns a set of the Uniform Type Identifiers for the types of data that UIKit can print. /// </summary> [iOSVersion(4.2)] [Export("printableUTIs")] public virtual static NSSet PrintableUTIs() { return default(NSSet); } /// <summary> /// Presents the iPhone printing user interface in a sheet that can be animated to slide up from the bottom of the screen. /// </summary> /// <param name="animated">true to animate the display of the sheet, false to display the sheet immediately.</param> /// <param name="completionHandler">A block of type UIPrintInteractionCompletionHandler that you implement to handle the conclusion of the print job (for instance, to reset state) and to handle any errors encountered in printing.</param> [iOSVersion(4.2)] [Export("presentAnimated")] public virtual bool PresentAnimated(bool animated, UIPrintInteractionCompletionHandler completionHandler) { return default(bool); } /// <summary> /// Presents the iPad printing user interface in a popover view that can be animated from a bar-button item. /// </summary> /// <param name="item">The UIBarButtonItem object that the user tapped for printing. You are encouraged to use the constant UIBarButtonSystemItemAction when creating a bar-button item for this purpose.</param> /// <param name="animated">true to animate the printing popover view from item, false to display it immediately.</param> /// <param name="completionHandler">A block of type UIPrintInteractionCompletionHandler that you implement to handle the conclusion of the print job (for instance, to reset state) and to handle any errors encountered in printing.</param> [iOSVersion(4.2)] [Export("presentFromBarButtonItem")] public virtual bool PresentFromBarButtonItem(UIBarButtonItem item, bool animated, UIPrintInteractionCompletionHandler completionHandler) { return default(bool); } /// <summary> /// Presents the iPad printing user interface in a popover view that can be animated from any area in a view. /// </summary> /// <param name="rect">A rectangle that defines the area from which the printing popover view is animated.</param> /// <param name="inView">The view providing the coordinate system for rect.</param> /// <param name="animated">true to animate the printing popover view from item, false to display it immediately.</param> /// <param name="completionHandler">A block of type UIPrintInteractionCompletionHandler that you implement to handle the conclusion of the print job (for instance, to reset state) and to handle any errors encountered in printing.</param> [iOSVersion(4.2)] [Export("presentFromRect")] public virtual bool PresentFromRect(CGRect rect, UIView inView, bool animated, UIPrintInteractionCompletionHandler completionHandler) { return default(bool); } /// <summary> /// Dismisses the printing-options sheet or popover. /// </summary> /// <param name="animated">true to animate the dismissal, otherwise false.</param> [iOSVersion(4.2)] [Export("dismissAnimated")] public virtual void DismissAnimated(bool animated) { } /// <summary> /// Print directly to the specified printer. /// </summary> /// <param name="printer">The printer to use for printing. You can obtain a list of available printers using a UIPrinterPickerController object.</param> /// <param name="completionHandler">The block to execute when the print operation finishes.</param> [iOSVersion(8)] [Export("printToPrinter")] public virtual bool PrintToPrinter(UIPrinter printer, UIPrintInteractionCompletionHandler completionHandler) { return default(bool); } /// <summary> /// A single ready-to-print object. /// </summary> [iOSVersion(4.2)] [Export("printingItem")] public AnyObject PrintingItem { get; set; } /// <summary> /// An array of ready-to-print objects. /// </summary> [iOSVersion(4.2)] [Export("printingItems")] public AnyObject[] PrintingItems { get; set; } /// <summary> /// An object that draws pages of printable content when requested by UIKit. /// </summary> [iOSVersion(4.2)] [Export("printPageRenderer")] public UIPrintPageRenderer PrintPageRenderer { get; set; } /// <summary> /// An object that lays out the content of pages based on the kind of content. /// </summary> [iOSVersion(4.2)] [Export("printFormatter")] public UIPrintFormatter PrintFormatter { get; set; } /// <summary> /// An object encapsulating information about the print job. /// </summary> [iOSVersion(4.2)] [Export("printInfo")] public UIPrintInfo PrintInfo { get; set; } /// <summary> /// An object representing the paper size and printing area for the print job. (read-only) /// </summary> [iOSVersion(4.2)] [Export("printPaper")] public UIPrintPaper PrintPaper { get; private set; } /// <summary> /// A Boolean value that determines whether the printing options include the number of copies. /// </summary> [iOSVersion(7)] [Export("showsNumberOfCopies")] public bool ShowsNumberOfCopies { get; set; } /// <summary> /// A Boolean value that determines whether the printing options include a page-range control. /// </summary> [iOSVersion(4.2)] [Export("showsPageRange")] public bool ShowsPageRange { get; set; } /// <summary> /// A Boolean value for enabling the paper selection menu. /// </summary> [iOSVersion(8)] [Export("showsPaperSelectionForLoadedPapers")] public bool ShowsPaperSelectionForLoadedPapers { get; set; } /// <summary> /// The delegate of the print interaction controller. /// </summary> [iOSVersion(4.2)] [Export("delegate")] public UIPrintInteractionControllerDelegate Delegate { get; set; } /// <summary> /// Error codes for UIKit printing errors. /// </summary> public int UIPrintingNotAvailableError { get; set; } } /// <summary> /// The type of block callback for responding to the completion of a print job or handing printing errors. /// </summary> [iOSVersion(4.2)] public struct UIPrintInteractionCompletionHandler { static public implicit operator UIPrintInteractionCompletionHandler(WEIRD value) { return default(UIPrintInteractionCompletionHandler); } static public implicit operator WEIRD(UIPrintInteractionCompletionHandler value) { return default(WEIRD); } } } \ 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 shared instance of the UIPrintInteractionController class presents a printing user interface and manages the printing of documents, images, and other printable content in iOS. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPrintInteractionController_Class/index.html#//apple_ref/occ/cl/UIPrintInteractionController"/> [iOSVersion(4.2)] public class UIPrintInteractionController : NSObject//, AnyObject, NSObjectProtocol { public UIPrintInteractionController() { } /// <summary> /// Returns the shared print-interaction controller object. /// </summary> [iOSVersion(4.2)] [Export("sharedPrintController")] public static UIPrintInteractionController SharedPrintController() { return default(UIPrintInteractionController); } /// <summary> /// Returns a Boolean indicating whether the device supports printing. /// </summary> [iOSVersion(4.2)] [Export("isPrintingAvailable")] public static bool IsPrintingAvailable() { return default(bool); } /// <summary> /// Returns whether UIKit can print the contents of a data object. /// </summary> /// <param name="data">An instance of the NSData class that contains PDF data or an image in a format supported by the Image I/O framework. See Supported Image Formats in View Programming Guide for iOS for a list of the supported image formats.</param> [iOSVersion(4.2)] [Export("canPrintData")] public static bool CanPrintData(NSData data) { return default(bool); } /// <summary> /// Returns whether UIKit can print the file referenced by a URL. /// </summary> /// <param name="url">An object representing a URL. Valid NSURL objects must use the file: or assets-library: scheme or any scheme that can return an NSData object with a registered protocol. The file referenced by the URL must contain PDF data or an image in a format supported by the Image I/O framework. See Supported Image Formats in View Programming Guide for iOS for a list of the supported image formats.</param> [iOSVersion(4.2)] [Export("canPrintURL")] public static bool CanPrintURL(NSURL url) { return default(bool); } /// <summary> /// Returns a set of the Uniform Type Identifiers for the types of data that UIKit can print. /// </summary> [iOSVersion(4.2)] [Export("printableUTIs")] public static NSSet PrintableUTIs() { return default(NSSet); } /// <summary> /// Presents the iPhone printing user interface in a sheet that can be animated to slide up from the bottom of the screen. /// </summary> /// <param name="animated">true to animate the display of the sheet, false to display the sheet immediately.</param> /// <param name="completionHandler">A block of type UIPrintInteractionCompletionHandler that you implement to handle the conclusion of the print job (for instance, to reset state) and to handle any errors encountered in printing.</param> [iOSVersion(4.2)] [Export("presentAnimated")] public virtual bool PresentAnimated(bool animated, UIPrintInteractionCompletionHandler completionHandler) { return default(bool); } /// <summary> /// Presents the iPad printing user interface in a popover view that can be animated from a bar-button item. /// </summary> /// <param name="item">The UIBarButtonItem object that the user tapped for printing. You are encouraged to use the constant UIBarButtonSystemItemAction when creating a bar-button item for this purpose.</param> /// <param name="animated">true to animate the printing popover view from item, false to display it immediately.</param> /// <param name="completionHandler">A block of type UIPrintInteractionCompletionHandler that you implement to handle the conclusion of the print job (for instance, to reset state) and to handle any errors encountered in printing.</param> [iOSVersion(4.2)] [Export("presentFromBarButtonItem")] public virtual bool PresentFromBarButtonItem(UIBarButtonItem item, bool animated, UIPrintInteractionCompletionHandler completionHandler) { return default(bool); } /// <summary> /// Presents the iPad printing user interface in a popover view that can be animated from any area in a view. /// </summary> /// <param name="rect">A rectangle that defines the area from which the printing popover view is animated.</param> /// <param name="inView">The view providing the coordinate system for rect.</param> /// <param name="animated">true to animate the printing popover view from item, false to display it immediately.</param> /// <param name="completionHandler">A block of type UIPrintInteractionCompletionHandler that you implement to handle the conclusion of the print job (for instance, to reset state) and to handle any errors encountered in printing.</param> [iOSVersion(4.2)] [Export("presentFromRect")] public virtual bool PresentFromRect(CGRect rect, UIView inView, bool animated, UIPrintInteractionCompletionHandler completionHandler) { return default(bool); } /// <summary> /// Dismisses the printing-options sheet or popover. /// </summary> /// <param name="animated">true to animate the dismissal, otherwise false.</param> [iOSVersion(4.2)] [Export("dismissAnimated")] public virtual void DismissAnimated(bool animated) { } /// <summary> /// Print directly to the specified printer. /// </summary> /// <param name="printer">The printer to use for printing. You can obtain a list of available printers using a UIPrinterPickerController object.</param> /// <param name="completionHandler">The block to execute when the print operation finishes.</param> [iOSVersion(8)] [Export("printToPrinter")] public virtual bool PrintToPrinter(UIPrinter printer, UIPrintInteractionCompletionHandler completionHandler) { return default(bool); } /// <summary> /// A single ready-to-print object. /// </summary> [iOSVersion(4.2)] [Export("printingItem")] public AnyObject PrintingItem { get; set; } /// <summary> /// An array of ready-to-print objects. /// </summary> [iOSVersion(4.2)] [Export("printingItems")] public AnyObject[] PrintingItems { get; set; } /// <summary> /// An object that draws pages of printable content when requested by UIKit. /// </summary> [iOSVersion(4.2)] [Export("printPageRenderer")] public UIPrintPageRenderer PrintPageRenderer { get; set; } /// <summary> /// An object that lays out the content of pages based on the kind of content. /// </summary> [iOSVersion(4.2)] [Export("printFormatter")] public UIPrintFormatter PrintFormatter { get; set; } /// <summary> /// An object encapsulating information about the print job. /// </summary> [iOSVersion(4.2)] [Export("printInfo")] public UIPrintInfo PrintInfo { get; set; } /// <summary> /// An object representing the paper size and printing area for the print job. (read-only) /// </summary> [iOSVersion(4.2)] [Export("printPaper")] public UIPrintPaper PrintPaper { get; private set; } /// <summary> /// A Boolean value that determines whether the printing options include the number of copies. /// </summary> [iOSVersion(7)] [Export("showsNumberOfCopies")] public bool ShowsNumberOfCopies { get; set; } /// <summary> /// A Boolean value that determines whether the printing options include a page-range control. /// </summary> [iOSVersion(4.2)] [Export("showsPageRange")] public bool ShowsPageRange { get; set; } /// <summary> /// A Boolean value for enabling the paper selection menu. /// </summary> [iOSVersion(8)] [Export("showsPaperSelectionForLoadedPapers")] public bool ShowsPaperSelectionForLoadedPapers { get; set; } /// <summary> /// The delegate of the print interaction controller. /// </summary> [iOSVersion(4.2)] [Export("delegate")] public UIPrintInteractionControllerDelegate Delegate { get; set; } /// <summary> /// Error codes for UIKit printing errors. /// </summary> public int UIPrintingNotAvailableError { get; set; } } /// <summary> /// The type of block callback for responding to the completion of a print job or handing printing errors. /// </summary> [iOSVersion(4.2)] public struct UIPrintInteractionCompletionHandler { static public implicit operator UIPrintInteractionCompletionHandler(Action<UIPrintInteractionController, bool, NSError> value) { return default(UIPrintInteractionCompletionHandler); } static public implicit operator Action<UIPrintInteractionController, bool, NSError>(UIPrintInteractionCompletionHandler value) { return default(Action<UIPrintInteractionController, bool, NSError>); } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIPrintPaper.cs b/CocoaSharp/UIKit/UIPrintPaper.cs
index 33b005bc..85d1001e 100644
--- a/CocoaSharp/UIKit/UIPrintPaper.cs
+++ b/CocoaSharp/UIKit/UIPrintPaper.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// An instance of the UIPrintPaper class encapsulates the size of paper used for a print job and the rectangle in which content can be printed. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPrintPaper_Class/index.html#//apple_ref/occ/cl/UIPrintPaper"/> [iOSVersion(4.2)] public class UIPrintPaper : NSObject//, AnyObject, NSObjectProtocol { public UIPrintPaper() { } /// <summary> /// Returns the print-paper object that UIKit determines to be the best for a print job based on the given page size and the paper size–imageable area combinations specific to the printer. /// </summary> /// <param name="pageSize">The size of the printed page that your application requests, in points. You should think of this as the size of the physical sheet of paper to use in printing without consideration of the margin.</param> /// <param name="withPapersFromArray">An array of UIPrintPaper objects that represent combinations of supported paper size and printable areas. The array of objects usually comes directly from the second argument of the printInteractionController:choosePaper: method of the UIPrintInteractionControllerDelegate protocol.</param> [iOSVersion(4.2)] [Export("bestPaperForPageSize")] public virtual static UIPrintPaper BestPaperForPageSize(CGSize pageSize, AnyObject[] withPapersFromArray) { return default(UIPrintPaper); } /// <summary> /// The size of the sheet to be used for printing. (read-only) /// </summary> [iOSVersion(4.2)] [Export("paperSize")] public CGSize PaperSize { get; private set; } /// <summary> /// The rectangle that represents the portion of the paper that can be imaged upon. (read-only) /// </summary> [iOSVersion(4.2)] [Export("printableRect")] public CGRect PrintableRect { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// An instance of the UIPrintPaper class encapsulates the size of paper used for a print job and the rectangle in which content can be printed. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPrintPaper_Class/index.html#//apple_ref/occ/cl/UIPrintPaper"/> [iOSVersion(4.2)] public class UIPrintPaper : NSObject//, AnyObject, NSObjectProtocol { public UIPrintPaper() { } /// <summary> /// Returns the print-paper object that UIKit determines to be the best for a print job based on the given page size and the paper size–imageable area combinations specific to the printer. /// </summary> /// <param name="pageSize">The size of the printed page that your application requests, in points. You should think of this as the size of the physical sheet of paper to use in printing without consideration of the margin.</param> /// <param name="withPapersFromArray">An array of UIPrintPaper objects that represent combinations of supported paper size and printable areas. The array of objects usually comes directly from the second argument of the printInteractionController:choosePaper: method of the UIPrintInteractionControllerDelegate protocol.</param> [iOSVersion(4.2)] [Export("bestPaperForPageSize")] public static UIPrintPaper BestPaperForPageSize(CGSize pageSize, AnyObject[] withPapersFromArray) { return default(UIPrintPaper); } /// <summary> /// The size of the sheet to be used for printing. (read-only) /// </summary> [iOSVersion(4.2)] [Export("paperSize")] public CGSize PaperSize { get; private set; } /// <summary> /// The rectangle that represents the portion of the paper that can be imaged upon. (read-only) /// </summary> [iOSVersion(4.2)] [Export("printableRect")] public CGRect PrintableRect { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIPrinterPickerController.cs b/CocoaSharp/UIKit/UIPrinterPickerController.cs
index 30a26102..28d24ab9 100644
--- a/CocoaSharp/UIKit/UIPrinterPickerController.cs
+++ b/CocoaSharp/UIKit/UIPrinterPickerController.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// A UIPrinterPickerController object displays the system interface for selecting a printer. You can use a printer picker controller to display a list of printers to the user prior to printing a document, photo, or other content. Printer pickers display all pickers normally but you can filter out printers by assigning an appropriate delegate object to the picker before displaying it. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPrinterPickerController_class/index.html#//apple_ref/occ/cl/UIPrinterPickerController"/> [iOSVersion(8)] public class UIPrinterPickerController : NSObject//, AnyObject, NSObjectProtocol { public UIPrinterPickerController() { } /// <summary> /// Creates and returns a printer picker with an initially selected printer object. /// </summary> /// <param name="initiallySelectedPrinter">A printer object to select initially. Specify nil if you do not want to display a selected printer initially.</param> [iOSVersion(8)] public UIPrinterPickerController(UIPrinter initiallySelectedPrinter) { } /// <summary> /// Presents the picker from a view controller of your app. /// </summary> /// <param name="animated">true to animate the display of the picker or false to display it without animations.</param> /// <param name="completionHandler">A block to execute when the picker is dismissed. Use this block to receive information about the selected printer or information about any errors that occurred.</param> [iOSVersion(8)] [Export("presentAnimated")] public virtual bool PresentAnimated(bool animated, UIPrinterPickerCompletionHandler completionHandler) { return default(bool); } /// <summary> /// Present the picker in a popover that is anchored to the specified bar button item. /// </summary> /// <param name="item">The bar button item to use as the anchor for the popover.</param> /// <param name="animated">true to animate the display of the picker or false to display it without animations.</param> /// <param name="completionHandler">A block to execute when the picker is dismissed. Use this block to receive information about the selected printer or information about any errors that occurred.</param> [iOSVersion(8)] [Export("presentFromBarButtonItem")] public virtual bool PresentFromBarButtonItem(UIBarButtonItem item, bool animated, UIPrinterPickerCompletionHandler completionHandler) { return default(bool); } /// <summary> /// Present the picker in a popover that is anchored to a rectangle in the specified view. /// </summary> /// <param name="rect">The rectangle to which to anchor the popover. Specify the rectangle using the coordinate system of the view in the view parameter.</param> /// <param name="inView">The view containing the specified rectangle.</param> /// <param name="animated">true to animate the display of the picker or false to display it without animations.</param> /// <param name="completionHandler">A block to execute when the picker is dismissed. Use this block to receive information about the selected printer or information about any errors that occurred.</param> [iOSVersion(8)] [Export("presentFromRect")] public virtual bool PresentFromRect(CGRect rect, UIView inView, bool animated, UIPrinterPickerCompletionHandler completionHandler) { return default(bool); } /// <summary> /// Dismiss the picker. /// </summary> /// <param name="animated">true to animate the dismissal of the picker or false to remove it without animations.</param> [iOSVersion(8)] [Export("dismissAnimated")] public virtual void DismissAnimated(bool animated) { } /// <summary> /// The delegate for the printer picker controller. /// </summary> [iOSVersion(8)] [Export("delegate")] public UIPrinterPickerControllerDelegate Delegate { get; set; } /// <summary> /// The selected printer. (read-only) /// </summary> [iOSVersion(8)] [Export("selectedPrinter")] public UIPrinter SelectedPrinter { get; private set; } } /// <summary> /// The completion handler to execute when dismissing a printer picker controller. /// </summary> [iOSVersion(8)] public struct UIPrinterPickerCompletionHandler { static public implicit operator UIPrinterPickerCompletionHandler(WEIRD value) { return default(UIPrinterPickerCompletionHandler); } static public implicit operator WEIRD(UIPrinterPickerCompletionHandler value) { return default(WEIRD); } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// A UIPrinterPickerController object displays the system interface for selecting a printer. You can use a printer picker controller to display a list of printers to the user prior to printing a document, photo, or other content. Printer pickers display all pickers normally but you can filter out printers by assigning an appropriate delegate object to the picker before displaying it. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIPrinterPickerController_class/index.html#//apple_ref/occ/cl/UIPrinterPickerController"/> [iOSVersion(8)] public class UIPrinterPickerController : NSObject//, AnyObject, NSObjectProtocol { public UIPrinterPickerController() { } /// <summary> /// Creates and returns a printer picker with an initially selected printer object. /// </summary> /// <param name="initiallySelectedPrinter">A printer object to select initially. Specify nil if you do not want to display a selected printer initially.</param> [iOSVersion(8)] public UIPrinterPickerController(UIPrinter initiallySelectedPrinter) { } /// <summary> /// Presents the picker from a view controller of your app. /// </summary> /// <param name="animated">true to animate the display of the picker or false to display it without animations.</param> /// <param name="completionHandler">A block to execute when the picker is dismissed. Use this block to receive information about the selected printer or information about any errors that occurred.</param> [iOSVersion(8)] [Export("presentAnimated")] public virtual bool PresentAnimated(bool animated, UIPrinterPickerCompletionHandler completionHandler) { return default(bool); } /// <summary> /// Present the picker in a popover that is anchored to the specified bar button item. /// </summary> /// <param name="item">The bar button item to use as the anchor for the popover.</param> /// <param name="animated">true to animate the display of the picker or false to display it without animations.</param> /// <param name="completionHandler">A block to execute when the picker is dismissed. Use this block to receive information about the selected printer or information about any errors that occurred.</param> [iOSVersion(8)] [Export("presentFromBarButtonItem")] public virtual bool PresentFromBarButtonItem(UIBarButtonItem item, bool animated, UIPrinterPickerCompletionHandler completionHandler) { return default(bool); } /// <summary> /// Present the picker in a popover that is anchored to a rectangle in the specified view. /// </summary> /// <param name="rect">The rectangle to which to anchor the popover. Specify the rectangle using the coordinate system of the view in the view parameter.</param> /// <param name="inView">The view containing the specified rectangle.</param> /// <param name="animated">true to animate the display of the picker or false to display it without animations.</param> /// <param name="completionHandler">A block to execute when the picker is dismissed. Use this block to receive information about the selected printer or information about any errors that occurred.</param> [iOSVersion(8)] [Export("presentFromRect")] public virtual bool PresentFromRect(CGRect rect, UIView inView, bool animated, UIPrinterPickerCompletionHandler completionHandler) { return default(bool); } /// <summary> /// Dismiss the picker. /// </summary> /// <param name="animated">true to animate the dismissal of the picker or false to remove it without animations.</param> [iOSVersion(8)] [Export("dismissAnimated")] public virtual void DismissAnimated(bool animated) { } /// <summary> /// The delegate for the printer picker controller. /// </summary> [iOSVersion(8)] [Export("delegate")] public UIPrinterPickerControllerDelegate Delegate { get; set; } /// <summary> /// The selected printer. (read-only) /// </summary> [iOSVersion(8)] [Export("selectedPrinter")] public UIPrinter SelectedPrinter { get; private set; } } /// <summary> /// The completion handler to execute when dismissing a printer picker controller. /// </summary> [iOSVersion(8)] public struct UIPrinterPickerCompletionHandler { static public implicit operator UIPrinterPickerCompletionHandler(Action<UIPrinterPickerController, bool, NSError> value) { return default(UIPrinterPickerCompletionHandler); } static public implicit operator Action<UIPrinterPickerController, bool, NSError>(UIPrinterPickerCompletionHandler value) { return default(Action<UIPrinterPickerController, bool, NSError>); } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIReferenceLibraryViewController.cs b/CocoaSharp/UIKit/UIReferenceLibraryViewController.cs
index e718c2c7..e4562fa4 100644
--- a/CocoaSharp/UIKit/UIReferenceLibraryViewController.cs
+++ b/CocoaSharp/UIKit/UIReferenceLibraryViewController.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// A UIReferenceLibraryViewController object provides a dictionary service to look up the definition of a word or term from within an app. It should not be used to display wordlists, create a standalone dictionary app, or republish the content in any form. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIReferenceLibraryViewControllerClassRef/index.html#//apple_ref/occ/cl/UIReferenceLibraryViewController"/> [iOSVersion(5)] public class UIReferenceLibraryViewController : UIViewController//, AnyObject, NSCoding, NSExtensionRequestHandling, NSObjectProtocol, UIAppearanceContainer, UIContentContainer, UIStateRestoring, UITraitEnvironment { public UIReferenceLibraryViewController() { } /// <summary> /// Returns whether a definition is available for the given term. /// </summary> /// <param name="term">The term to be defined.</param> [iOSVersion(5)] [Export("dictionaryHasDefinitionForTerm")] public virtual static bool DictionaryHasDefinitionForTerm(string term) { return default(bool); } /// <summary> /// Initializes a newly created reference-library view controller to display the definition of the given term. /// </summary> /// <param name="term">The term to define.</param> [iOSVersion(5)] public UIReferenceLibraryViewController(string term) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// A UIReferenceLibraryViewController object provides a dictionary service to look up the definition of a word or term from within an app. It should not be used to display wordlists, create a standalone dictionary app, or republish the content in any form. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIReferenceLibraryViewControllerClassRef/index.html#//apple_ref/occ/cl/UIReferenceLibraryViewController"/> [iOSVersion(5)] public class UIReferenceLibraryViewController : UIViewController//, AnyObject, NSCoding, NSExtensionRequestHandling, NSObjectProtocol, UIAppearanceContainer, UIContentContainer, UIStateRestoring, UITraitEnvironment { public UIReferenceLibraryViewController() { } /// <summary> /// Returns whether a definition is available for the given term. /// </summary> /// <param name="term">The term to be defined.</param> [iOSVersion(5)] [Export("dictionaryHasDefinitionForTerm")] public static bool DictionaryHasDefinitionForTerm(string term) { return default(bool); } /// <summary> /// Initializes a newly created reference-library view controller to display the definition of the given term. /// </summary> /// <param name="term">The term to define.</param> [iOSVersion(5)] public UIReferenceLibraryViewController(string term) { } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIRefreshControl.cs b/CocoaSharp/UIKit/UIRefreshControl.cs
index 0263427d..fb7b46c5 100644
--- a/CocoaSharp/UIKit/UIRefreshControl.cs
+++ b/CocoaSharp/UIKit/UIRefreshControl.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// A UIRefreshControl object provides a standard control that can be used to initiate the refreshing of a table view’s contents. You link a refresh control to a table through an associated table view controller object. The table view controller handles the work of adding the control to the table’s visual appearance and managing the display of that control in response to appropriate user gestures. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIRefreshControl_class/index.html#//apple_ref/occ/cl/UIRefreshControl"/> [iOSVersion(6)] public class UIRefreshControl : UIControl//, AnyObject, NSCoding, NSObjectProtocol, Reflectable, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UITraitEnvironment { public UIRefreshControl() { } /// <summary> /// Initializes and returns a standard refresh control. /// </summary> [iOSVersion(6)] public UIRefreshControl() { } /// <summary> /// Tells the control that a refresh operation was started programmatically. /// </summary> [iOSVersion(6)] [Export("beginRefreshing")] public virtual void BeginRefreshing() { } /// <summary> /// Tells the control that a refresh operation has ended. /// </summary> [iOSVersion(6)] [Export("endRefreshing")] public virtual void EndRefreshing() { } /// <summary> /// The tint color for the refresh control. /// </summary> [iOSVersion(6)] [Export("tintColor")] public UIColor TintColor { get; set; } /// <summary> /// The styled title text to display in the refresh control. /// </summary> [iOSVersion(6)] [Export("attributedTitle")] public NSAttributedString AttributedTitle { get; set; } /// <summary> /// A Boolean value indicating whether a refresh operation has been triggered and is in progress. (read-only) /// </summary> [iOSVersion(6)] [Export("refreshing")] public bool Refreshing { get; private set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// A UIRefreshControl object provides a standard control that can be used to initiate the refreshing of a table view’s contents. You link a refresh control to a table through an associated table view controller object. The table view controller handles the work of adding the control to the table’s visual appearance and managing the display of that control in response to appropriate user gestures. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIRefreshControl_class/index.html#//apple_ref/occ/cl/UIRefreshControl"/> [iOSVersion(6)] public class UIRefreshControl : UIControl//, AnyObject, NSCoding, NSObjectProtocol, Reflectable, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UITraitEnvironment { /// <summary> /// Initializes and returns a standard refresh control. /// </summary> [iOSVersion(6)] public UIRefreshControl() { } /// <summary> /// Tells the control that a refresh operation was started programmatically. /// </summary> [iOSVersion(6)] [Export("beginRefreshing")] public virtual void BeginRefreshing() { } /// <summary> /// Tells the control that a refresh operation has ended. /// </summary> [iOSVersion(6)] [Export("endRefreshing")] public virtual void EndRefreshing() { } /// <summary> /// The tint color for the refresh control. /// </summary> [iOSVersion(6)] [Export("tintColor")] public UIColor TintColor { get; set; } /// <summary> /// The styled title text to display in the refresh control. /// </summary> [iOSVersion(6)] [Export("attributedTitle")] public NSAttributedString AttributedTitle { get; set; } /// <summary> /// A Boolean value indicating whether a refresh operation has been triggered and is in progress. (read-only) /// </summary> [iOSVersion(6)] [Export("refreshing")] public bool Refreshing { get; private set; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIResponder.cs b/CocoaSharp/UIKit/UIResponder.cs
index d322657e..6f582dc9 100644
--- a/CocoaSharp/UIKit/UIResponder.cs
+++ b/CocoaSharp/UIKit/UIResponder.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIResponder class defines an interface for objects that respond to and handle events. It is the superclass of UIApplication, UIView and its subclasses (which include UIWindow). Instances of these classes are sometimes referred to as responder objects or, simply, responders. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIResponder_Class/index.html#//apple_ref/occ/cl/UIResponder"/> [iOSVersion(2)] public class UIResponder : NSObject//, AnyObject, NSObjectProtocol { public UIResponder() { } /// <summary> /// Returns the receiver'€™s next responder, or nil if it has none. /// </summary> [iOSVersion(2)] [Export("nextResponder")] public virtual UIResponder NextResponder() { return default(UIResponder); } /// <summary> /// Returns a Boolean value indicating whether the receiver is the first responder. /// </summary> [iOSVersion(2)] [Export("isFirstResponder")] public virtual bool IsFirstResponder() { return default(bool); } /// <summary> /// Returns a Boolean value indicating whether the receiver can become first responder. /// </summary> [iOSVersion(2)] [Export("canBecomeFirstResponder")] public virtual bool CanBecomeFirstResponder() { return default(bool); } /// <summary> /// Notifies the receiver that it is about to become first responder in its window. /// </summary> [iOSVersion(2)] [Export("becomeFirstResponder")] public virtual bool BecomeFirstResponder() { return default(bool); } /// <summary> /// Returns a Boolean value indicating whether the receiver is willing to relinquish first-responder status. /// </summary> [iOSVersion(2)] [Export("canResignFirstResponder")] public virtual bool CanResignFirstResponder() { return default(bool); } /// <summary> /// Notifies the receiver that it has been asked to relinquish its status as first responder in its window. /// </summary> [iOSVersion(2)] [Export("resignFirstResponder")] public virtual bool ResignFirstResponder() { return default(bool); } /// <summary> /// Updates the custom input and accessory views when the object is the first responder. /// </summary> [iOSVersion(3.2)] [Export("reloadInputViews")] public virtual void ReloadInputViews() { } /// <summary> /// Tells the receiver when one or more fingers touch down in a view or window. /// </summary> /// <param name="touches">A set of UITouch instances that represent the touches for the starting phase of the event represented by event.</param> /// <param name="withEvent">An object representing the event to which the touches belong.</param> [iOSVersion(2)] [Export("touchesBegan")] public virtual void TouchesBegan(NSSet touches, UIEvent withEvent) { } /// <summary> /// Tells the receiver when one or more fingers associated with an event move within a view or window. /// </summary> /// <param name="touches">A set of UITouch instances that represent the touches that are moving during the event represented by event.</param> /// <param name="withEvent">An object representing the event to which the touches belong.</param> [iOSVersion(2)] [Export("touchesMoved")] public virtual void TouchesMoved(NSSet touches, UIEvent withEvent) { } /// <summary> /// Tells the receiver when one or more fingers are raised from a view or window. /// </summary> /// <param name="touches">A set of UITouch instances that represent the touches for the ending phase of the event represented by event.</param> /// <param name="withEvent">An object representing the event to which the touches belong.</param> [iOSVersion(2)] [Export("touchesEnded")] public virtual void TouchesEnded(NSSet touches, UIEvent withEvent) { } /// <summary> /// Sent to the receiver when a system event (such as a low-memory warning) cancels a touch event. /// </summary> /// <param name="touches">A set of UITouch instances that represent the touches for the ending phase of the event represented by event.</param> /// <param name="withEvent">An object representing the event to which the touches belong.</param> [iOSVersion(2)] [Export("touchesCancelled")] public virtual void TouchesCancelled(NSSet touches, UIEvent withEvent) { } /// <summary> /// Tells the receiver that a motion event has begun. /// </summary> /// <param name="motion">An event-subtype constant indicating the kind of motion. A common motion is shaking, which is indicated by UIEventSubtypeMotionShake.</param> /// <param name="withEvent">An object representing the event associated with the motion.</param> [iOSVersion(3)] [Export("motionBegan")] public virtual void MotionBegan(UIEventSubtype motion, UIEvent withEvent) { } /// <summary> /// Tells the receiver that a motion event has ended. /// </summary> /// <param name="motion">An event-subtype constant indicating the kind of motion. A common motion is shaking, which is indicated by UIEventSubtypeMotionShake.</param> /// <param name="withEvent">An object representing the event associated with the motion.</param> [iOSVersion(3)] [Export("motionEnded")] public virtual void MotionEnded(UIEventSubtype motion, UIEvent withEvent) { } /// <summary> /// Tells the receiver that a motion event has been cancelled. /// </summary> /// <param name="motion">An event-subtype constant indicating the kind of motion associated with event. A common motion is shaking, which is indicated by UIEventSubtypeMotionShake.</param> /// <param name="withEvent">An object representing the event associated with the motion.</param> [iOSVersion(3)] [Export("motionCancelled")] public virtual void MotionCancelled(UIEventSubtype motion, UIEvent withEvent) { } /// <summary> /// Sent to the receiver when a remote-control event is received. /// </summary> /// <param name="event">An event object encapsulating a remote-control command. Remote-control events have a type of UIEventTypeRemoteControl.</param> [iOSVersion(4)] [Export("remoteControlReceivedWithEvent")] public virtual void RemoteControlReceivedWithEvent(UIEvent event) { } /// <summary> /// Requests the receiving responder to enable or disable the specified command in the user interface. /// </summary> /// <param name="action">A selector that identifies a method associated with a command. For the editing menu, this is one of the editing methods declared by the UIResponderStandardEditActions informal protocol (for example, copy:).</param> /// <param name="withSender">The object calling this method. For the editing menu commands, this is the shared UIApplication object. Depending on the context, you can query the sender for information to help you determine whether a command should be enabled.</param> [iOSVersion(3)] [Export("canPerformAction")] public virtual bool CanPerformAction(Selector action, AnyObject withSender) { return default(bool); } /// <summary> /// Returns the target object that responds to an action. /// </summary> /// <param name="action">A selector that identifies a method associated with a command.</param> /// <param name="withSender">The object calling this method. For the editing menu commands, this is the shared UIApplication object. Depending on the context, you can query the sender for information to help you determine the target of the command.</param> [iOSVersion(7)] [Export("targetForAction")] public virtual AnyObject TargetForAction(Selector action, AnyObject withSender) { return default(AnyObject); } /// <summary> /// Clears text input mode information from the app’s user defaults. /// </summary> /// <param name="identifier">An identifier assigned to the textInputContextIdentifier property of one of your responders.</param> [iOSVersion(7)] [Export("clearTextInputContextIdentifier")] public virtual static void ClearTextInputContextIdentifier(string identifier) { } /// <summary> /// Restores the state needed to continue the given user activity. /// </summary> /// <param name="activity">The user activity to be continued.</param> [iOSVersion(8)] [Export("restoreUserActivityState")] public virtual void RestoreUserActivityState(NSUserActivity activity) { } /// <summary> /// Updates the state of the given user activity. /// </summary> /// <param name="activity">The user activity to be updated.</param> [iOSVersion(8)] [Export("updateUserActivityState")] public virtual void UpdateUserActivityState(NSUserActivity activity) { } /// <summary> /// The custom input view to display when the receiver becomes the first responder. (read-only) /// </summary> [iOSVersion(3.2)] [Export("inputView")] public UIView InputView { get; private set; } /// <summary> /// The custom input view controller to use when the receiver becomes the first responder. (read-only) /// </summary> [iOSVersion(8)] [Export("inputViewController")] public UIInputViewController InputViewController { get; private set; } /// <summary> /// The custom input accessory view to display when the receiver becomes the first responder. (read-only) /// </summary> [iOSVersion(3.2)] [Export("inputAccessoryView")] public UIView InputAccessoryView { get; private set; } /// <summary> /// The custom input accessory view controller to display when the receiver becomes the first responder. (read-only) /// </summary> [iOSVersion(8)] [Export("inputAccessoryViewController")] public UIInputViewController InputAccessoryViewController { get; private set; } /// <summary> /// Returns the nearest shared undo manager in the responder chain. (read-only) /// </summary> [iOSVersion(3)] [Export("undoManager")] public NSUndoManager UndoManager { get; private set; } /// <summary> /// The key commands that trigger actions on this responder. (read-only) /// </summary> [iOSVersion(7)] [Export("keyCommands")] public AnyObject[] KeyCommands { get; private set; } /// <summary> /// The text input mode for this responder object. (read-only) /// </summary> [iOSVersion(7)] [Export("textInputMode")] public UITextInputMode TextInputMode { get; private set; } /// <summary> /// An identifier signifying that the responder should preserve its text input mode information. (read-only) /// </summary> [iOSVersion(7)] [Export("textInputContextIdentifier")] public string TextInputContextIdentifier { get; private set; } /// <summary> /// An object encapsulating a user activity supported by this responder. /// </summary> [iOSVersion(8)] [Export("userActivity")] public NSUserActivity UserActivity { get; set; } } } \ 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 UIResponder class defines an interface for objects that respond to and handle events. It is the superclass of UIApplication, UIView and its subclasses (which include UIWindow). Instances of these classes are sometimes referred to as responder objects or, simply, responders. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIResponder_Class/index.html#//apple_ref/occ/cl/UIResponder"/> [iOSVersion(2)] public class UIResponder : NSObject//, AnyObject, NSObjectProtocol { public UIResponder() { } /// <summary> /// Returns the receiver'€™s next responder, or nil if it has none. /// </summary> [iOSVersion(2)] [Export("nextResponder")] public virtual UIResponder NextResponder() { return default(UIResponder); } /// <summary> /// Returns a Boolean value indicating whether the receiver is the first responder. /// </summary> [iOSVersion(2)] [Export("isFirstResponder")] public virtual bool IsFirstResponder() { return default(bool); } /// <summary> /// Returns a Boolean value indicating whether the receiver can become first responder. /// </summary> [iOSVersion(2)] [Export("canBecomeFirstResponder")] public virtual bool CanBecomeFirstResponder() { return default(bool); } /// <summary> /// Notifies the receiver that it is about to become first responder in its window. /// </summary> [iOSVersion(2)] [Export("becomeFirstResponder")] public virtual bool BecomeFirstResponder() { return default(bool); } /// <summary> /// Returns a Boolean value indicating whether the receiver is willing to relinquish first-responder status. /// </summary> [iOSVersion(2)] [Export("canResignFirstResponder")] public virtual bool CanResignFirstResponder() { return default(bool); } /// <summary> /// Notifies the receiver that it has been asked to relinquish its status as first responder in its window. /// </summary> [iOSVersion(2)] [Export("resignFirstResponder")] public virtual bool ResignFirstResponder() { return default(bool); } /// <summary> /// Updates the custom input and accessory views when the object is the first responder. /// </summary> [iOSVersion(3.2)] [Export("reloadInputViews")] public virtual void ReloadInputViews() { } /// <summary> /// Tells the receiver when one or more fingers touch down in a view or window. /// </summary> /// <param name="touches">A set of UITouch instances that represent the touches for the starting phase of the event represented by event.</param> /// <param name="withEvent">An object representing the event to which the touches belong.</param> [iOSVersion(2)] [Export("touchesBegan")] public virtual void TouchesBegan(NSSet touches, UIEvent withEvent) { } /// <summary> /// Tells the receiver when one or more fingers associated with an event move within a view or window. /// </summary> /// <param name="touches">A set of UITouch instances that represent the touches that are moving during the event represented by event.</param> /// <param name="withEvent">An object representing the event to which the touches belong.</param> [iOSVersion(2)] [Export("touchesMoved")] public virtual void TouchesMoved(NSSet touches, UIEvent withEvent) { } /// <summary> /// Tells the receiver when one or more fingers are raised from a view or window. /// </summary> /// <param name="touches">A set of UITouch instances that represent the touches for the ending phase of the event represented by event.</param> /// <param name="withEvent">An object representing the event to which the touches belong.</param> [iOSVersion(2)] [Export("touchesEnded")] public virtual void TouchesEnded(NSSet touches, UIEvent withEvent) { } /// <summary> /// Sent to the receiver when a system event (such as a low-memory warning) cancels a touch event. /// </summary> /// <param name="touches">A set of UITouch instances that represent the touches for the ending phase of the event represented by event.</param> /// <param name="withEvent">An object representing the event to which the touches belong.</param> [iOSVersion(2)] [Export("touchesCancelled")] public virtual void TouchesCancelled(NSSet touches, UIEvent withEvent) { } /// <summary> /// Tells the receiver that a motion event has begun. /// </summary> /// <param name="motion">An event-subtype constant indicating the kind of motion. A common motion is shaking, which is indicated by UIEventSubtypeMotionShake.</param> /// <param name="withEvent">An object representing the event associated with the motion.</param> [iOSVersion(3)] [Export("motionBegan")] public virtual void MotionBegan(UIEventSubtype motion, UIEvent withEvent) { } /// <summary> /// Tells the receiver that a motion event has ended. /// </summary> /// <param name="motion">An event-subtype constant indicating the kind of motion. A common motion is shaking, which is indicated by UIEventSubtypeMotionShake.</param> /// <param name="withEvent">An object representing the event associated with the motion.</param> [iOSVersion(3)] [Export("motionEnded")] public virtual void MotionEnded(UIEventSubtype motion, UIEvent withEvent) { } /// <summary> /// Tells the receiver that a motion event has been cancelled. /// </summary> /// <param name="motion">An event-subtype constant indicating the kind of motion associated with event. A common motion is shaking, which is indicated by UIEventSubtypeMotionShake.</param> /// <param name="withEvent">An object representing the event associated with the motion.</param> [iOSVersion(3)] [Export("motionCancelled")] public virtual void MotionCancelled(UIEventSubtype motion, UIEvent withEvent) { } /// <summary> /// Sent to the receiver when a remote-control event is received. /// </summary> /// <param name="event">An event object encapsulating a remote-control command. Remote-control events have a type of UIEventTypeRemoteControl.</param> [iOSVersion(4)] [Export("remoteControlReceivedWithEvent")] public virtual void RemoteControlReceivedWithEvent(UIEvent @event) { } /// <summary> /// Requests the receiving responder to enable or disable the specified command in the user interface. /// </summary> /// <param name="action">A selector that identifies a method associated with a command. For the editing menu, this is one of the editing methods declared by the UIResponderStandardEditActions informal protocol (for example, copy:).</param> /// <param name="withSender">The object calling this method. For the editing menu commands, this is the shared UIApplication object. Depending on the context, you can query the sender for information to help you determine whether a command should be enabled.</param> [iOSVersion(3)] [Export("canPerformAction")] public virtual bool CanPerformAction(Selector action, AnyObject withSender) { return default(bool); } /// <summary> /// Returns the target object that responds to an action. /// </summary> /// <param name="action">A selector that identifies a method associated with a command.</param> /// <param name="withSender">The object calling this method. For the editing menu commands, this is the shared UIApplication object. Depending on the context, you can query the sender for information to help you determine the target of the command.</param> [iOSVersion(7)] [Export("targetForAction")] public virtual AnyObject TargetForAction(Selector action, AnyObject withSender) { return default(AnyObject); } /// <summary> /// Clears text input mode information from the app’s user defaults. /// </summary> /// <param name="identifier">An identifier assigned to the textInputContextIdentifier property of one of your responders.</param> [iOSVersion(7)] [Export("clearTextInputContextIdentifier")] public static void ClearTextInputContextIdentifier(string identifier) { } /// <summary> /// Restores the state needed to continue the given user activity. /// </summary> /// <param name="activity">The user activity to be continued.</param> [iOSVersion(8)] [Export("restoreUserActivityState")] public virtual void RestoreUserActivityState(NSUserActivity activity) { } /// <summary> /// Updates the state of the given user activity. /// </summary> /// <param name="activity">The user activity to be updated.</param> [iOSVersion(8)] [Export("updateUserActivityState")] public virtual void UpdateUserActivityState(NSUserActivity activity) { } /// <summary> /// The custom input view to display when the receiver becomes the first responder. (read-only) /// </summary> [iOSVersion(3.2)] [Export("inputView")] public UIView InputView { get; private set; } /// <summary> /// The custom input view controller to use when the receiver becomes the first responder. (read-only) /// </summary> [iOSVersion(8)] [Export("inputViewController")] public UIInputViewController InputViewController { get; private set; } /// <summary> /// The custom input accessory view to display when the receiver becomes the first responder. (read-only) /// </summary> [iOSVersion(3.2)] [Export("inputAccessoryView")] public UIView InputAccessoryView { get; private set; } /// <summary> /// The custom input accessory view controller to display when the receiver becomes the first responder. (read-only) /// </summary> [iOSVersion(8)] [Export("inputAccessoryViewController")] public UIInputViewController InputAccessoryViewController { get; private set; } /// <summary> /// Returns the nearest shared undo manager in the responder chain. (read-only) /// </summary> [iOSVersion(3)] [Export("undoManager")] public NSUndoManager UndoManager { get; private set; } /// <summary> /// The key commands that trigger actions on this responder. (read-only) /// </summary> [iOSVersion(7)] [Export("keyCommands")] public AnyObject[] KeyCommands { get; private set; } /// <summary> /// The text input mode for this responder object. (read-only) /// </summary> [iOSVersion(7)] [Export("textInputMode")] public UITextInputMode TextInputMode { get; private set; } /// <summary> /// An identifier signifying that the responder should preserve its text input mode information. (read-only) /// </summary> [iOSVersion(7)] [Export("textInputContextIdentifier")] public string TextInputContextIdentifier { get; private set; } /// <summary> /// An object encapsulating a user activity supported by this responder. /// </summary> [iOSVersion(8)] [Export("userActivity")] public NSUserActivity UserActivity { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIScreen.cs b/CocoaSharp/UIKit/UIScreen.cs
index 8c358ed1..4949fcf6 100644
--- a/CocoaSharp/UIKit/UIScreen.cs
+++ b/CocoaSharp/UIKit/UIScreen.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// A UIScreen object defines the properties associated with a hardware-based display. iOS devices have a main screen and zero or more attached screens. Use this class to obtain screen objects for each display attached to the device. Each screen object defines the bounds rectangle for the associated display and other interesting properties such as its brightness. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIScreen_Class/index.html#//apple_ref/occ/cl/UIScreen"/> [iOSVersion(2)] public class UIScreen : NSObject//, AnyObject, NSObjectProtocol, UITraitEnvironment { public UIScreen() { } /// <summary> /// Returns the screen object representing the device’s screen. /// </summary> [iOSVersion(2)] [Export("mainScreen")] public virtual static UIScreen MainScreen() { return default(UIScreen); } /// <summary> /// Returns an array containing all of the screens attached to the device. /// </summary> [iOSVersion(3.2)] [Export("screens")] public virtual static AnyObject[] Screens() { return default(AnyObject[]); } /// <summary> /// Returns a display link object for the current screen. /// </summary> /// <param name="target">An object to be notified when the screen should be updated.</param> /// <param name="selector">The method of target to call. This selector must have the following signature: /// Swift /// func selector(sender: CADisplayLink) { } /// Objective-C /// - (void)selector:(CADisplayLink *)sender;</param> [iOSVersion(4)] [Export("displayLinkWithTarget")] public virtual CADisplayLink DisplayLinkWithTarget(AnyObject target, Selector selector) { return default(CADisplayLink); } /// <summary> /// Returns a snapshot view based on the current screen contents. /// </summary> /// <param name="afterUpdates">A Boolean that indicates whether the snapshot should be taken after recent changes have been incorporated. Specify the value false if you want to capture the screen in its current state, which might not include recent changes.</param> [iOSVersion(7)] [Export("snapshotViewAfterScreenUpdates")] public virtual UIView SnapshotViewAfterScreenUpdates(bool afterUpdates) { return default(UIView); } /// <summary> /// The screen being mirrored by an external display. (read-only) /// </summary> [iOSVersion(4.3)] [Export("mirroredScreen")] public UIScreen MirroredScreen { get; private set; } /// <summary> /// The current coordinate space of the screen. (read-only) /// </summary> [iOSVersion(8)] [Export("coordinateSpace")] public UICoordinateSpace CoordinateSpace { get; private set; } /// <summary> /// The fixed coordinate space of the screen. (read-only) /// </summary> [iOSVersion(8)] [Export("fixedCoordinateSpace")] public UICoordinateSpace FixedCoordinateSpace { get; private set; } /// <summary> /// The bounding rectangle of the screen, measured in points. (read-only) /// </summary> [iOSVersion(2)] [Export("bounds")] public CGRect Bounds { get; private set; } /// <summary> /// The frame rectangle for the app window, measured in points. (read-only) /// </summary> [iOSVersion(2)] [Export("applicationFrame")] public CGRect ApplicationFrame { get; private set; } /// <summary> /// The bounding rectangle of the physical screen, measured in pixels. (read-only) /// </summary> [iOSVersion(8)] [Export("nativeBounds")] public CGRect NativeBounds { get; private set; } /// <summary> /// The native scale factor for the physical screen. (read-only) /// </summary> [iOSVersion(8)] [Export("nativeScale")] public CGFloat NativeScale { get; private set; } /// <summary> /// The natural scale factor associated with the screen. (read-only) /// </summary> [iOSVersion(4)] [Export("scale")] public CGFloat Scale { get; private set; } /// <summary> /// The preferred display mode for the screen. (read-only) /// </summary> [iOSVersion(4.3)] [Export("preferredMode")] public UIScreenMode PreferredMode { get; private set; } /// <summary> /// The display modes that can be associated with the screen. (read-only) /// </summary> [iOSVersion(3.2)] [Export("availableModes")] public AnyObject[] AvailableModes { get; private set; } /// <summary> /// The current screen mode associated with the screen. /// </summary> [iOSVersion(3.2)] [Export("currentMode")] public UIScreenMode CurrentMode { get; set; } /// <summary> /// The brightness level of the screen. /// </summary> [iOSVersion(5)] [Export("brightness")] public CGFloat Brightness { get; set; } /// <summary> /// A Boolean value that indicates whether the screen may be dimmed lower than the hardware is normally capable of by emulating it in software. /// </summary> [iOSVersion(5)] [Export("wantsSoftwareDimming")] public bool WantsSoftwareDimming { get; set; } /// <summary> /// For an external screen, this property sets the desired technique to compensate for overscan. /// </summary> [iOSVersion(5)] [Export("overscanCompensation")] public UIScreenOverscanCompensation OverscanCompensation { get; set; } } /// <summary> /// Describes different techniques for compensating for pixel loss at the edge of the screen. /// </summary> [iOSVersion(5)] public enum UIScreenOverscanCompensation { /// <summary> /// The final composited framebuffer for the screen is scaled so that all pixels lie in the area visible on the screen. /// </summary> [iOSVersion(5)] Scale, /// <summary> /// The screen bounds are reduced in size so that all pixels in the framebuffer are visible on the screen. /// </summary> [iOSVersion(5)] InsetBounds, /// <summary> /// The application frame is reduced in size to compensate for overscan. Content drawn outside the application frame may be clipped. /// </summary> [iOSVersion(5)] InsetApplicationFrame, } /// <summary> /// Connection notifications are not sent for screens that are already present when the application is launched. The application can instead use the screens method to get the current set of screens at launch time. /// </summary> [iOSVersion(3.2)] public class UIScreenDidConnectNotification : NSNotification { public UIScreenDidConnectNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(3.2)] public class UIScreenDidDisconnectNotification : NSNotification { public UIScreenDidDisconnectNotification() : base("", null) { } } /// <summary> /// Clients can use this notification to detect changes in the screen resolution. /// </summary> [iOSVersion(3.2)] public class UIScreenModeDidChangeNotification : NSNotification { public UIScreenModeDidChangeNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(5)] public class UIScreenBrightnessDidChangeNotification : NSNotification { public UIScreenBrightnessDidChangeNotification() : base("", null) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// A UIScreen object defines the properties associated with a hardware-based display. iOS devices have a main screen and zero or more attached screens. Use this class to obtain screen objects for each display attached to the device. Each screen object defines the bounds rectangle for the associated display and other interesting properties such as its brightness. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIScreen_Class/index.html#//apple_ref/occ/cl/UIScreen"/> [iOSVersion(2)] public class UIScreen : NSObject//, AnyObject, NSObjectProtocol, UITraitEnvironment { public UIScreen() { } /// <summary> /// Returns the screen object representing the device’s screen. /// </summary> [iOSVersion(2)] [Export("mainScreen")] public static UIScreen MainScreen() { return default(UIScreen); } /// <summary> /// Returns an array containing all of the screens attached to the device. /// </summary> [iOSVersion(3.2)] [Export("screens")] public static AnyObject[] Screens() { return default(AnyObject[]); } /// <summary> /// Returns a display link object for the current screen. /// </summary> /// <param name="target">An object to be notified when the screen should be updated.</param> /// <param name="selector">The method of target to call. This selector must have the following signature: /// Swift /// func selector(sender: CADisplayLink) { } /// Objective-C /// - (void)selector:(CADisplayLink *)sender;</param> [iOSVersion(4)] [Export("displayLinkWithTarget")] public virtual CADisplayLink DisplayLinkWithTarget(AnyObject target, Selector selector) { return default(CADisplayLink); } /// <summary> /// Returns a snapshot view based on the current screen contents. /// </summary> /// <param name="afterUpdates">A Boolean that indicates whether the snapshot should be taken after recent changes have been incorporated. Specify the value false if you want to capture the screen in its current state, which might not include recent changes.</param> [iOSVersion(7)] [Export("snapshotViewAfterScreenUpdates")] public virtual UIView SnapshotViewAfterScreenUpdates(bool afterUpdates) { return default(UIView); } /// <summary> /// The screen being mirrored by an external display. (read-only) /// </summary> [iOSVersion(4.3)] [Export("mirroredScreen")] public UIScreen MirroredScreen { get; private set; } /// <summary> /// The current coordinate space of the screen. (read-only) /// </summary> [iOSVersion(8)] [Export("coordinateSpace")] public UICoordinateSpace CoordinateSpace { get; private set; } /// <summary> /// The fixed coordinate space of the screen. (read-only) /// </summary> [iOSVersion(8)] [Export("fixedCoordinateSpace")] public UICoordinateSpace FixedCoordinateSpace { get; private set; } /// <summary> /// The bounding rectangle of the screen, measured in points. (read-only) /// </summary> [iOSVersion(2)] [Export("bounds")] public CGRect Bounds { get; private set; } /// <summary> /// The frame rectangle for the app window, measured in points. (read-only) /// </summary> [iOSVersion(2)] [Export("applicationFrame")] public CGRect ApplicationFrame { get; private set; } /// <summary> /// The bounding rectangle of the physical screen, measured in pixels. (read-only) /// </summary> [iOSVersion(8)] [Export("nativeBounds")] public CGRect NativeBounds { get; private set; } /// <summary> /// The native scale factor for the physical screen. (read-only) /// </summary> [iOSVersion(8)] [Export("nativeScale")] public CGFloat NativeScale { get; private set; } /// <summary> /// The natural scale factor associated with the screen. (read-only) /// </summary> [iOSVersion(4)] [Export("scale")] public CGFloat Scale { get; private set; } /// <summary> /// The preferred display mode for the screen. (read-only) /// </summary> [iOSVersion(4.3)] [Export("preferredMode")] public UIScreenMode PreferredMode { get; private set; } /// <summary> /// The display modes that can be associated with the screen. (read-only) /// </summary> [iOSVersion(3.2)] [Export("availableModes")] public AnyObject[] AvailableModes { get; private set; } /// <summary> /// The current screen mode associated with the screen. /// </summary> [iOSVersion(3.2)] [Export("currentMode")] public UIScreenMode CurrentMode { get; set; } /// <summary> /// The brightness level of the screen. /// </summary> [iOSVersion(5)] [Export("brightness")] public CGFloat Brightness { get; set; } /// <summary> /// A Boolean value that indicates whether the screen may be dimmed lower than the hardware is normally capable of by emulating it in software. /// </summary> [iOSVersion(5)] [Export("wantsSoftwareDimming")] public bool WantsSoftwareDimming { get; set; } /// <summary> /// For an external screen, this property sets the desired technique to compensate for overscan. /// </summary> [iOSVersion(5)] [Export("overscanCompensation")] public UIScreenOverscanCompensation OverscanCompensation { get; set; } } /// <summary> /// Describes different techniques for compensating for pixel loss at the edge of the screen. /// </summary> [iOSVersion(5)] public enum UIScreenOverscanCompensation { /// <summary> /// The final composited framebuffer for the screen is scaled so that all pixels lie in the area visible on the screen. /// </summary> [iOSVersion(5)] Scale, /// <summary> /// The screen bounds are reduced in size so that all pixels in the framebuffer are visible on the screen. /// </summary> [iOSVersion(5)] InsetBounds, /// <summary> /// The application frame is reduced in size to compensate for overscan. Content drawn outside the application frame may be clipped. /// </summary> [iOSVersion(5)] InsetApplicationFrame, } /// <summary> /// Connection notifications are not sent for screens that are already present when the application is launched. The application can instead use the screens method to get the current set of screens at launch time. /// </summary> [iOSVersion(3.2)] public class UIScreenDidConnectNotification : NSNotification { public UIScreenDidConnectNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(3.2)] public class UIScreenDidDisconnectNotification : NSNotification { public UIScreenDidDisconnectNotification() : base("", null) { } } /// <summary> /// Clients can use this notification to detect changes in the screen resolution. /// </summary> [iOSVersion(3.2)] public class UIScreenModeDidChangeNotification : NSNotification { public UIScreenModeDidChangeNotification() : base("", null) { } } /// <summary> /// /// </summary> [iOSVersion(5)] public class UIScreenBrightnessDidChangeNotification : NSNotification { public UIScreenBrightnessDidChangeNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UITextChecker.cs b/CocoaSharp/UIKit/UITextChecker.cs
index 050a89a8..798dec6a 100644
--- a/CocoaSharp/UIKit/UITextChecker.cs
+++ b/CocoaSharp/UIKit/UITextChecker.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// You use instances of the UITextChecker class to check a string (usually the text of a document) for misspelled words. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITextChecker_Class/index.html#//apple_ref/occ/cl/UITextChecker"/> [iOSVersion(3.2)] public class UITextChecker : NSObject//, AnyObject, NSObjectProtocol { public UITextChecker() { } /// <summary> /// Initiates a search of a range of a string for a misspelled word. /// </summary> /// <param name="stringToCheck">The string to check for misspelled words.</param> /// <param name="range">The range of stringToCheck to check for a misspelled word.</param> /// <param name="startingAt">The offset within range of stringToCheck to begin checking for misspelled words.</param> /// <param name="wrap">true to continue checking from the beginning of range if no misspelled word is found between startingOffset and the end of range. Specify false to have spell-checking end at the end of range.</param> /// <param name="language">The language of the of words to be checked for correct spelling. This string is a ISO 639-1 language code or a combined ISO 639-1 language code and ISO 3166-1 regional code (for example, fr_FR).</param> [iOSVersion(3.2)] [Export("rangeOfMisspelledWordInString")] public virtual NSRange RangeOfMisspelledWordInString(string stringToCheck, NSRange range, int startingAt, bool wrap, string language) { return default(NSRange); } /// <summary> /// Returns a list of words that are possible valid replacements for a misspelled word. /// </summary> /// <param name="range">The range of a misspelled word in string.</param> /// <param name="inString">A string in which there is a misspelled word, as located by range.</param> /// <param name="language">The language of the of the words that are possible corrections. This string is from the ISO 639-1 standard, for example es (Spanish).</param> [iOSVersion(3.2)] [Export("guessesForWordRange")] public virtual AnyObject[] GuessesForWordRange(NSRange range, string inString, string language) { return default(AnyObject[]); } /// <summary> /// Returns an array of strings that are possible completions for a partially entered word. /// </summary> /// <param name="range">The range of a partially entered word in string.</param> /// <param name="inString">A string in which there is a partially entered word, as located by range.</param> /// <param name="language">The language of the of the words that are possible corrections. This string is a ISO 639-1 language code or a combined ISO 639-1 language code and ISO 3166-1 regional code (for example, fr_CA).</param> [iOSVersion(3.2)] [Export("completionsForPartialWordRange")] public virtual AnyObject[] CompletionsForPartialWordRange(NSRange range, string inString, string language) { return default(AnyObject[]); } /// <summary> /// Tells the receiver to ignore the specified word when spell-checking. /// </summary> /// <param name="wordToIgnore">A string that is a word the receiver should ignore when it is spell-checking a document.</param> [iOSVersion(3.2)] [Export("ignoreWord")] public virtual void IgnoreWord(string wordToIgnore) { } /// <summary> /// Returns the words that the receiver ignores when spell-checking. /// </summary> [iOSVersion(3.2)] [Export("ignoredWords")] public virtual AnyObject[] IgnoredWords() { return default(AnyObject[]); } /// <summary> /// Sets the list of words that the receiver should ignore when it is spell-checking a document. /// </summary> /// <param name="words">An array of strings, each of which specifies a word the receiver should ignore when it is spell-checking a document.</param> [iOSVersion(3.2)] [Export("setIgnoredWords")] public virtual void SetIgnoredWords(AnyObject[] words) { } /// <summary> /// Tells the text checker to learn the specified word so that it is not evaluated as misspelled. /// </summary> /// <param name="word">A string representing the word for the class to learn.</param> [iOSVersion(3.2)] [Export("learnWord")] public virtual static void LearnWord(string word) { } /// <summary> /// Tells the text checker to unlearn the specified word /// </summary> /// <param name="word">A string representing the word for the class to unlearn.</param> [iOSVersion(3.2)] [Export("unlearnWord")] public virtual static void UnlearnWord(string word) { } /// <summary> /// Returns whether the text checker has learned the specified word. /// </summary> /// <param name="word">A string representing a word.</param> [iOSVersion(3.2)] [Export("hasLearnedWord")] public virtual static bool HasLearnedWord(string word) { return default(bool); } /// <summary> /// Returns the languages for which the text checker’s class can perform spell-checking. /// </summary> [iOSVersion(3.2)] [Export("availableLanguages")] public virtual static AnyObject[] AvailableLanguages() { return default(AnyObject[]); } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// You use instances of the UITextChecker class to check a string (usually the text of a document) for misspelled words. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITextChecker_Class/index.html#//apple_ref/occ/cl/UITextChecker"/> [iOSVersion(3.2)] public class UITextChecker : NSObject//, AnyObject, NSObjectProtocol { public UITextChecker() { } /// <summary> /// Initiates a search of a range of a string for a misspelled word. /// </summary> /// <param name="stringToCheck">The string to check for misspelled words.</param> /// <param name="range">The range of stringToCheck to check for a misspelled word.</param> /// <param name="startingAt">The offset within range of stringToCheck to begin checking for misspelled words.</param> /// <param name="wrap">true to continue checking from the beginning of range if no misspelled word is found between startingOffset and the end of range. Specify false to have spell-checking end at the end of range.</param> /// <param name="language">The language of the of words to be checked for correct spelling. This string is a ISO 639-1 language code or a combined ISO 639-1 language code and ISO 3166-1 regional code (for example, fr_FR).</param> [iOSVersion(3.2)] [Export("rangeOfMisspelledWordInString")] public virtual NSRange RangeOfMisspelledWordInString(string stringToCheck, NSRange range, int startingAt, bool wrap, string language) { return default(NSRange); } /// <summary> /// Returns a list of words that are possible valid replacements for a misspelled word. /// </summary> /// <param name="range">The range of a misspelled word in string.</param> /// <param name="inString">A string in which there is a misspelled word, as located by range.</param> /// <param name="language">The language of the of the words that are possible corrections. This string is from the ISO 639-1 standard, for example es (Spanish).</param> [iOSVersion(3.2)] [Export("guessesForWordRange")] public virtual AnyObject[] GuessesForWordRange(NSRange range, string inString, string language) { return default(AnyObject[]); } /// <summary> /// Returns an array of strings that are possible completions for a partially entered word. /// </summary> /// <param name="range">The range of a partially entered word in string.</param> /// <param name="inString">A string in which there is a partially entered word, as located by range.</param> /// <param name="language">The language of the of the words that are possible corrections. This string is a ISO 639-1 language code or a combined ISO 639-1 language code and ISO 3166-1 regional code (for example, fr_CA).</param> [iOSVersion(3.2)] [Export("completionsForPartialWordRange")] public virtual AnyObject[] CompletionsForPartialWordRange(NSRange range, string inString, string language) { return default(AnyObject[]); } /// <summary> /// Tells the receiver to ignore the specified word when spell-checking. /// </summary> /// <param name="wordToIgnore">A string that is a word the receiver should ignore when it is spell-checking a document.</param> [iOSVersion(3.2)] [Export("ignoreWord")] public virtual void IgnoreWord(string wordToIgnore) { } /// <summary> /// Returns the words that the receiver ignores when spell-checking. /// </summary> [iOSVersion(3.2)] [Export("ignoredWords")] public virtual AnyObject[] IgnoredWords() { return default(AnyObject[]); } /// <summary> /// Sets the list of words that the receiver should ignore when it is spell-checking a document. /// </summary> /// <param name="words">An array of strings, each of which specifies a word the receiver should ignore when it is spell-checking a document.</param> [iOSVersion(3.2)] [Export("setIgnoredWords")] public virtual void SetIgnoredWords(AnyObject[] words) { } /// <summary> /// Tells the text checker to learn the specified word so that it is not evaluated as misspelled. /// </summary> /// <param name="word">A string representing the word for the class to learn.</param> [iOSVersion(3.2)] [Export("learnWord")] public static void LearnWord(string word) { } /// <summary> /// Tells the text checker to unlearn the specified word /// </summary> /// <param name="word">A string representing the word for the class to unlearn.</param> [iOSVersion(3.2)] [Export("unlearnWord")] public static void UnlearnWord(string word) { } /// <summary> /// Returns whether the text checker has learned the specified word. /// </summary> /// <param name="word">A string representing a word.</param> [iOSVersion(3.2)] [Export("hasLearnedWord")] public static bool HasLearnedWord(string word) { return default(bool); } /// <summary> /// Returns the languages for which the text checker’s class can perform spell-checking. /// </summary> [iOSVersion(3.2)] [Export("availableLanguages")] public static AnyObject[] AvailableLanguages() { return default(AnyObject[]); } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UITextInputMode.cs b/CocoaSharp/UIKit/UITextInputMode.cs
index 5032bcb7..139a386e 100644
--- a/CocoaSharp/UIKit/UITextInputMode.cs
+++ b/CocoaSharp/UIKit/UITextInputMode.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// An instance of the UITextInputMode class represents the current text-input mode. You can use this object to determine the primary language currently being used for text input. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITextInputMode_Class/index.html#//apple_ref/occ/cl/UITextInputMode"/> [iOSVersion(4.2)] public class UITextInputMode : NSObject//, AnyObject, NSCoding, NSObjectProtocol, NSSecureCoding { public UITextInputMode() { } /// <summary> /// Returns the active text-input modes. /// </summary> [iOSVersion(5)] [Export("activeInputModes")] public virtual static AnyObject[] ActiveInputModes() { return default(AnyObject[]); } /// <summary> /// The primary language, if any, of the input mode. /// </summary> [iOSVersion(4.2)] [Export("primaryLanguage")] public string PrimaryLanguage { get; private set; } } /// <summary> /// The posting object is a UITextInputMode instance. /// </summary> [iOSVersion(4.2)] public class UITextInputCurrentInputModeDidChangeNotification : NSNotification { public UITextInputCurrentInputModeDidChangeNotification() : base("", null) { } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// An instance of the UITextInputMode class represents the current text-input mode. You can use this object to determine the primary language currently being used for text input. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UITextInputMode_Class/index.html#//apple_ref/occ/cl/UITextInputMode"/> [iOSVersion(4.2)] public class UITextInputMode : NSObject//, AnyObject, NSCoding, NSObjectProtocol, NSSecureCoding { public UITextInputMode() { } /// <summary> /// Returns the active text-input modes. /// </summary> [iOSVersion(5)] [Export("activeInputModes")] public static AnyObject[] ActiveInputModes() { return default(AnyObject[]); } /// <summary> /// The primary language, if any, of the input mode. /// </summary> [iOSVersion(4.2)] [Export("primaryLanguage")] public string PrimaryLanguage { get; private set; } } /// <summary> /// The posting object is a UITextInputMode instance. /// </summary> [iOSVersion(4.2)] public class UITextInputCurrentInputModeDidChangeNotification : NSNotification { public UITextInputCurrentInputModeDidChangeNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIVideoEditorController.cs b/CocoaSharp/UIKit/UIVideoEditorController.cs
index caf814aa..fd18cf09 100644
--- a/CocoaSharp/UIKit/UIVideoEditorController.cs
+++ b/CocoaSharp/UIKit/UIVideoEditorController.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// A UIVideoEditorController object, or video editor, manages the system-supplied user interface for trimming video frames from the start and end of a previously recorded movie as well as reencoding to lower quality. The object manages user interactions and provides the filesystem path of the edited movie to your delegate object (see UIVideoEditorControllerDelegate Protocol Reference). The features of the UIVideoEditorController class are available only on devices that support video recording. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIVideoEditorController_ClassReference/index.html#//apple_ref/occ/cl/UIVideoEditorController"/> [iOSVersion(3.1)] public class UIVideoEditorController : UINavigationController//, AnyObject, NSCoding, NSExtensionRequestHandling, NSObjectProtocol, UIAppearanceContainer, UIContentContainer, UIStateRestoring, UITraitEnvironment { public UIVideoEditorController() { } /// <summary> /// Returns a Boolean value indicating whether a video file can be edited. /// </summary> /// <param name="videoPath">The filesystem path to the video file you want to edit.</param> [iOSVersion(3.1)] [Export("canEditVideoAtPath")] public virtual static bool CanEditVideoAtPath(string videoPath) { return default(bool); } /// <summary> /// The video editor’s delegate object. /// </summary> [iOSVersion(3.1)] [Export("delegate")] public protocol<UINavigationControllerDelegate, UIVideoEditorControllerDelegate> Delegate { get; set; } /// <summary> /// The maximum duration, in seconds, permitted for trimmed movies saved by the video editor. /// </summary> [iOSVersion(3.1)] [Export("videoMaximumDuration")] public NSTimeInterval VideoMaximumDuration { get; set; } /// <summary> /// The filesystem path to the movie to be loaded by the video editor. /// </summary> [iOSVersion(3.1)] [Export("videoPath")] public string VideoPath { get; set; } /// <summary> /// The video quality to use when saving a trimmed movie. /// </summary> [iOSVersion(3.1)] [Export("videoQuality")] public UIImagePickerControllerQualityType VideoQuality { get; set; } } } \ No newline at end of file
+using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// A UIVideoEditorController object, or video editor, manages the system-supplied user interface for trimming video frames from the start and end of a previously recorded movie as well as reencoding to lower quality. The object manages user interactions and provides the filesystem path of the edited movie to your delegate object (see UIVideoEditorControllerDelegate Protocol Reference). The features of the UIVideoEditorController class are available only on devices that support video recording. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIVideoEditorController_ClassReference/index.html#//apple_ref/occ/cl/UIVideoEditorController"/> [iOSVersion(3.1)] public class UIVideoEditorController : UINavigationController//, AnyObject, NSCoding, NSExtensionRequestHandling, NSObjectProtocol, UIAppearanceContainer, UIContentContainer, UIStateRestoring, UITraitEnvironment { public UIVideoEditorController() { } /// <summary> /// Returns a Boolean value indicating whether a video file can be edited. /// </summary> /// <param name="videoPath">The filesystem path to the video file you want to edit.</param> [iOSVersion(3.1)] [Export("canEditVideoAtPath")] public static bool CanEditVideoAtPath(string videoPath) { return default(bool); } /// <summary> /// The video editor’s delegate object. /// </summary> [iOSVersion(3.1)] [Export("delegate")] public Protocol<UINavigationControllerDelegate, UIVideoEditorControllerDelegate> Delegate { get; set; } /// <summary> /// The maximum duration, in seconds, permitted for trimmed movies saved by the video editor. /// </summary> [iOSVersion(3.1)] [Export("videoMaximumDuration")] public NSTimeInterval VideoMaximumDuration { get; set; } /// <summary> /// The filesystem path to the movie to be loaded by the video editor. /// </summary> [iOSVersion(3.1)] [Export("videoPath")] public string VideoPath { get; set; } /// <summary> /// The video quality to use when saving a trimmed movie. /// </summary> [iOSVersion(3.1)] [Export("videoQuality")] public UIImagePickerControllerQualityType VideoQuality { get; set; } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIView.cs b/CocoaSharp/UIKit/UIView.cs
index e487709b..6b4d6d20 100644
--- a/CocoaSharp/UIKit/UIView.cs
+++ b/CocoaSharp/UIKit/UIView.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIView class defines a rectangular area on the screen and the interfaces for managing the content in that area. At runtime, a view object handles the rendering of any content in its area and also handles any interactions with that content. The UIView class itself provides basic behavior for filling its rectangular area with a background color. More sophisticated content can be presented by subclassing UIView and implementing the necessary drawing and event-handling code yourself. The UIKit framework also includes a set of standard subclasses that range from simple buttons to complex tables and can be used as-is. For example, a UILabel object draws a text string and a UIImageView object draws an image. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIView_Class/index.html#//apple_ref/occ/cl/UIView"/> [iOSVersion(2)] public class UIView : UIActivityIndicatorView//, AnyObject, NSCoding, NSObjectProtocol, Reflectable, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UITraitEnvironment { public UIView() { } /// <summary> /// Initializes and returns a newly allocated view object with the specified frame rectangle. /// </summary> /// <param name="frame">The frame rectangle for the view, measured in points. The origin of the frame is relative to the superview in which you plan to add it. This method uses the frame rectangle to set the center and bounds properties accordingly.</param> [iOSVersion(2)] public UIView(CGRect frame) { } /// <summary> /// Returns the class used to create the layer for instances of this class. /// </summary> [iOSVersion(2)] [Export("layerClass")] public virtual static AnyClass LayerClass() { return default(AnyClass); } /// <summary> /// Adds a view to the end of the receiver’s list of subviews. /// </summary> /// <param name="view">The view to be added. After being added, this view appears on top of any other subviews.</param> [iOSVersion(2)] [Export("addSubview")] public virtual void AddSubview(UIView view) { } /// <summary> /// Moves the specified subview so that it appears on top of its siblings. /// </summary> /// <param name="view">The subview to move to the front.</param> [iOSVersion(2)] [Export("bringSubviewToFront")] public virtual void BringSubviewToFront(UIView view) { } /// <summary> /// Moves the specified subview so that it appears behind its siblings. /// </summary> /// <param name="view">The subview to move to the back.</param> [iOSVersion(2)] [Export("sendSubviewToBack")] public virtual void SendSubviewToBack(UIView view) { } /// <summary> /// Unlinks the view from its superview and its window, and removes it from the responder chain. /// </summary> [iOSVersion(2)] [Export("removeFromSuperview")] public virtual void RemoveFromSuperview() { } /// <summary> /// Inserts a subview at the specified index. /// </summary> /// <param name="view">The view to insert. This value cannot be nil.</param> /// <param name="atIndex">The index in the array of the subviews property at which to insert the view. Subview indices start at 0 and cannot be greater than the number of subviews.</param> [iOSVersion(2)] [Export("insertSubview")] public virtual void InsertSubview(UIView view, int atIndex) { } /// <summary> /// Inserts a view above another view in the view hierarchy. /// </summary> /// <param name="view">The view to insert. It’s removed from its superview if it’s not a sibling of siblingSubview.</param> /// <param name="aboveSubview">The sibling view that will be behind the inserted view.</param> [iOSVersion(2)] [Export("insertSubview")] public virtual void InsertSubview(UIView view, UIView aboveSubview) { } /// <summary> /// Inserts a view below another view in the view hierarchy. /// </summary> /// <param name="view">The view to insert below another view. It’s removed from its superview if it’s not a sibling of siblingSubview.</param> /// <param name="belowSubview">The sibling view that will be above the inserted view.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("insertSubview")] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual void InsertSubview(UIView view, UIView belowSubview, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Exchanges the subviews at the specified indices. /// </summary> /// <param name="index1">The index of the first subview in the receiver.</param> /// <param name="withSubviewAtIndex">The index of the second subview in the receiver.</param> [iOSVersion(2)] [Export("exchangeSubviewAtIndex")] public virtual void ExchangeSubviewAtIndex(int index1, int withSubviewAtIndex) { } /// <summary> /// Returns a Boolean value indicating whether the receiver is a subview of a given view or identical to that view. /// </summary> /// <param name="view">The view to test against the receiver’s view hierarchy.</param> [iOSVersion(2)] [Export("isDescendantOfView")] public virtual bool IsDescendantOfView(UIView view) { return default(bool); } /// <summary> /// Asks the view to calculate and return the size that best fits its subviews. /// </summary> /// <param name="size">The current size of the receiver.</param> [iOSVersion(2)] [Export("sizeThatFits")] public virtual CGSize SizeThatFits(CGSize size) { return default(CGSize); } /// <summary> /// Resizes and moves the receiver view so it just encloses its subviews. /// </summary> [iOSVersion(2)] [Export("sizeToFit")] public virtual void SizeToFit() { } /// <summary> /// Lays out subviews. /// </summary> [iOSVersion(2)] [Export("layoutSubviews")] public virtual void LayoutSubviews() { } /// <summary> /// Invalidates the current layout of the receiver and triggers a layout update during the next update cycle. /// </summary> [iOSVersion(2)] [Export("setNeedsLayout")] public virtual void SetNeedsLayout() { } /// <summary> /// Lays out the subviews immediately. /// </summary> [iOSVersion(2)] [Export("layoutIfNeeded")] public virtual void LayoutIfNeeded() { } /// <summary> /// Returns whether the receiver depends on the constraint-based layout system. /// </summary> [iOSVersion(6)] [Export("requiresConstraintBasedLayout")] public virtual static bool RequiresConstraintBasedLayout() { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the view’s autoresizing mask is translated into constraints for the constraint-based layout system. /// </summary> [iOSVersion(6)] [Export("translatesAutoresizingMaskIntoConstraints")] public virtual bool TranslatesAutoresizingMaskIntoConstraints() { return default(bool); } /// <summary> /// Sets whether the view’s autoresizing mask should be translated into constraints for the constraint-based layout system. /// </summary> /// <param name="flag">true if the view’s autoresizing mask should be translated into constraints for the constraint-based layout system, false otherwise.</param> [iOSVersion(6)] [Export("setTranslatesAutoresizingMaskIntoConstraints")] public virtual void SetTranslatesAutoresizingMaskIntoConstraints(bool flag) { } /// <summary> /// Returns the constraints held by the view. /// </summary> [iOSVersion(6)] [Export("constraints")] public virtual AnyObject[] Constraints() { return default(AnyObject[]); } /// <summary> /// Adds a constraint on the layout of the receiving view or its subviews. /// </summary> /// <param name="constraint">The constraint to be added to the view. The constraint may only reference the view itself or its subviews.</param> [iOSVersion(6)] [Export("addConstraint")] public virtual void AddConstraint(NSLayoutConstraint constraint) { } /// <summary> /// Adds multiple constraints on the layout of the receiving view or its subviews. /// </summary> /// <param name="constraints">An array of constraints to be added to the view. All constraints may only reference the view itself or its subviews.</param> [iOSVersion(6)] [Export("addConstraints")] public virtual void AddConstraints(AnyObject[] constraints) { } /// <summary> /// Removes the specified constraint from the view. /// </summary> /// <param name="constraint">The constraint to remove. Removing a constraint not held by the view has no effect.</param> [iOSVersion(6)] [Export("removeConstraint")] public virtual void RemoveConstraint(NSLayoutConstraint constraint) { } /// <summary> /// Removes the specified constraints from the view. /// </summary> /// <param name="constraints">The constraints to remove.</param> [iOSVersion(6)] [Export("removeConstraints")] public virtual void RemoveConstraints(AnyObject[] constraints) { } /// <summary> /// Returns the size of the view that satisfies the constraints it holds. /// </summary> /// <param name="targetSize">Indicates whether you want the smallest or largest possible size that meets the constraints. See Fitting Size for accepted values.</param> [iOSVersion(6)] [Export("systemLayoutSizeFittingSize")] public virtual CGSize SystemLayoutSizeFittingSize(CGSize targetSize) { return default(CGSize); } /// <summary> /// Returns the size of the view that satisfies the constraints it holds. /// </summary> /// <param name="targetSize">Indicates whether you want the smallest or largest possible size that meets the constraints. See Fitting Size for accepted values.</param> /// <param name="withHorizontalFittingPriority">The horizontal constraint priority.</param> /// <param name="verticalFittingPriority">The vertical constraint priority.</param> [iOSVersion(8)] [Export("systemLayoutSizeFittingSize")] public virtual CGSize SystemLayoutSizeFittingSize(CGSize targetSize, UILayoutPriority withHorizontalFittingPriority, UILayoutPriority verticalFittingPriority) { return default(CGSize); } /// <summary> /// Returns the natural size for the receiving view, considering only properties of the view itself. /// </summary> [iOSVersion(6)] [Export("intrinsicContentSize")] public virtual CGSize IntrinsicContentSize() { return default(CGSize); } /// <summary> /// Invalidates the view’s intrinsic content size. /// </summary> [iOSVersion(6)] [Export("invalidateIntrinsicContentSize")] public virtual void InvalidateIntrinsicContentSize() { } /// <summary> /// Returns the priority with which a view resists being made smaller than its intrinsic size. /// </summary> /// <param name="axis">The axis of the view that might be reduced.</param> [iOSVersion(6)] [Export("contentCompressionResistancePriorityForAxis")] public virtual UILayoutPriority ContentCompressionResistancePriorityForAxis(UILayoutConstraintAxis axis) { return default(UILayoutPriority); } /// <summary> /// Sets the priority with which a view resists being made smaller than its intrinsic size. /// </summary> /// <param name="priority">The new priority.</param> /// <param name="forAxis">The axis for which the compression resistance priority should be set.</param> [iOSVersion(6)] [Export("setContentCompressionResistancePriority")] public virtual void SetContentCompressionResistancePriority(UILayoutPriority priority, UILayoutConstraintAxis forAxis) { } /// <summary> /// Returns the priority with which a view resists being made larger than its intrinsic size. /// </summary> /// <param name="axis">The axis of the view that might be enlarged.</param> [iOSVersion(6)] [Export("contentHuggingPriorityForAxis")] public virtual UILayoutPriority ContentHuggingPriorityForAxis(UILayoutConstraintAxis axis) { return default(UILayoutPriority); } /// <summary> /// Sets the priority with which a view resists being made larger than its intrinsic size. /// </summary> /// <param name="priority">The new priority.</param> /// <param name="forAxis">The axis for which the content hugging priority should be set.</param> [iOSVersion(6)] [Export("setContentHuggingPriority")] public virtual void SetContentHuggingPriority(UILayoutPriority priority, UILayoutConstraintAxis forAxis) { } /// <summary> /// Returns the view’s alignment rectangle for a given frame. /// </summary> /// <param name="frame">The frame whose corresponding alignment rectangle is desired.</param> [iOSVersion(6)] [Export("alignmentRectForFrame")] public virtual CGRect AlignmentRectForFrame(CGRect frame) { return default(CGRect); } /// <summary> /// Returns the view’s frame for a given alignment rectangle. /// </summary> /// <param name="alignmentRect">The alignment rectangle whose corresponding frame is desired.</param> [iOSVersion(6)] [Export("frameForAlignmentRect")] public virtual CGRect FrameForAlignmentRect(CGRect alignmentRect) { return default(CGRect); } /// <summary> /// Returns the insets from the view’s frame that define its alignment rectangle. /// </summary> [iOSVersion(6)] [Export("alignmentRectInsets")] public virtual UIEdgeInsets AlignmentRectInsets() { return default(UIEdgeInsets); } /// <summary> /// Returns a view used to satisfy baseline constraints. /// </summary> [iOSVersion(6)] [Export("viewForBaselineLayout")] public virtual Optional<UIView> ViewForBaselineLayout() { return default(Optional<UIView>); } /// <summary> /// Returns whether the view’s constraints need updating. /// </summary> [iOSVersion(6)] [Export("needsUpdateConstraints")] public virtual bool NeedsUpdateConstraints() { return default(bool); } /// <summary> /// Controls whether the view’s constraints need updating. /// </summary> [iOSVersion(6)] [Export("setNeedsUpdateConstraints")] public virtual void SetNeedsUpdateConstraints() { } /// <summary> /// Updates constraints for the view. /// </summary> [iOSVersion(6)] [Export("updateConstraints")] public virtual void UpdateConstraints() { } /// <summary> /// Updates the constraints for the receiving view and its subviews. /// </summary> [iOSVersion(6)] [Export("updateConstraintsIfNeeded")] public virtual void UpdateConstraintsIfNeeded() { } /// <summary> /// Returns the constraints impacting the layout of the view for a given axis. /// </summary> /// <param name="axis">The axis for which the constraints should be found.</param> [iOSVersion(6)] [Export("constraintsAffectingLayoutForAxis")] public virtual AnyObject[] ConstraintsAffectingLayoutForAxis(UILayoutConstraintAxis axis) { return default(AnyObject[]); } /// <summary> /// Returns whether the constraints impacting the layout of the view incompletely specify the location of the view. /// </summary> [iOSVersion(6)] [Export("hasAmbiguousLayout")] public virtual bool HasAmbiguousLayout() { return default(bool); } /// <summary> /// Randomly changes the frame of a view with an ambiguous layout between the different valid values. /// </summary> [iOSVersion(6)] [Export("exerciseAmbiguityInLayout")] public virtual void ExerciseAmbiguityInLayout() { } /// <summary> /// Notifies the view that the layout margins changed. /// </summary> [iOSVersion(8)] [Export("layoutMarginsDidChange")] public virtual void LayoutMarginsDidChange() { } /// <summary> /// Draws the receiver’s image within the passed-in rectangle. /// </summary> /// <param name="rect">The portion of the view’s bounds that needs to be updated. The first time your view is drawn, this rectangle is typically the entire visible bounds of your view. However, during subsequent drawing operations, the rectangle may specify only part of your view.</param> [iOSVersion(2)] [Export("drawRect")] public virtual void DrawRect(CGRect rect) { } /// <summary> /// Marks the receiver’s entire bounds rectangle as needing to be redrawn. /// </summary> [iOSVersion(2)] [Export("setNeedsDisplay")] public virtual void SetNeedsDisplay() { } /// <summary> /// Marks the specified rectangle of the receiver as needing to be redrawn. /// </summary> /// <param name="invalidRect">The rectangular region of the receiver to mark as invalid; it should be specified in the coordinate system of the receiver.</param> [iOSVersion(2)] [Export("setNeedsDisplayInRect")] public virtual void SetNeedsDisplayInRect(CGRect invalidRect) { } /// <summary> /// Called by the system when the tintColor property changes. /// </summary> [iOSVersion(7)] [Export("tintColorDidChange")] public virtual void TintColorDidChange() { } /// <summary> /// Returns a print formatter for the receiving view. /// </summary> [iOSVersion(4.2)] [Export("viewPrintFormatter")] public virtual UIViewPrintFormatter ViewPrintFormatter() { return default(UIViewPrintFormatter); } /// <summary> /// Implemented to draw the view’s content for printing. /// </summary> /// <param name="area">A rectangle that defines the area for drawing printable content.</param> /// <param name="forViewPrintFormatter">An instance of UIViewPrintFormatter obtained by calling the viewPrintFormatter method.</param> [iOSVersion(4.2)] [Export("drawRect")] public virtual void DrawRect(CGRect area, UIViewPrintFormatter forViewPrintFormatter) { } /// <summary> /// Attaches a gesture recognizer to the view. /// </summary> /// <param name="gestureRecognizer">An object whose class descends from the UIGestureRecognizer class. This parameter must not be nil.</param> [iOSVersion(3.2)] [Export("addGestureRecognizer")] public virtual void AddGestureRecognizer(UIGestureRecognizer gestureRecognizer) { } /// <summary> /// Detaches a gesture recognizer from the receiving view. /// </summary> /// <param name="gestureRecognizer">An object whose class descends from the UIGestureRecognizer class.</param> [iOSVersion(3.2)] [Export("removeGestureRecognizer")] public virtual void RemoveGestureRecognizer(UIGestureRecognizer gestureRecognizer) { } /// <summary> /// Asks the view if the gesture recognizer should be allowed to continue tracking touch events. /// </summary> /// <param name="gestureRecognizer">The gesture recognizer that is attempting to transition out of the UIGestureRecognizerStatePossible state.</param> [iOSVersion(6)] [Export("gestureRecognizerShouldBegin")] public virtual bool GestureRecognizerShouldBegin(UIGestureRecognizer gestureRecognizer) { return default(bool); } /// <summary> /// Animate changes to one or more views using the specified duration, delay, options, and completion handler. /// </summary> /// <param name="duration">The total duration of the animations, measured in seconds. If you specify a negative value or 0, the changes are made without animating them.</param> /// <param name="delay">The amount of time (measured in seconds) to wait before beginning the animations. Specify a value of 0 to begin the animations immediately.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> /// <param name="animations">A block object containing the changes to commit to the views. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> [iOSVersion(4)] [Export("animateWithDuration")] public virtual static void AnimateWithDuration(NSTimeInterval duration, NSTimeInterval delay, UIViewAnimationOptions options, Action animations, Optional<Action<bool>> completion) { } /// <summary> /// Animate changes to one or more views using the specified duration and completion handler. /// </summary> /// <param name="duration">The total duration of the animations, measured in seconds. If you specify a negative value or 0, the changes are made without animating them.</param> /// <param name="animations">A block object containing the changes to commit to the views. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> [iOSVersion(4)] [Export("animateWithDuration")] public virtual static void AnimateWithDuration(NSTimeInterval duration, Action animations, Optional<Action<bool>> completion) { } /// <summary> /// Animate changes to one or more views using the specified duration. /// </summary> /// <param name="duration">The total duration of the animations, measured in seconds. If you specify a negative value or 0, the changes are made without animating them.</param> /// <param name="animations">A block object containing the changes to commit to the views. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL.</param> [iOSVersion(4)] [Export("animateWithDuration")] public virtual static void AnimateWithDuration(NSTimeInterval duration, Action animations) { } /// <summary> /// Creates a transition animation for the specified container view. /// </summary> /// <param name="view">The container view that performs the transition.</param> /// <param name="duration">The duration of the transition animation, measured in seconds. If you specify a negative value or 0, the transition is made without animations.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> /// <param name="animations">A block object that contains the changes you want to make to the specified view. This block takes no parameters and has no return value. This parameter must not be NULL.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> [iOSVersion(4)] [Export("transitionWithView")] public virtual static void TransitionWithView(UIView view, NSTimeInterval duration, UIViewAnimationOptions options, Action animations, Optional<Action<bool>> completion) { } /// <summary> /// Creates a transition animation between the specified views using the given parameters. /// </summary> /// <param name="fromView">The starting view for the transition. By default, this view is removed from its superview as part of the transition.</param> /// <param name="toView">The ending view for the transition. By default, this view is added to the superview of fromView as part of the transition.</param> /// <param name="duration">The duration of the transition animation, measured in seconds. If you specify a negative value or 0, the transition is made without animations.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> [iOSVersion(4)] [Export("transitionFromView")] public virtual static void TransitionFromView(UIView fromView, UIView toView, NSTimeInterval duration, UIViewAnimationOptions options, Optional<Action<bool>> completion) { } /// <summary> /// Creates an animation block object that can be used to set up keyframe-based animations for the current view. /// </summary> /// <param name="duration">The duration of the overall animation, measured in seconds. If you specify a negative value or 0, changes are made immediately and without animations.</param> /// <param name="delay">Specifies the time (in seconds) to wait before starting the animation.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see “UIViewKeyframeAnimationOptions”.</param> /// <param name="animations">A block object containing the changes to commit to the views. Typically, you call the addKeyframeWithRelativeStartTime:relativeDuration:animations: method one or more times from inside this block. You may also change view values directly if you want those changes to animate over the full duration. This block takes no parameters and has no return value. Do not use a nil value for this parameter.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. You can use a nil value for this parameter.</param> [iOSVersion(7)] [Export("animateKeyframesWithDuration")] public virtual static void AnimateKeyframesWithDuration(NSTimeInterval duration, NSTimeInterval delay, UIViewKeyframeAnimationOptions options, Action animations, Optional<Action<bool>> completion) { } /// <summary> /// Specifies the timing and animation values for a single frame of a keyframe animation. /// </summary> /// <param name="frameStartTime">The time at which to start the specified animations. This value must be in the range 0 to 1, where 0 represents the start of the overall animation and 1 represents the end of the overall animation. For example, for an animation that is two seconds in duration, specifying a start time of 0.5 causes the animations to begin executing one second after the start of the overall animation.</param> /// <param name="relativeDuration">The length of time over which to animate to the specified value. This value must be in the range 0 to 1 and indicates the amount of time relative to the overall animation length. If you specify a value of 0, any properties you set in the animations block update immediately at the specified start time. If you specify a nonzero value, the properties animate over that amount of time. For example, for an animation that is two seconds in duration, specifying a duration of 0.5 results in an animation duration of one second.</param> /// <param name="animations">A block object containing the animations you want to perform. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be nil.</param> [iOSVersion(7)] [Export("addKeyframeWithRelativeStartTime")] public virtual static void AddKeyframeWithRelativeStartTime(Double frameStartTime, Double relativeDuration, Action animations) { } /// <summary> /// Performs a specified system-provided animation on one or more views, along with optional parallel animations that you define. /// </summary> /// <param name="animation">The system animation to perform; a constant from the UISystemAnimation enum.</param> /// <param name="onViews">The views to perform the animations on.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> /// <param name="animations">Additional animations you specify to run alongside the system animation, with the same timing and duration that the system animation defines or inherits. /// In your additional animations, do not modify properties of the view on which the system animation is being performed.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. The single Boolean argument indicates whether or not the animations finished before the completion handler was called. If the animation duration is 0, this block is performed at the beginning of the next run-loop cycle. You can use a nil value for this parameter.</param> [iOSVersion(7)] [Export("performSystemAnimation")] public virtual static void PerformSystemAnimation(UISystemAnimation animation, AnyObject[] onViews, UIViewAnimationOptions options, Optional<Action> animations, Optional<Action<bool>> completion) { } /// <summary> /// Performs a view animation using a timing curve corresponding to the motion of a physical spring. /// </summary> /// <param name="duration">The total duration of the animations, measured in seconds. If you specify a negative value or 0, the changes are made without animating them.</param> /// <param name="delay">The amount of time (measured in seconds) to wait before beginning the animations. Specify a value of 0 to begin the animations immediately.</param> /// <param name="usingSpringWithDamping">The damping ratio for the spring animation as it approaches its quiescent state. /// To smoothly decelerate the animation without oscillation, use a value of 1. Employ a damping ratio closer to zero to increase oscillation.</param> /// <param name="initialSpringVelocity">The initial spring velocity. For smooth start to the animation, match this value to the view’s velocity as it was prior to attachment. /// A value of 1 corresponds to the total animation distance traversed in one second. For example, if the total animation distance is 200 points and you want the start of the animation to match a view velocity of 100 pt/s, use a value of 0.5.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> /// <param name="animations">A block object containing the changes to commit to the views. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> [iOSVersion(7)] [Export("animateWithDuration")] public virtual static void AnimateWithDuration(NSTimeInterval duration, NSTimeInterval delay, CGFloat usingSpringWithDamping, CGFloat initialSpringVelocity, UIViewAnimationOptions options, Action animations, Optional<Action<bool>> completion) { } /// <summary> /// Disables a view transition animation. /// </summary> /// <param name="actionsWithoutAnimation">The view transition code that you want to perform without animation.</param> [iOSVersion(7)] [Export("performWithoutAnimation")] public virtual static void PerformWithoutAnimation(Action actionsWithoutAnimation) { } /// <summary> /// Marks the beginning of a begin/commit animation block. /// </summary> /// <param name="animationID">An application-supplied identifier for the animations.</param> /// <param name="context">Custom data that you want to associate with this set of animations. information that is passed to the animation delegate messages—the selectors set using the setAnimationWillStartSelector: and setAnimationDidStopSelector: methods.</param> [iOSVersion(2)] [Export("beginAnimations")] public virtual static void BeginAnimations(Optional<string> animationID, UnsafeMutablePointer<void> context) { } /// <summary> /// Marks the end of a begin/commit animation block and schedules the animations for execution. /// </summary> [iOSVersion(2)] [Export("commitAnimations")] public virtual static void CommitAnimations() { } /// <summary> /// Sets the start time for the current animation block. /// </summary> /// <param name="startTime">The time to begin the animations.</param> [iOSVersion(2)] [Export("setAnimationStartDate")] public virtual static void SetAnimationStartDate(NSDate startTime) { } /// <summary> /// Sets whether animations are enabled. /// </summary> /// <param name="enabled">Specify true to enable animations or false to disable them.</param> [iOSVersion(2)] [Export("setAnimationsEnabled")] public virtual static void SetAnimationsEnabled(bool enabled) { } /// <summary> /// Sets the delegate for any animation messages. /// </summary> /// <param name="@delegate">An object that defines the methods registered using the setAnimationWillStartSelector: and setAnimationDidStopSelector: methods. The view maintains a strong reference to this object for the duration of the animation.</param> [iOSVersion(2)] [Export("setAnimationDelegate")] public virtual static void SetAnimationDelegate(Optional<AnyObject> @delegate) { } /// <summary> /// Sets the message to send to the animation delegate when the animation starts. /// </summary> /// <param name="selector">The message to send to the animation delegate before animations start. The default value is NULL. This selector should be of the form: - (void)animationDidStart:(NSString *)animationID context:(void *)context. Your method must take the following arguments: /// animationID /// An NSString containing an optional application-supplied identifier. This is the identifier string that is passed to the beginAnimations:context: method. This argument can be nil. /// context /// An optional application-supplied context. This is the context data passed to the beginAnimations:context: method. This argument can be nil.</param> [iOSVersion(2)] [Export("setAnimationWillStartSelector")] public virtual static void SetAnimationWillStartSelector(Selector selector) { } /// <summary> /// Sets the message to send to the animation delegate when animation stops. /// </summary> /// <param name="selector">The message sent to the animation delegate after animations end. The default value is NULL. The selector should be of the form: - (void)animationDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context. Your method must take the following arguments: /// animationID /// An NSString containing an optional application-supplied identifier. This is the identifier that is passed to the beginAnimations:context: method. This argument can be nil. /// finished /// An NSNumber object containing a Boolean value. The value is true if the animation ran to completion before it stopped or false if it did not. /// context /// An optional application-supplied context. This is the context data passed to the beginAnimations:context: method. This argument can be nil.</param> [iOSVersion(2)] [Export("setAnimationDidStopSelector")] public virtual static void SetAnimationDidStopSelector(Selector selector) { } /// <summary> /// Sets the duration (measured in seconds) of the animations in an animation block. /// </summary> /// <param name="duration">The period over which the animation occurs, measured in seconds.</param> [iOSVersion(2)] [Export("setAnimationDuration")] public virtual static void SetAnimationDuration(NSTimeInterval duration) { } /// <summary> /// Sets the amount of time (in seconds) to wait before animating property changes within an animation block. /// </summary> /// <param name="delay"></param> [iOSVersion(2)] [Export("setAnimationDelay")] public virtual static void SetAnimationDelay(NSTimeInterval delay) { } /// <summary> /// Sets the curve to use when animating property changes within an animation block. /// </summary> /// <param name="curve"></param> [iOSVersion(2)] [Export("setAnimationCurve")] public virtual static void SetAnimationCurve(UIViewAnimationCurve curve) { } /// <summary> /// Sets the number of times animations within an animation block repeat. /// </summary> /// <param name="repeatCount">The number of times animations repeat. This value can be a fraction. If you specify the value 0, the animation is performed once without repeating.</param> [iOSVersion(2)] [Export("setAnimationRepeatCount")] public virtual static void SetAnimationRepeatCount(float repeatCount) { } /// <summary> /// Sets whether the animations within an animation block automatically reverse themselves. /// </summary> /// <param name="repeatAutoreverses">Specify true to enable autoreversing or false to disable it.</param> [iOSVersion(2)] [Export("setAnimationRepeatAutoreverses")] public virtual static void SetAnimationRepeatAutoreverses(bool repeatAutoreverses) { } /// <summary> /// Sets whether the animation should begin playing from the current state. /// </summary> /// <param name="fromCurrentState">Specify true if animations should begin from their currently visible state; otherwise, false.</param> [iOSVersion(2)] [Export("setAnimationBeginsFromCurrentState")] public virtual static void SetAnimationBeginsFromCurrentState(bool fromCurrentState) { } /// <summary> /// Sets a transition to apply to a view during an animation block. /// </summary> /// <param name="transition">A transition to apply to view. Possible values are described in UIViewAnimationTransition.</param> /// <param name="forView">The view to apply the transition to.</param> /// <param name="cache">If true, the before and after images of view are rendered once and used to create the frames in the animation. Caching can improve performance but if you set this parameter to true, you must not update the view or its subviews during the transition. Updating the view and its subviews may interfere with the caching behaviors and cause the view contents to be rendered incorrectly (or in the wrong location) during the animation. You must wait until the transition ends to update the view. /// If false, the view and its contents must be updated for each frame of the transition animation, which may noticeably affect the frame rate.</param> [iOSVersion(2)] [Export("setAnimationTransition")] public virtual static void SetAnimationTransition(UIViewAnimationTransition transition, UIView forView, bool cache) { } /// <summary> /// Returns a Boolean value indicating whether animations are enabled. /// </summary> [iOSVersion(2)] [Export("areAnimationsEnabled")] public virtual static bool AreAnimationsEnabled() { return default(bool); } /// <summary> /// Begins applying a motion effect to the view. /// </summary> /// <param name="effect">The motion effect.</param> [iOSVersion(7)] [Export("addMotionEffect")] public virtual void AddMotionEffect(UIMotionEffect effect) { } /// <summary> /// Stops applying a motion effect to the view. /// </summary> /// <param name="effect">The motion effect.</param> [iOSVersion(7)] [Export("removeMotionEffect")] public virtual void RemoveMotionEffect(UIMotionEffect effect) { } /// <summary> /// Encodes state-related information for the view. /// </summary> /// <param name="coder">The coder object to use to encode the state of the view.</param> [iOSVersion(6)] [Export("encodeRestorableStateWithCoder")] public virtual void EncodeRestorableStateWithCoder(NSCoder coder) { } /// <summary> /// Decodes and restores state-related information for the view. /// </summary> /// <param name="coder">The coder object to use to decode the state of the view.</param> [iOSVersion(6)] [Export("decodeRestorableStateWithCoder")] public virtual void DecodeRestorableStateWithCoder(NSCoder coder) { } /// <summary> /// Returns a snapshot view based on the contents of the current view. /// </summary> /// <param name="afterUpdates">A Boolean value that specifies whether the snapshot should be taken after recent changes have been incorporated. Pass the value false to capture the screen in its current state, which might not include recent changes.</param> [iOSVersion(7)] [Export("snapshotViewAfterScreenUpdates")] public virtual UIView SnapshotViewAfterScreenUpdates(bool afterUpdates) { return default(UIView); } /// <summary> /// Returns a snapshot view based on the specified contents of the current view, with stretchable insets. /// </summary> /// <param name="rect">The portion of the view that you want to capture. The rectangle must be in the bounds coordinate space of the current view.</param> /// <param name="afterScreenUpdates">A Boolean value that specifies whether the snapshot should be taken after recent changes have been incorporated. Pass the value false if you want to capture the screen in its current state, which might not include recent changes.</param> /// <param name="withCapInsets">The edge insets that define the stretchable portion of the returned view’s content. You can specify UIEdgeInsetsZero if you do not want the contents of the returned view to have a stretchable area.</param> [iOSVersion(7)] [Export("resizableSnapshotViewFromRect")] public virtual UIView ResizableSnapshotViewFromRect(CGRect rect, bool afterScreenUpdates, UIEdgeInsets withCapInsets) { return default(UIView); } /// <summary> /// Renders a snapshot of the complete view hierarchy as visible onscreen into the current context. /// </summary> /// <param name="rect">A rectangle specified in the local coordinate system (bounds) of the view.</param> /// <param name="afterScreenUpdates">A Boolean value that indicates whether the snapshot should be rendered after recent changes have been incorporated. Specify the value false if you want to render a snapshot in the view hierarchy’s current state, which might not include recent changes.</param> [iOSVersion(7)] [Export("drawViewHierarchyInRect")] public virtual bool DrawViewHierarchyInRect(CGRect rect, bool afterScreenUpdates) { return default(bool); } /// <summary> /// Returns the view whose tag matches the specified value. /// </summary> /// <param name="tag">The tag value to search for.</param> [iOSVersion(2)] [Export("viewWithTag")] public virtual Optional<UIView> ViewWithTag(int tag) { return default(Optional<UIView>); } /// <summary> /// Converts a point from the receiver’s coordinate system to that of the specified view. /// </summary> /// <param name="point">A point specified in the local coordinate system (bounds) of the receiver.</param> /// <param name="toView">The view into whose coordinate system point is to be converted. If view is nil, this method instead converts to window base coordinates. Otherwise, both view and the receiver must belong to the same UIWindow object.</param> [iOSVersion(2)] [Export("convertPoint")] public virtual CGPoint ConvertPoint(CGPoint point, Optional<UIView> toView) { return default(CGPoint); } /// <summary> /// Converts a point from the coordinate system of a given view to that of the receiver. /// </summary> /// <param name="point">A point specified in the local coordinate system (bounds) of view.</param> /// <param name="fromView">The view with point in its coordinate system. If view is nil, this method instead converts from window base coordinates. Otherwise, both view and the receiver must belong to the same UIWindow object.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("convertPoint")] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual CGPoint ConvertPoint(CGPoint point, Optional<UIView> fromView, bool NAME_YOUR_PARAMS = false) { return default(CGPoint); } /// <summary> /// Converts a rectangle from the receiver’s coordinate system to that of another view. /// </summary> /// <param name="rect">A rectangle specified in the local coordinate system (bounds) of the receiver.</param> /// <param name="toView">The view that is the target of the conversion operation. If view is nil, this method instead converts to window base coordinates. Otherwise, both view and the receiver must belong to the same UIWindow object.</param> [iOSVersion(2)] [Export("convertRect")] public virtual CGRect ConvertRect(CGRect rect, Optional<UIView> toView) { return default(CGRect); } /// <summary> /// Converts a rectangle from the coordinate system of another view to that of the receiver. /// </summary> /// <param name="rect">A rectangle specified in the local coordinate system (bounds) of view.</param> /// <param name="fromView">The view with rect in its coordinate system. If view is nil, this method instead converts from window base coordinates. Otherwise, both view and the receiver must belong to the same UIWindow object.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("convertRect")] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual CGRect ConvertRect(CGRect rect, Optional<UIView> fromView, bool NAME_YOUR_PARAMS = false) { return default(CGRect); } /// <summary> /// Returns the farthest descendant of the receiver in the view hierarchy (including itself) that contains a specified point. /// </summary> /// <param name="point">A point specified in the receiver’s local coordinate system (bounds).</param> /// <param name="withEvent">The event that warranted a call to this method. If you are calling this method from outside your event-handling code, you may specify nil.</param> [iOSVersion(2)] [Export("hitTest")] public virtual Optional<UIView> HitTest(CGPoint point, Optional<UIEvent> withEvent) { return default(Optional<UIView>); } /// <summary> /// Returns a Boolean value indicating whether the receiver contains the specified point. /// </summary> /// <param name="point">A point that is in the receiver’s local coordinate system (bounds).</param> /// <param name="withEvent">The event that warranted a call to this method. If you are calling this method from outside your event-handling code, you may specify nil.</param> [iOSVersion(2)] [Export("pointInside")] public virtual bool PointInside(CGPoint point, Optional<UIEvent> withEvent) { return default(bool); } /// <summary> /// Causes the view (or one of its embedded text fields) to resign the first responder status. /// </summary> /// <param name="force">Specify true to force the first responder to resign, regardless of whether it wants to do so.</param> [iOSVersion(2)] [Export("endEditing")] public virtual bool EndEditing(bool force) { return default(bool); } /// <summary> /// Tells the view that a subview was added. /// </summary> /// <param name="subview">The view that was added as a subview.</param> [iOSVersion(2)] [Export("didAddSubview")] public virtual void DidAddSubview(UIView subview) { } /// <summary> /// Tells the view that a subview is about to be removed. /// </summary> /// <param name="subview">The subview that will be removed.</param> [iOSVersion(2)] [Export("willRemoveSubview")] public virtual void WillRemoveSubview(UIView subview) { } /// <summary> /// Tells the view that its superview is about to change to the specified superview. /// </summary> /// <param name="newSuperview">A view object that will be the new superview of the receiver. This object may be nil.</param> [iOSVersion(2)] [Export("willMoveToSuperview")] public virtual void WillMoveToSuperview(Optional<UIView> newSuperview) { } /// <summary> /// Tells the view that its superview changed. /// </summary> [iOSVersion(2)] [Export("didMoveToSuperview")] public virtual void DidMoveToSuperview() { } /// <summary> /// Tells the view that its window object is about to change. /// </summary> /// <param name="newWindow">The window object that will be at the root of the receiver's new view hierarchy. This parameter may be nil.</param> [iOSVersion(2)] [Export("willMoveToWindow")] public virtual void WillMoveToWindow(Optional<UIWindow> newWindow) { } /// <summary> /// Tells the view that its window object changed. /// </summary> [iOSVersion(2)] [Export("didMoveToWindow")] public virtual void DidMoveToWindow() { } /// <summary> /// The view’s background color. /// </summary> [iOSVersion(2)] [Export("backgroundColor")] public Optional<UIColor> BackgroundColor { get; set; } /// <summary> /// A Boolean value that determines whether the view is hidden. /// </summary> [iOSVersion(2)] [Export("hidden")] public bool Hidden { get; set; } /// <summary> /// The view’s alpha value. /// </summary> [iOSVersion(2)] [Export("alpha")] public CGFloat Alpha { get; set; } /// <summary> /// A Boolean value that determines whether the view is opaque. /// </summary> [iOSVersion(2)] [Export("opaque")] public bool Opaque { get; set; } /// <summary> /// The first nondefault tint color value in the view’s hierarchy, ascending from and starting with the view itself. /// </summary> [iOSVersion(7)] [Export("tintColor")] public UIColor TintColor { get; set; } /// <summary> /// The first non-default tint adjustment mode value in the view’s hierarchy, ascending from and starting with the view itself. /// </summary> [iOSVersion(7)] [Export("tintAdjustmentMode")] public UIViewTintAdjustmentMode TintAdjustmentMode { get; set; } /// <summary> /// A Boolean value that determines whether subviews are confined to the bounds of the view. /// </summary> [iOSVersion(2)] [Export("clipsToBounds")] public bool ClipsToBounds { get; set; } /// <summary> /// A Boolean value that determines whether the view’s bounds should be automatically cleared before drawing. /// </summary> [iOSVersion(2)] [Export("clearsContextBeforeDrawing")] public bool ClearsContextBeforeDrawing { get; set; } /// <summary> /// An optional view whose alpha channel is used to mask a view’s content. /// </summary> [iOSVersion(8)] [Export("maskView")] public Optional<UIView> MaskView { get; set; } /// <summary> /// The view’s Core Animation layer used for rendering. (read-only) /// </summary> [iOSVersion(2)] [Export("layer")] public CALayer Layer { get; private set; } /// <summary> /// A Boolean value that determines whether user events are ignored and removed from the event queue. /// </summary> [iOSVersion(2)] [Export("userInteractionEnabled")] public bool UserInteractionEnabled { get; set; } /// <summary> /// A Boolean value that indicates whether the receiver handles multi-touch events. /// </summary> [iOSVersion(2)] [Export("multipleTouchEnabled")] public bool MultipleTouchEnabled { get; set; } /// <summary> /// A Boolean value that indicates whether the receiver handles touch events exclusively. /// </summary> [iOSVersion(2)] [Export("exclusiveTouch")] public bool ExclusiveTouch { get; set; } /// <summary> /// The frame rectangle, which describes the view’s location and size in its superview’s coordinate system. /// </summary> [iOSVersion(2)] [Export("frame")] public CGRect Frame { get; set; } /// <summary> /// The receiver’s superview, or nil if it has none. (read-only) /// </summary> [iOSVersion(2)] [Export("superview")] public Optional<UIView> Superview { get; private set; } /// <summary> /// The receiver’s immediate subviews. (read-only) /// </summary> [iOSVersion(2)] [Export("subviews")] public AnyObject[] Subviews { get; private set; } /// <summary> /// The receiver’s window object, or nil if it has none. (read-only) /// </summary> [iOSVersion(2)] [Export("window")] public Optional<UIWindow> Window { get; private set; } /// <summary> /// An integer bit mask that determines how the receiver resizes itself when its superview’s bounds change. /// </summary> [iOSVersion(2)] [Export("autoresizingMask")] public UIViewAutoresizing AutoresizingMask { get; set; } /// <summary> /// A Boolean value that determines whether the receiver automatically resizes its subviews when its bounds change. /// </summary> [iOSVersion(2)] [Export("autoresizesSubviews")] public bool AutoresizesSubviews { get; set; } /// <summary> /// A flag used to determine how a view lays out its content when its bounds change. /// </summary> [iOSVersion(2)] [Export("contentMode")] public UIViewContentMode ContentMode { get; set; } /// <summary> /// The default spacing to use when laying out content in the view. /// </summary> [iOSVersion(8)] [Export("layoutMargins")] public UIEdgeInsets LayoutMargins { get; set; } /// <summary> /// A Boolean value indicating whether the current view also respects the margins of its superview. /// </summary> [iOSVersion(8)] [Export("preservesSuperviewLayoutMargins")] public bool PreservesSuperviewLayoutMargins { get; set; } /// <summary> /// The scale factor applied to the view. /// </summary> [iOSVersion(4)] [Export("contentScaleFactor")] public CGFloat ContentScaleFactor { get; set; } /// <summary> /// The gesture-recognizer objects currently attached to the view. /// </summary> [iOSVersion(3.2)] [Export("gestureRecognizers")] public AnyObject[] GestureRecognizers { get; set; } /// <summary> /// The array of motion effects for the view. /// </summary> [iOSVersion(7)] [Export("motionEffects")] public Optional<AnyObject[]> MotionEffects { get; set; } /// <summary> /// The identifier that determines whether the view supports state restoration. /// </summary> [iOSVersion(6)] [Export("restorationIdentifier")] public Optional<string> RestorationIdentifier { get; set; } /// <summary> /// An integer that you can use to identify view objects in your application. /// </summary> [iOSVersion(2)] [Export("tag")] public int Tag { get; set; } } /// <summary> /// Options for animating views using block objects. /// </summary> [iOSVersion(4)] public enum UIViewAnimationOptions { /// <summary> /// Lay out subviews at commit time so that they are animated along with their parent. /// </summary> [iOSVersion(4)] LayoutSubviews, /// <summary> /// Allow the user to interact with views while they are being animated. /// </summary> [iOSVersion(4)] AllowUserInteraction, /// <summary> /// Start the animation from the current setting associated with an already in-flight animation. If this key is not present, any in-flight animations are allowed to finish before the new animation is started. If another animation is not in flight, this key has no effect. /// </summary> [iOSVersion(4)] BeginFromCurrentState, /// <summary> /// Repeat the animation indefinitely. /// </summary> [iOSVersion(4)] Repeat, /// <summary> /// Run the animation backwards and forwards. Must be combined with the UIViewAnimationOptionRepeat option. /// </summary> [iOSVersion(4)] Autoreverse, /// <summary> /// Force the animation to use the original duration value specified when the animation was submitted. If this key is not present, the animation inherits the remaining duration of the in-flight animation, if any. /// </summary> [iOSVersion(4)] OverrideInheritedDuration, /// <summary> /// Force the animation to use the original curve value specified when the animation was submitted. If this key is not present, the animation inherits the curve of the in-flight animation, if any. /// </summary> [iOSVersion(4)] OverrideInheritedCurve, /// <summary> /// Animate the views by changing the property values dynamically and redrawing the view. If this key is not present, the views are animated using a snapshot image. /// </summary> [iOSVersion(4)] AllowAnimatedContent, /// <summary> /// When present, this key causes views to be hidden or shown (instead of removed or added) when performing a view transition. Both views must already be present in the parent view’s hierarchy when using this key. If this key is not present, the to-view in a transition is added to, and the from-view is removed from, the parent view’s list of subviews. /// </summary> [iOSVersion(4)] ShowHideTransitionViews, /// <summary> /// The option to not inherit the animation type or any options. /// </summary> [iOSVersion(4)] OverrideInheritedOptions, /// <summary> /// An ease-in ease-out curve causes the animation to begin slowly, accelerate through the middle of its duration, and then slow again before completing. /// </summary> [iOSVersion(4)] CurveEaseInOut, /// <summary> /// An ease-in curve causes the animation to begin slowly, and then speed up as it progresses. /// </summary> [iOSVersion(4)] CurveEaseIn, /// <summary> /// An ease-out curve causes the animation to begin quickly, and then slow as it completes. /// </summary> [iOSVersion(4)] CurveEaseOut, /// <summary> /// A linear animation curve causes an animation to occur evenly over its duration. /// </summary> [iOSVersion(4)] CurveLinear, /// <summary> /// No transition is specified. /// </summary> [iOSVersion(4)] TransitionNone, /// <summary> /// A transition that flips a view around its vertical axis from left to right. The left side of the view moves toward the front and right side toward the back. /// </summary> [iOSVersion(4)] TransitionFlipFromLeft, /// <summary> /// A transition that flips a view around its vertical axis from right to left. The right side of the view moves toward the front and left side toward the back. /// </summary> [iOSVersion(4)] TransitionFlipFromRight, /// <summary> /// A transition that curls a view up from the bottom. /// </summary> [iOSVersion(4)] TransitionCurlUp, /// <summary> /// A transition that curls a view down from the top. /// </summary> [iOSVersion(4)] TransitionCurlDown, /// <summary> /// A transition that dissolves from one view to the next. /// </summary> [iOSVersion(4)] TransitionCrossDissolve, /// <summary> /// A transition that flips a view around its horizontal axis from top to bottom. The top side of the view moves toward the front and the bottom side toward the back. /// </summary> [iOSVersion(4)] TransitionFlipFromTop, /// <summary> /// A transition that flips a view around its horizontal axis from bottom to top. The bottom side of the view moves toward the front and the top side toward the back. /// </summary> [iOSVersion(4)] TransitionFlipFromBottom, } /// <summary> /// Specifies the supported animation curves. /// </summary> [iOSVersion(2)] public enum UIViewAnimationCurve { /// <summary> /// An ease-in ease-out curve causes the animation to begin slowly, accelerate through the middle of its duration, and then slow again before completing. This is the default curve for most animations. /// </summary> [iOSVersion(2)] EaseInOut, /// <summary> /// An ease-in curve causes the animation to begin slowly, and then speed up as it progresses. /// </summary> [iOSVersion(2)] EaseIn, /// <summary> /// An ease-out curve causes the animation to begin quickly, and then slow down as it completes. /// </summary> [iOSVersion(2)] EaseOut, /// <summary> /// A linear animation curve causes an animation to occur evenly over its duration. /// </summary> [iOSVersion(2)] Linear, } /// <summary> /// Options to specify how a view adjusts its content when its size changes. /// </summary> [iOSVersion(2)] public enum UIViewContentMode { /// <summary> /// The option to scale the content to fit the size of itself by changing the aspect ratio of the content if necessary. /// </summary> [iOSVersion(2)] ScaleToFill, /// <summary> /// The option to scale the content to fit the size of the view by maintaining the aspect ratio. Any remaining area of the view’s bounds is transparent. /// </summary> [iOSVersion(2)] ScaleAspectFit, /// <summary> /// The option to scale the content to fill the size of the view. Some portion of the content may be clipped to fill the view’s bounds. /// </summary> [iOSVersion(2)] ScaleAspectFill, /// <summary> /// The option to redisplay the view when the bounds change by invoking the setNeedsDisplay method. /// </summary> [iOSVersion(2)] Redraw, /// <summary> /// The option to center the content in the view’s bounds, keeping the proportions the same. /// </summary> [iOSVersion(2)] Center, /// <summary> /// The option to center the content aligned at the top in the view’s bounds. /// </summary> [iOSVersion(2)] Top, /// <summary> /// The option to center the content aligned at the bottom in the view’s bounds. /// </summary> [iOSVersion(2)] Bottom, /// <summary> /// The option to align the content on the left of the view. /// </summary> [iOSVersion(2)] Left, /// <summary> /// The option to align the content on the right of the view. /// </summary> [iOSVersion(2)] Right, /// <summary> /// The option to align the content in the top-left corner of the view. /// </summary> [iOSVersion(2)] TopLeft, /// <summary> /// The option to align the content in the top-right corner of the view. /// </summary> [iOSVersion(2)] TopRight, /// <summary> /// The option to align the content in the bottom-left corner of the view. /// </summary> [iOSVersion(2)] BottomLeft, /// <summary> /// The option to align the content in the bottom-right corner of the view. /// </summary> [iOSVersion(2)] BottomRight, } /// <summary> /// The tint adjustment mode for the view. /// </summary> [iOSVersion(7)] public enum UIViewTintAdjustmentMode { /// <summary> /// The tint adjustment mode of the view is the same as its superview's tint adjustment mode (or UIViewTintAdjustmentModeNormal if the view has no superview). /// </summary> [iOSVersion(7)] Automatic, /// <summary> /// The view's tintColor property returns the completely unmodified tint color of the view. /// </summary> [iOSVersion(7)] Normal, /// <summary> /// The view's tintColor property returns a desaturated, dimmed version of the view's original tint color. /// </summary> [iOSVersion(7)] Dimmed, } /// <summary> /// Option to remove the views from the hierarchy when animation is complete. /// </summary> [iOSVersion(7)] public enum UISystemAnimation { /// <summary> /// Option to remove views from the view hierarchy when animation is complete. /// </summary> [iOSVersion(7)] Delete, } /// <summary> /// Options for automatic view resizing. /// </summary> [iOSVersion(2)] public enum UIViewAutoresizing { /// <summary> /// The option for indicating that the view does not resize. /// </summary> [iOSVersion(2)] None, /// <summary> /// Resizing performed by expanding or shrinking a view in the direction of the left margin. /// </summary> [iOSVersion(2)] FlexibleLeftMargin, /// <summary> /// Resizing performed by expanding or shrinking a view’s width. /// </summary> [iOSVersion(2)] FlexibleWidth, /// <summary> /// Resizing performed by expanding or shrinking a view in the direction of the right margin. /// </summary> [iOSVersion(2)] FlexibleRightMargin, /// <summary> /// Resizing performed by expanding or shrinking a view in the direction of the top margin. /// </summary> [iOSVersion(2)] FlexibleTopMargin, /// <summary> /// Resizing performed by expanding or shrinking a view's height. /// </summary> [iOSVersion(2)] FlexibleHeight, /// <summary> /// Resizing performed by expanding or shrinking a view in the direction of the bottom margin. /// </summary> [iOSVersion(2)] FlexibleBottomMargin, } /// <summary> /// Animation transition options for use in an animation block object. /// </summary> [iOSVersion(2)] public enum UIViewAnimationTransition { /// <summary> /// The option for indicating that no transition is specified. /// </summary> [iOSVersion(2)] None, /// <summary> /// A transition that flips a view around a vertical axis from left to right. The left side of the view moves towards the front and right side towards the back. /// </summary> [iOSVersion(2)] FlipFromLeft, /// <summary> /// A transition that flips a view around a vertical axis from right to left. The right side of the view moves towards the front and left side towards the back. /// </summary> [iOSVersion(2)] FlipFromRight, /// <summary> /// A transition that curls a view up from the bottom. /// </summary> [iOSVersion(2)] CurlUp, /// <summary> /// A transition that curls a view down from the top. /// </summary> [iOSVersion(2)] CurlDown, } /// <summary> /// Key frame animation options used with the animateKeyframesWithDuration:delay:options:animations:completion: method. /// </summary> [iOSVersion(7)] public enum UIViewKeyframeAnimationOptions { /// <summary> /// The option to lay out subviews at commit time so that they are animated along with their parent. /// </summary> [iOSVersion(7)] LayoutSubviews, /// <summary> /// The option that allows the user to interact with views while they are being animated. /// </summary> [iOSVersion(7)] AllowUserInteraction, /// <summary> /// The option to start an animation from the current setting associated with an already in-flight animation. If this option is not present, any in-flight animations are allowed to finish before the new animation is started. If another animation is not in flight, this option has no effect. /// </summary> [iOSVersion(7)] BeginFromCurrentState, /// <summary> /// The option to repeat an animation indefinitely. /// </summary> [iOSVersion(7)] Repeat, /// <summary> /// The option to run an animation backwards and forwards. Must be combined with the UIViewKeyframeAnimationOptionRepeat option. /// </summary> [iOSVersion(7)] Autoreverse, /// <summary> /// The option to force an animation to use the original duration value specified when the animation was submitted. If this option is not present, the animation inherits the remaining duration of the in-flight animation, if any. /// </summary> [iOSVersion(7)] OverrideInheritedDuration, /// <summary> /// The option to not inherit the animation type or any options. /// </summary> [iOSVersion(7)] OverrideInheritedOptions, /// <summary> /// The option to use a simple linear calculation when interpolating between keyframe values. /// </summary> [iOSVersion(7)] CalculationModeLinear, /// <summary> /// The option to not interpolate between keyframe values, but rather to jump directly to each new keyframe value. /// </summary> [iOSVersion(7)] CalculationModeDiscrete, /// <summary> /// The option to compute intermediate keyframe values using a simple pacing algorithm. This option results in an evenly paced animation. /// </summary> [iOSVersion(7)] CalculationModePaced, /// <summary> /// The option to compute intermediate frames using a default Catmull-Rom spline that passes through the keyframe values. You cannot adjust the parameters of this algorithm. /// </summary> [iOSVersion(7)] CalculationModeCubic, /// <summary> /// The option to compute intermediate frames using the cubic scheme while ignoring the timing properties of the animation. Instead, timing parameters are calculated implicitly to give the animation a constant velocity. /// </summary> [iOSVersion(7)] CalculationModeCubicPaced, } /// <summary> /// Keys that specify a horizontal or vertical layout constraint between objects. /// </summary> [iOSVersion(6)] public enum UILayoutConstraintAxis { /// <summary> /// The constraint applied when laying out the horizontal relationship between objects. /// </summary> [iOSVersion(6)] Horizontal, /// <summary> /// The constraint applied when laying out the vertical relationship between objects. /// </summary> [iOSVersion(6)] Vertical, } } \ 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 UIView class defines a rectangular area on the screen and the interfaces for managing the content in that area. At runtime, a view object handles the rendering of any content in its area and also handles any interactions with that content. The UIView class itself provides basic behavior for filling its rectangular area with a background color. More sophisticated content can be presented by subclassing UIView and implementing the necessary drawing and event-handling code yourself. The UIKit framework also includes a set of standard subclasses that range from simple buttons to complex tables and can be used as-is. For example, a UILabel object draws a text string and a UIImageView object draws an image. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIView_Class/index.html#//apple_ref/occ/cl/UIView"/> [iOSVersion(2)] public class UIView// : UIActivityIndicatorView//, AnyObject, NSCoding, NSObjectProtocol, Reflectable, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UITraitEnvironment { public UIView() { } /// <summary> /// Initializes and returns a newly allocated view object with the specified frame rectangle. /// </summary> /// <param name="frame">The frame rectangle for the view, measured in points. The origin of the frame is relative to the superview in which you plan to add it. This method uses the frame rectangle to set the center and bounds properties accordingly.</param> [iOSVersion(2)] public UIView(CGRect frame) { } /// <summary> /// Returns the class used to create the layer for instances of this class. /// </summary> [iOSVersion(2)] [Export("layerClass")] public static AnyClass LayerClass() { return default(AnyClass); } /// <summary> /// Adds a view to the end of the receiver’s list of subviews. /// </summary> /// <param name="view">The view to be added. After being added, this view appears on top of any other subviews.</param> [iOSVersion(2)] [Export("addSubview")] public virtual void AddSubview(UIView view) { } /// <summary> /// Moves the specified subview so that it appears on top of its siblings. /// </summary> /// <param name="view">The subview to move to the front.</param> [iOSVersion(2)] [Export("bringSubviewToFront")] public virtual void BringSubviewToFront(UIView view) { } /// <summary> /// Moves the specified subview so that it appears behind its siblings. /// </summary> /// <param name="view">The subview to move to the back.</param> [iOSVersion(2)] [Export("sendSubviewToBack")] public virtual void SendSubviewToBack(UIView view) { } /// <summary> /// Unlinks the view from its superview and its window, and removes it from the responder chain. /// </summary> [iOSVersion(2)] [Export("removeFromSuperview")] public virtual void RemoveFromSuperview() { } /// <summary> /// Inserts a subview at the specified index. /// </summary> /// <param name="view">The view to insert. This value cannot be nil.</param> /// <param name="atIndex">The index in the array of the subviews property at which to insert the view. Subview indices start at 0 and cannot be greater than the number of subviews.</param> [iOSVersion(2)] [Export("insertSubview")] public virtual void InsertSubview(UIView view, int atIndex) { } /// <summary> /// Inserts a view above another view in the view hierarchy. /// </summary> /// <param name="view">The view to insert. It’s removed from its superview if it’s not a sibling of siblingSubview.</param> /// <param name="aboveSubview">The sibling view that will be behind the inserted view.</param> [iOSVersion(2)] [Export("insertSubview")] public virtual void InsertSubview(UIView view, UIView aboveSubview) { } /// <summary> /// Inserts a view below another view in the view hierarchy. /// </summary> /// <param name="view">The view to insert below another view. It’s removed from its superview if it’s not a sibling of siblingSubview.</param> /// <param name="belowSubview">The sibling view that will be above the inserted view.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("insertSubview")] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual void InsertSubview(UIView view, UIView belowSubview, bool NAME_YOUR_PARAMS = false) { } /// <summary> /// Exchanges the subviews at the specified indices. /// </summary> /// <param name="index1">The index of the first subview in the receiver.</param> /// <param name="withSubviewAtIndex">The index of the second subview in the receiver.</param> [iOSVersion(2)] [Export("exchangeSubviewAtIndex")] public virtual void ExchangeSubviewAtIndex(int index1, int withSubviewAtIndex) { } /// <summary> /// Returns a Boolean value indicating whether the receiver is a subview of a given view or identical to that view. /// </summary> /// <param name="view">The view to test against the receiver’s view hierarchy.</param> [iOSVersion(2)] [Export("isDescendantOfView")] public virtual bool IsDescendantOfView(UIView view) { return default(bool); } /// <summary> /// Asks the view to calculate and return the size that best fits its subviews. /// </summary> /// <param name="size">The current size of the receiver.</param> [iOSVersion(2)] [Export("sizeThatFits")] public virtual CGSize SizeThatFits(CGSize size) { return default(CGSize); } /// <summary> /// Resizes and moves the receiver view so it just encloses its subviews. /// </summary> [iOSVersion(2)] [Export("sizeToFit")] public virtual void SizeToFit() { } /// <summary> /// Lays out subviews. /// </summary> [iOSVersion(2)] [Export("layoutSubviews")] public virtual void LayoutSubviews() { } /// <summary> /// Invalidates the current layout of the receiver and triggers a layout update during the next update cycle. /// </summary> [iOSVersion(2)] [Export("setNeedsLayout")] public virtual void SetNeedsLayout() { } /// <summary> /// Lays out the subviews immediately. /// </summary> [iOSVersion(2)] [Export("layoutIfNeeded")] public virtual void LayoutIfNeeded() { } /// <summary> /// Returns whether the receiver depends on the constraint-based layout system. /// </summary> [iOSVersion(6)] [Export("requiresConstraintBasedLayout")] public static bool RequiresConstraintBasedLayout() { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the view’s autoresizing mask is translated into constraints for the constraint-based layout system. /// </summary> [iOSVersion(6)] [Export("translatesAutoresizingMaskIntoConstraints")] public virtual bool TranslatesAutoresizingMaskIntoConstraints() { return default(bool); } /// <summary> /// Sets whether the view’s autoresizing mask should be translated into constraints for the constraint-based layout system. /// </summary> /// <param name="flag">true if the view’s autoresizing mask should be translated into constraints for the constraint-based layout system, false otherwise.</param> [iOSVersion(6)] [Export("setTranslatesAutoresizingMaskIntoConstraints")] public virtual void SetTranslatesAutoresizingMaskIntoConstraints(bool flag) { } /// <summary> /// Returns the constraints held by the view. /// </summary> [iOSVersion(6)] [Export("constraints")] public virtual AnyObject[] Constraints() { return default(AnyObject[]); } /// <summary> /// Adds a constraint on the layout of the receiving view or its subviews. /// </summary> /// <param name="constraint">The constraint to be added to the view. The constraint may only reference the view itself or its subviews.</param> [iOSVersion(6)] [Export("addConstraint")] public virtual void AddConstraint(NSLayoutConstraint constraint) { } /// <summary> /// Adds multiple constraints on the layout of the receiving view or its subviews. /// </summary> /// <param name="constraints">An array of constraints to be added to the view. All constraints may only reference the view itself or its subviews.</param> [iOSVersion(6)] [Export("addConstraints")] public virtual void AddConstraints(AnyObject[] constraints) { } /// <summary> /// Removes the specified constraint from the view. /// </summary> /// <param name="constraint">The constraint to remove. Removing a constraint not held by the view has no effect.</param> [iOSVersion(6)] [Export("removeConstraint")] public virtual void RemoveConstraint(NSLayoutConstraint constraint) { } /// <summary> /// Removes the specified constraints from the view. /// </summary> /// <param name="constraints">The constraints to remove.</param> [iOSVersion(6)] [Export("removeConstraints")] public virtual void RemoveConstraints(AnyObject[] constraints) { } /// <summary> /// Returns the size of the view that satisfies the constraints it holds. /// </summary> /// <param name="targetSize">Indicates whether you want the smallest or largest possible size that meets the constraints. See Fitting Size for accepted values.</param> [iOSVersion(6)] [Export("systemLayoutSizeFittingSize")] public virtual CGSize SystemLayoutSizeFittingSize(CGSize targetSize) { return default(CGSize); } /// <summary> /// Returns the size of the view that satisfies the constraints it holds. /// </summary> /// <param name="targetSize">Indicates whether you want the smallest or largest possible size that meets the constraints. See Fitting Size for accepted values.</param> /// <param name="withHorizontalFittingPriority">The horizontal constraint priority.</param> /// <param name="verticalFittingPriority">The vertical constraint priority.</param> [iOSVersion(8)] [Export("systemLayoutSizeFittingSize")] public virtual CGSize SystemLayoutSizeFittingSize(CGSize targetSize, UILayoutPriority withHorizontalFittingPriority, UILayoutPriority verticalFittingPriority) { return default(CGSize); } /// <summary> /// Returns the natural size for the receiving view, considering only properties of the view itself. /// </summary> [iOSVersion(6)] [Export("intrinsicContentSize")] public virtual CGSize IntrinsicContentSize() { return default(CGSize); } /// <summary> /// Invalidates the view’s intrinsic content size. /// </summary> [iOSVersion(6)] [Export("invalidateIntrinsicContentSize")] public virtual void InvalidateIntrinsicContentSize() { } /// <summary> /// Returns the priority with which a view resists being made smaller than its intrinsic size. /// </summary> /// <param name="axis">The axis of the view that might be reduced.</param> [iOSVersion(6)] [Export("contentCompressionResistancePriorityForAxis")] public virtual UILayoutPriority ContentCompressionResistancePriorityForAxis(UILayoutConstraintAxis axis) { return default(UILayoutPriority); } /// <summary> /// Sets the priority with which a view resists being made smaller than its intrinsic size. /// </summary> /// <param name="priority">The new priority.</param> /// <param name="forAxis">The axis for which the compression resistance priority should be set.</param> [iOSVersion(6)] [Export("setContentCompressionResistancePriority")] public virtual void SetContentCompressionResistancePriority(UILayoutPriority priority, UILayoutConstraintAxis forAxis) { } /// <summary> /// Returns the priority with which a view resists being made larger than its intrinsic size. /// </summary> /// <param name="axis">The axis of the view that might be enlarged.</param> [iOSVersion(6)] [Export("contentHuggingPriorityForAxis")] public virtual UILayoutPriority ContentHuggingPriorityForAxis(UILayoutConstraintAxis axis) { return default(UILayoutPriority); } /// <summary> /// Sets the priority with which a view resists being made larger than its intrinsic size. /// </summary> /// <param name="priority">The new priority.</param> /// <param name="forAxis">The axis for which the content hugging priority should be set.</param> [iOSVersion(6)] [Export("setContentHuggingPriority")] public virtual void SetContentHuggingPriority(UILayoutPriority priority, UILayoutConstraintAxis forAxis) { } /// <summary> /// Returns the view’s alignment rectangle for a given frame. /// </summary> /// <param name="frame">The frame whose corresponding alignment rectangle is desired.</param> [iOSVersion(6)] [Export("alignmentRectForFrame")] public virtual CGRect AlignmentRectForFrame(CGRect frame) { return default(CGRect); } /// <summary> /// Returns the view’s frame for a given alignment rectangle. /// </summary> /// <param name="alignmentRect">The alignment rectangle whose corresponding frame is desired.</param> [iOSVersion(6)] [Export("frameForAlignmentRect")] public virtual CGRect FrameForAlignmentRect(CGRect alignmentRect) { return default(CGRect); } /// <summary> /// Returns the insets from the view’s frame that define its alignment rectangle. /// </summary> [iOSVersion(6)] [Export("alignmentRectInsets")] public virtual UIEdgeInsets AlignmentRectInsets() { return default(UIEdgeInsets); } /// <summary> /// Returns a view used to satisfy baseline constraints. /// </summary> [iOSVersion(6)] [Export("viewForBaselineLayout")] public virtual Optional<UIView> ViewForBaselineLayout() { return default(Optional<UIView>); } /// <summary> /// Returns whether the view’s constraints need updating. /// </summary> [iOSVersion(6)] [Export("needsUpdateConstraints")] public virtual bool NeedsUpdateConstraints() { return default(bool); } /// <summary> /// Controls whether the view’s constraints need updating. /// </summary> [iOSVersion(6)] [Export("setNeedsUpdateConstraints")] public virtual void SetNeedsUpdateConstraints() { } /// <summary> /// Updates constraints for the view. /// </summary> [iOSVersion(6)] [Export("updateConstraints")] public virtual void UpdateConstraints() { } /// <summary> /// Updates the constraints for the receiving view and its subviews. /// </summary> [iOSVersion(6)] [Export("updateConstraintsIfNeeded")] public virtual void UpdateConstraintsIfNeeded() { } /// <summary> /// Returns the constraints impacting the layout of the view for a given axis. /// </summary> /// <param name="axis">The axis for which the constraints should be found.</param> [iOSVersion(6)] [Export("constraintsAffectingLayoutForAxis")] public virtual AnyObject[] ConstraintsAffectingLayoutForAxis(UILayoutConstraintAxis axis) { return default(AnyObject[]); } /// <summary> /// Returns whether the constraints impacting the layout of the view incompletely specify the location of the view. /// </summary> [iOSVersion(6)] [Export("hasAmbiguousLayout")] public virtual bool HasAmbiguousLayout() { return default(bool); } /// <summary> /// Randomly changes the frame of a view with an ambiguous layout between the different valid values. /// </summary> [iOSVersion(6)] [Export("exerciseAmbiguityInLayout")] public virtual void ExerciseAmbiguityInLayout() { } /// <summary> /// Notifies the view that the layout margins changed. /// </summary> [iOSVersion(8)] [Export("layoutMarginsDidChange")] public virtual void LayoutMarginsDidChange() { } /// <summary> /// Draws the receiver’s image within the passed-in rectangle. /// </summary> /// <param name="rect">The portion of the view’s bounds that needs to be updated. The first time your view is drawn, this rectangle is typically the entire visible bounds of your view. However, during subsequent drawing operations, the rectangle may specify only part of your view.</param> [iOSVersion(2)] [Export("drawRect")] public virtual void DrawRect(CGRect rect) { } /// <summary> /// Marks the receiver’s entire bounds rectangle as needing to be redrawn. /// </summary> [iOSVersion(2)] [Export("setNeedsDisplay")] public virtual void SetNeedsDisplay() { } /// <summary> /// Marks the specified rectangle of the receiver as needing to be redrawn. /// </summary> /// <param name="invalidRect">The rectangular region of the receiver to mark as invalid; it should be specified in the coordinate system of the receiver.</param> [iOSVersion(2)] [Export("setNeedsDisplayInRect")] public virtual void SetNeedsDisplayInRect(CGRect invalidRect) { } /// <summary> /// Called by the system when the tintColor property changes. /// </summary> [iOSVersion(7)] [Export("tintColorDidChange")] public virtual void TintColorDidChange() { } /// <summary> /// Returns a print formatter for the receiving view. /// </summary> [iOSVersion(4.2)] [Export("viewPrintFormatter")] public virtual UIViewPrintFormatter ViewPrintFormatter() { return default(UIViewPrintFormatter); } /// <summary> /// Implemented to draw the view’s content for printing. /// </summary> /// <param name="area">A rectangle that defines the area for drawing printable content.</param> /// <param name="forViewPrintFormatter">An instance of UIViewPrintFormatter obtained by calling the viewPrintFormatter method.</param> [iOSVersion(4.2)] [Export("drawRect")] public virtual void DrawRect(CGRect area, UIViewPrintFormatter forViewPrintFormatter) { } /// <summary> /// Attaches a gesture recognizer to the view. /// </summary> /// <param name="gestureRecognizer">An object whose class descends from the UIGestureRecognizer class. This parameter must not be nil.</param> [iOSVersion(3.2)] [Export("addGestureRecognizer")] public virtual void AddGestureRecognizer(UIGestureRecognizer gestureRecognizer) { } /// <summary> /// Detaches a gesture recognizer from the receiving view. /// </summary> /// <param name="gestureRecognizer">An object whose class descends from the UIGestureRecognizer class.</param> [iOSVersion(3.2)] [Export("removeGestureRecognizer")] public virtual void RemoveGestureRecognizer(UIGestureRecognizer gestureRecognizer) { } /// <summary> /// Asks the view if the gesture recognizer should be allowed to continue tracking touch events. /// </summary> /// <param name="gestureRecognizer">The gesture recognizer that is attempting to transition out of the UIGestureRecognizerStatePossible state.</param> [iOSVersion(6)] [Export("gestureRecognizerShouldBegin")] public virtual bool GestureRecognizerShouldBegin(UIGestureRecognizer gestureRecognizer) { return default(bool); } /// <summary> /// Animate changes to one or more views using the specified duration, delay, options, and completion handler. /// </summary> /// <param name="duration">The total duration of the animations, measured in seconds. If you specify a negative value or 0, the changes are made without animating them.</param> /// <param name="delay">The amount of time (measured in seconds) to wait before beginning the animations. Specify a value of 0 to begin the animations immediately.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> /// <param name="animations">A block object containing the changes to commit to the views. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> [iOSVersion(4)] [Export("animateWithDuration")] public static void AnimateWithDuration(NSTimeInterval duration, NSTimeInterval delay, UIViewAnimationOptions options, Action animations, Optional<Action<bool>> completion) { } /// <summary> /// Animate changes to one or more views using the specified duration and completion handler. /// </summary> /// <param name="duration">The total duration of the animations, measured in seconds. If you specify a negative value or 0, the changes are made without animating them.</param> /// <param name="animations">A block object containing the changes to commit to the views. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> [iOSVersion(4)] [Export("animateWithDuration")] public static void AnimateWithDuration(NSTimeInterval duration, Action animations, Optional<Action<bool>> completion) { } /// <summary> /// Animate changes to one or more views using the specified duration. /// </summary> /// <param name="duration">The total duration of the animations, measured in seconds. If you specify a negative value or 0, the changes are made without animating them.</param> /// <param name="animations">A block object containing the changes to commit to the views. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL.</param> [iOSVersion(4)] [Export("animateWithDuration")] public static void AnimateWithDuration(NSTimeInterval duration, Action animations) { } /// <summary> /// Creates a transition animation for the specified container view. /// </summary> /// <param name="view">The container view that performs the transition.</param> /// <param name="duration">The duration of the transition animation, measured in seconds. If you specify a negative value or 0, the transition is made without animations.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> /// <param name="animations">A block object that contains the changes you want to make to the specified view. This block takes no parameters and has no return value. This parameter must not be NULL.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> [iOSVersion(4)] [Export("transitionWithView")] public static void TransitionWithView(UIView view, NSTimeInterval duration, UIViewAnimationOptions options, Action animations, Optional<Action<bool>> completion) { } /// <summary> /// Creates a transition animation between the specified views using the given parameters. /// </summary> /// <param name="fromView">The starting view for the transition. By default, this view is removed from its superview as part of the transition.</param> /// <param name="toView">The ending view for the transition. By default, this view is added to the superview of fromView as part of the transition.</param> /// <param name="duration">The duration of the transition animation, measured in seconds. If you specify a negative value or 0, the transition is made without animations.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> [iOSVersion(4)] [Export("transitionFromView")] public static void TransitionFromView(UIView fromView, UIView toView, NSTimeInterval duration, UIViewAnimationOptions options, Optional<Action<bool>> completion) { } /// <summary> /// Creates an animation block object that can be used to set up keyframe-based animations for the current view. /// </summary> /// <param name="duration">The duration of the overall animation, measured in seconds. If you specify a negative value or 0, changes are made immediately and without animations.</param> /// <param name="delay">Specifies the time (in seconds) to wait before starting the animation.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see “UIViewKeyframeAnimationOptions”.</param> /// <param name="animations">A block object containing the changes to commit to the views. Typically, you call the addKeyframeWithRelativeStartTime:relativeDuration:animations: method one or more times from inside this block. You may also change view values directly if you want those changes to animate over the full duration. This block takes no parameters and has no return value. Do not use a nil value for this parameter.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. You can use a nil value for this parameter.</param> [iOSVersion(7)] [Export("animateKeyframesWithDuration")] public static void AnimateKeyframesWithDuration(NSTimeInterval duration, NSTimeInterval delay, UIViewKeyframeAnimationOptions options, Action animations, Optional<Action<bool>> completion) { } /// <summary> /// Specifies the timing and animation values for a single frame of a keyframe animation. /// </summary> /// <param name="frameStartTime">The time at which to start the specified animations. This value must be in the range 0 to 1, where 0 represents the start of the overall animation and 1 represents the end of the overall animation. For example, for an animation that is two seconds in duration, specifying a start time of 0.5 causes the animations to begin executing one second after the start of the overall animation.</param> /// <param name="relativeDuration">The length of time over which to animate to the specified value. This value must be in the range 0 to 1 and indicates the amount of time relative to the overall animation length. If you specify a value of 0, any properties you set in the animations block update immediately at the specified start time. If you specify a nonzero value, the properties animate over that amount of time. For example, for an animation that is two seconds in duration, specifying a duration of 0.5 results in an animation duration of one second.</param> /// <param name="animations">A block object containing the animations you want to perform. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be nil.</param> [iOSVersion(7)] [Export("addKeyframeWithRelativeStartTime")] public static void AddKeyframeWithRelativeStartTime(Double frameStartTime, Double relativeDuration, Action animations) { } /// <summary> /// Performs a specified system-provided animation on one or more views, along with optional parallel animations that you define. /// </summary> /// <param name="animation">The system animation to perform; a constant from the UISystemAnimation enum.</param> /// <param name="onViews">The views to perform the animations on.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> /// <param name="animations">Additional animations you specify to run alongside the system animation, with the same timing and duration that the system animation defines or inherits. /// In your additional animations, do not modify properties of the view on which the system animation is being performed.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. The single Boolean argument indicates whether or not the animations finished before the completion handler was called. If the animation duration is 0, this block is performed at the beginning of the next run-loop cycle. You can use a nil value for this parameter.</param> [iOSVersion(7)] [Export("performSystemAnimation")] public static void PerformSystemAnimation(UISystemAnimation animation, AnyObject[] onViews, UIViewAnimationOptions options, Optional<Action> animations, Optional<Action<bool>> completion) { } /// <summary> /// Performs a view animation using a timing curve corresponding to the motion of a physical spring. /// </summary> /// <param name="duration">The total duration of the animations, measured in seconds. If you specify a negative value or 0, the changes are made without animating them.</param> /// <param name="delay">The amount of time (measured in seconds) to wait before beginning the animations. Specify a value of 0 to begin the animations immediately.</param> /// <param name="usingSpringWithDamping">The damping ratio for the spring animation as it approaches its quiescent state. /// To smoothly decelerate the animation without oscillation, use a value of 1. Employ a damping ratio closer to zero to increase oscillation.</param> /// <param name="initialSpringVelocity">The initial spring velocity. For smooth start to the animation, match this value to the view’s velocity as it was prior to attachment. /// A value of 1 corresponds to the total animation distance traversed in one second. For example, if the total animation distance is 200 points and you want the start of the animation to match a view velocity of 100 pt/s, use a value of 0.5.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> /// <param name="animations">A block object containing the changes to commit to the views. This is where you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL.</param> /// <param name="completion">A block object to be executed when the animation sequence ends. This block has no return value and takes a single Boolean argument that indicates whether or not the animations actually finished before the completion handler was called. If the duration of the animation is 0, this block is performed at the beginning of the next run loop cycle. This parameter may be NULL.</param> [iOSVersion(7)] [Export("animateWithDuration")] public static void AnimateWithDuration(NSTimeInterval duration, NSTimeInterval delay, CGFloat usingSpringWithDamping, CGFloat initialSpringVelocity, UIViewAnimationOptions options, Action animations, Optional<Action<bool>> completion) { } /// <summary> /// Disables a view transition animation. /// </summary> /// <param name="actionsWithoutAnimation">The view transition code that you want to perform without animation.</param> [iOSVersion(7)] [Export("performWithoutAnimation")] public static void PerformWithoutAnimation(Action actionsWithoutAnimation) { } /// <summary> /// Marks the beginning of a begin/commit animation block. /// </summary> /// <param name="animationID">An application-supplied identifier for the animations.</param> /// <param name="context">Custom data that you want to associate with this set of animations. information that is passed to the animation delegate messages—the selectors set using the setAnimationWillStartSelector: and setAnimationDidStopSelector: methods.</param> [iOSVersion(2)] [Export("beginAnimations")] public static void BeginAnimations(Optional<string> animationID, UnsafeMutablePointer context) { } /// <summary> /// Marks the end of a begin/commit animation block and schedules the animations for execution. /// </summary> [iOSVersion(2)] [Export("commitAnimations")] public static void CommitAnimations() { } /// <summary> /// Sets the start time for the current animation block. /// </summary> /// <param name="startTime">The time to begin the animations.</param> [iOSVersion(2)] [Export("setAnimationStartDate")] public static void SetAnimationStartDate(NSDate startTime) { } /// <summary> /// Sets whether animations are enabled. /// </summary> /// <param name="enabled">Specify true to enable animations or false to disable them.</param> [iOSVersion(2)] [Export("setAnimationsEnabled")] public static void SetAnimationsEnabled(bool enabled) { } /// <summary> /// Sets the delegate for any animation messages. /// </summary> /// <param name="@delegate">An object that defines the methods registered using the setAnimationWillStartSelector: and setAnimationDidStopSelector: methods. The view maintains a strong reference to this object for the duration of the animation.</param> [iOSVersion(2)] [Export("setAnimationDelegate")] public static void SetAnimationDelegate(Optional<AnyObject> @delegate) { } /// <summary> /// Sets the message to send to the animation delegate when the animation starts. /// </summary> /// <param name="selector">The message to send to the animation delegate before animations start. The default value is NULL. This selector should be of the form: - (void)animationDidStart:(NSString *)animationID context:(void *)context. Your method must take the following arguments: /// animationID /// An NSString containing an optional application-supplied identifier. This is the identifier string that is passed to the beginAnimations:context: method. This argument can be nil. /// context /// An optional application-supplied context. This is the context data passed to the beginAnimations:context: method. This argument can be nil.</param> [iOSVersion(2)] [Export("setAnimationWillStartSelector")] public static void SetAnimationWillStartSelector(Selector selector) { } /// <summary> /// Sets the message to send to the animation delegate when animation stops. /// </summary> /// <param name="selector">The message sent to the animation delegate after animations end. The default value is NULL. The selector should be of the form: - (void)animationDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context. Your method must take the following arguments: /// animationID /// An NSString containing an optional application-supplied identifier. This is the identifier that is passed to the beginAnimations:context: method. This argument can be nil. /// finished /// An NSNumber object containing a Boolean value. The value is true if the animation ran to completion before it stopped or false if it did not. /// context /// An optional application-supplied context. This is the context data passed to the beginAnimations:context: method. This argument can be nil.</param> [iOSVersion(2)] [Export("setAnimationDidStopSelector")] public static void SetAnimationDidStopSelector(Selector selector) { } /// <summary> /// Sets the duration (measured in seconds) of the animations in an animation block. /// </summary> /// <param name="duration">The period over which the animation occurs, measured in seconds.</param> [iOSVersion(2)] [Export("setAnimationDuration")] public static void SetAnimationDuration(NSTimeInterval duration) { } /// <summary> /// Sets the amount of time (in seconds) to wait before animating property changes within an animation block. /// </summary> /// <param name="delay"></param> [iOSVersion(2)] [Export("setAnimationDelay")] public static void SetAnimationDelay(NSTimeInterval delay) { } /// <summary> /// Sets the curve to use when animating property changes within an animation block. /// </summary> /// <param name="curve"></param> [iOSVersion(2)] [Export("setAnimationCurve")] public static void SetAnimationCurve(UIViewAnimationCurve curve) { } /// <summary> /// Sets the number of times animations within an animation block repeat. /// </summary> /// <param name="repeatCount">The number of times animations repeat. This value can be a fraction. If you specify the value 0, the animation is performed once without repeating.</param> [iOSVersion(2)] [Export("setAnimationRepeatCount")] public static void SetAnimationRepeatCount(float repeatCount) { } /// <summary> /// Sets whether the animations within an animation block automatically reverse themselves. /// </summary> /// <param name="repeatAutoreverses">Specify true to enable autoreversing or false to disable it.</param> [iOSVersion(2)] [Export("setAnimationRepeatAutoreverses")] public static void SetAnimationRepeatAutoreverses(bool repeatAutoreverses) { } /// <summary> /// Sets whether the animation should begin playing from the current state. /// </summary> /// <param name="fromCurrentState">Specify true if animations should begin from their currently visible state; otherwise, false.</param> [iOSVersion(2)] [Export("setAnimationBeginsFromCurrentState")] public static void SetAnimationBeginsFromCurrentState(bool fromCurrentState) { } /// <summary> /// Sets a transition to apply to a view during an animation block. /// </summary> /// <param name="transition">A transition to apply to view. Possible values are described in UIViewAnimationTransition.</param> /// <param name="forView">The view to apply the transition to.</param> /// <param name="cache">If true, the before and after images of view are rendered once and used to create the frames in the animation. Caching can improve performance but if you set this parameter to true, you must not update the view or its subviews during the transition. Updating the view and its subviews may interfere with the caching behaviors and cause the view contents to be rendered incorrectly (or in the wrong location) during the animation. You must wait until the transition ends to update the view. /// If false, the view and its contents must be updated for each frame of the transition animation, which may noticeably affect the frame rate.</param> [iOSVersion(2)] [Export("setAnimationTransition")] public static void SetAnimationTransition(UIViewAnimationTransition transition, UIView forView, bool cache) { } /// <summary> /// Returns a Boolean value indicating whether animations are enabled. /// </summary> [iOSVersion(2)] [Export("areAnimationsEnabled")] public static bool AreAnimationsEnabled() { return default(bool); } /// <summary> /// Begins applying a motion effect to the view. /// </summary> /// <param name="effect">The motion effect.</param> [iOSVersion(7)] [Export("addMotionEffect")] public virtual void AddMotionEffect(UIMotionEffect effect) { } /// <summary> /// Stops applying a motion effect to the view. /// </summary> /// <param name="effect">The motion effect.</param> [iOSVersion(7)] [Export("removeMotionEffect")] public virtual void RemoveMotionEffect(UIMotionEffect effect) { } /// <summary> /// Encodes state-related information for the view. /// </summary> /// <param name="coder">The coder object to use to encode the state of the view.</param> [iOSVersion(6)] [Export("encodeRestorableStateWithCoder")] public virtual void EncodeRestorableStateWithCoder(NSCoder coder) { } /// <summary> /// Decodes and restores state-related information for the view. /// </summary> /// <param name="coder">The coder object to use to decode the state of the view.</param> [iOSVersion(6)] [Export("decodeRestorableStateWithCoder")] public virtual void DecodeRestorableStateWithCoder(NSCoder coder) { } /// <summary> /// Returns a snapshot view based on the contents of the current view. /// </summary> /// <param name="afterUpdates">A Boolean value that specifies whether the snapshot should be taken after recent changes have been incorporated. Pass the value false to capture the screen in its current state, which might not include recent changes.</param> [iOSVersion(7)] [Export("snapshotViewAfterScreenUpdates")] public virtual UIView SnapshotViewAfterScreenUpdates(bool afterUpdates) { return default(UIView); } /// <summary> /// Returns a snapshot view based on the specified contents of the current view, with stretchable insets. /// </summary> /// <param name="rect">The portion of the view that you want to capture. The rectangle must be in the bounds coordinate space of the current view.</param> /// <param name="afterScreenUpdates">A Boolean value that specifies whether the snapshot should be taken after recent changes have been incorporated. Pass the value false if you want to capture the screen in its current state, which might not include recent changes.</param> /// <param name="withCapInsets">The edge insets that define the stretchable portion of the returned view’s content. You can specify UIEdgeInsetsZero if you do not want the contents of the returned view to have a stretchable area.</param> [iOSVersion(7)] [Export("resizableSnapshotViewFromRect")] public virtual UIView ResizableSnapshotViewFromRect(CGRect rect, bool afterScreenUpdates, UIEdgeInsets withCapInsets) { return default(UIView); } /// <summary> /// Renders a snapshot of the complete view hierarchy as visible onscreen into the current context. /// </summary> /// <param name="rect">A rectangle specified in the local coordinate system (bounds) of the view.</param> /// <param name="afterScreenUpdates">A Boolean value that indicates whether the snapshot should be rendered after recent changes have been incorporated. Specify the value false if you want to render a snapshot in the view hierarchy’s current state, which might not include recent changes.</param> [iOSVersion(7)] [Export("drawViewHierarchyInRect")] public virtual bool DrawViewHierarchyInRect(CGRect rect, bool afterScreenUpdates) { return default(bool); } /// <summary> /// Returns the view whose tag matches the specified value. /// </summary> /// <param name="tag">The tag value to search for.</param> [iOSVersion(2)] [Export("viewWithTag")] public virtual Optional<UIView> ViewWithTag(int tag) { return default(Optional<UIView>); } /// <summary> /// Converts a point from the receiver’s coordinate system to that of the specified view. /// </summary> /// <param name="point">A point specified in the local coordinate system (bounds) of the receiver.</param> /// <param name="toView">The view into whose coordinate system point is to be converted. If view is nil, this method instead converts to window base coordinates. Otherwise, both view and the receiver must belong to the same UIWindow object.</param> [iOSVersion(2)] [Export("convertPoint")] public virtual CGPoint ConvertPoint(CGPoint point, Optional<UIView> toView) { return default(CGPoint); } /// <summary> /// Converts a point from the coordinate system of a given view to that of the receiver. /// </summary> /// <param name="point">A point specified in the local coordinate system (bounds) of view.</param> /// <param name="fromView">The view with point in its coordinate system. If view is nil, this method instead converts from window base coordinates. Otherwise, both view and the receiver must belong to the same UIWindow object.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("convertPoint")] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual CGPoint ConvertPoint(CGPoint point, Optional<UIView> fromView, bool NAME_YOUR_PARAMS = false) { return default(CGPoint); } /// <summary> /// Converts a rectangle from the receiver’s coordinate system to that of another view. /// </summary> /// <param name="rect">A rectangle specified in the local coordinate system (bounds) of the receiver.</param> /// <param name="toView">The view that is the target of the conversion operation. If view is nil, this method instead converts to window base coordinates. Otherwise, both view and the receiver must belong to the same UIWindow object.</param> [iOSVersion(2)] [Export("convertRect")] public virtual CGRect ConvertRect(CGRect rect, Optional<UIView> toView) { return default(CGRect); } /// <summary> /// Converts a rectangle from the coordinate system of another view to that of the receiver. /// </summary> /// <param name="rect">A rectangle specified in the local coordinate system (bounds) of view.</param> /// <param name="fromView">The view with rect in its coordinate system. If view is nil, this method instead converts from window base coordinates. Otherwise, both view and the receiver must belong to the same UIWindow object.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("convertRect")] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual CGRect ConvertRect(CGRect rect, Optional<UIView> fromView, bool NAME_YOUR_PARAMS = false) { return default(CGRect); } /// <summary> /// Returns the farthest descendant of the receiver in the view hierarchy (including itself) that contains a specified point. /// </summary> /// <param name="point">A point specified in the receiver’s local coordinate system (bounds).</param> /// <param name="withEvent">The event that warranted a call to this method. If you are calling this method from outside your event-handling code, you may specify nil.</param> [iOSVersion(2)] [Export("hitTest")] public virtual Optional<UIView> HitTest(CGPoint point, Optional<UIEvent> withEvent) { return default(Optional<UIView>); } /// <summary> /// Returns a Boolean value indicating whether the receiver contains the specified point. /// </summary> /// <param name="point">A point that is in the receiver’s local coordinate system (bounds).</param> /// <param name="withEvent">The event that warranted a call to this method. If you are calling this method from outside your event-handling code, you may specify nil.</param> [iOSVersion(2)] [Export("pointInside")] public virtual bool PointInside(CGPoint point, Optional<UIEvent> withEvent) { return default(bool); } /// <summary> /// Causes the view (or one of its embedded text fields) to resign the first responder status. /// </summary> /// <param name="force">Specify true to force the first responder to resign, regardless of whether it wants to do so.</param> [iOSVersion(2)] [Export("endEditing")] public virtual bool EndEditing(bool force) { return default(bool); } /// <summary> /// Tells the view that a subview was added. /// </summary> /// <param name="subview">The view that was added as a subview.</param> [iOSVersion(2)] [Export("didAddSubview")] public virtual void DidAddSubview(UIView subview) { } /// <summary> /// Tells the view that a subview is about to be removed. /// </summary> /// <param name="subview">The subview that will be removed.</param> [iOSVersion(2)] [Export("willRemoveSubview")] public virtual void WillRemoveSubview(UIView subview) { } /// <summary> /// Tells the view that its superview is about to change to the specified superview. /// </summary> /// <param name="newSuperview">A view object that will be the new superview of the receiver. This object may be nil.</param> [iOSVersion(2)] [Export("willMoveToSuperview")] public virtual void WillMoveToSuperview(Optional<UIView> newSuperview) { } /// <summary> /// Tells the view that its superview changed. /// </summary> [iOSVersion(2)] [Export("didMoveToSuperview")] public virtual void DidMoveToSuperview() { } /// <summary> /// Tells the view that its window object is about to change. /// </summary> /// <param name="newWindow">The window object that will be at the root of the receiver's new view hierarchy. This parameter may be nil.</param> [iOSVersion(2)] [Export("willMoveToWindow")] public virtual void WillMoveToWindow(Optional<UIWindow> newWindow) { } /// <summary> /// Tells the view that its window object changed. /// </summary> [iOSVersion(2)] [Export("didMoveToWindow")] public virtual void DidMoveToWindow() { } /// <summary> /// The view’s background color. /// </summary> [iOSVersion(2)] [Export("backgroundColor")] public Optional<UIColor> BackgroundColor { get; set; } /// <summary> /// A Boolean value that determines whether the view is hidden. /// </summary> [iOSVersion(2)] [Export("hidden")] public bool Hidden { get; set; } /// <summary> /// The view’s alpha value. /// </summary> [iOSVersion(2)] [Export("alpha")] public CGFloat Alpha { get; set; } /// <summary> /// A Boolean value that determines whether the view is opaque. /// </summary> [iOSVersion(2)] [Export("opaque")] public bool Opaque { get; set; } /// <summary> /// The first nondefault tint color value in the view’s hierarchy, ascending from and starting with the view itself. /// </summary> [iOSVersion(7)] [Export("tintColor")] public UIColor TintColor { get; set; } /// <summary> /// The first non-default tint adjustment mode value in the view’s hierarchy, ascending from and starting with the view itself. /// </summary> [iOSVersion(7)] [Export("tintAdjustmentMode")] public UIViewTintAdjustmentMode TintAdjustmentMode { get; set; } /// <summary> /// A Boolean value that determines whether subviews are confined to the bounds of the view. /// </summary> [iOSVersion(2)] [Export("clipsToBounds")] public bool ClipsToBounds { get; set; } /// <summary> /// A Boolean value that determines whether the view’s bounds should be automatically cleared before drawing. /// </summary> [iOSVersion(2)] [Export("clearsContextBeforeDrawing")] public bool ClearsContextBeforeDrawing { get; set; } /// <summary> /// An optional view whose alpha channel is used to mask a view’s content. /// </summary> [iOSVersion(8)] [Export("maskView")] public Optional<UIView> MaskView { get; set; } /// <summary> /// The view’s Core Animation layer used for rendering. (read-only) /// </summary> [iOSVersion(2)] [Export("layer")] public CALayer Layer { get; private set; } /// <summary> /// A Boolean value that determines whether user events are ignored and removed from the event queue. /// </summary> [iOSVersion(2)] [Export("userInteractionEnabled")] public bool UserInteractionEnabled { get; set; } /// <summary> /// A Boolean value that indicates whether the receiver handles multi-touch events. /// </summary> [iOSVersion(2)] [Export("multipleTouchEnabled")] public bool MultipleTouchEnabled { get; set; } /// <summary> /// A Boolean value that indicates whether the receiver handles touch events exclusively. /// </summary> [iOSVersion(2)] [Export("exclusiveTouch")] public bool ExclusiveTouch { get; set; } /// <summary> /// The frame rectangle, which describes the view’s location and size in its superview’s coordinate system. /// </summary> [iOSVersion(2)] [Export("frame")] public CGRect Frame { get; set; } /// <summary> /// The receiver’s superview, or nil if it has none. (read-only) /// </summary> [iOSVersion(2)] [Export("superview")] public Optional<UIView> Superview { get; private set; } /// <summary> /// The receiver’s immediate subviews. (read-only) /// </summary> [iOSVersion(2)] [Export("subviews")] public AnyObject[] Subviews { get; private set; } /// <summary> /// The receiver’s window object, or nil if it has none. (read-only) /// </summary> [iOSVersion(2)] [Export("window")] public Optional<UIWindow> Window { get; private set; } /// <summary> /// An integer bit mask that determines how the receiver resizes itself when its superview’s bounds change. /// </summary> [iOSVersion(2)] [Export("autoresizingMask")] public UIViewAutoresizing AutoresizingMask { get; set; } /// <summary> /// A Boolean value that determines whether the receiver automatically resizes its subviews when its bounds change. /// </summary> [iOSVersion(2)] [Export("autoresizesSubviews")] public bool AutoresizesSubviews { get; set; } /// <summary> /// A flag used to determine how a view lays out its content when its bounds change. /// </summary> [iOSVersion(2)] [Export("contentMode")] public UIViewContentMode ContentMode { get; set; } /// <summary> /// The default spacing to use when laying out content in the view. /// </summary> [iOSVersion(8)] [Export("layoutMargins")] public UIEdgeInsets LayoutMargins { get; set; } /// <summary> /// A Boolean value indicating whether the current view also respects the margins of its superview. /// </summary> [iOSVersion(8)] [Export("preservesSuperviewLayoutMargins")] public bool PreservesSuperviewLayoutMargins { get; set; } /// <summary> /// The scale factor applied to the view. /// </summary> [iOSVersion(4)] [Export("contentScaleFactor")] public CGFloat ContentScaleFactor { get; set; } /// <summary> /// The gesture-recognizer objects currently attached to the view. /// </summary> [iOSVersion(3.2)] [Export("gestureRecognizers")] public AnyObject[] GestureRecognizers { get; set; } /// <summary> /// The array of motion effects for the view. /// </summary> [iOSVersion(7)] [Export("motionEffects")] public Optional<AnyObject[]> MotionEffects { get; set; } /// <summary> /// The identifier that determines whether the view supports state restoration. /// </summary> [iOSVersion(6)] [Export("restorationIdentifier")] public Optional<string> RestorationIdentifier { get; set; } /// <summary> /// An integer that you can use to identify view objects in your application. /// </summary> [iOSVersion(2)] [Export("tag")] public int Tag { get; set; } } /// <summary> /// Options for animating views using block objects. /// </summary> [iOSVersion(4)] public enum UIViewAnimationOptions { /// <summary> /// Lay out subviews at commit time so that they are animated along with their parent. /// </summary> [iOSVersion(4)] LayoutSubviews, /// <summary> /// Allow the user to interact with views while they are being animated. /// </summary> [iOSVersion(4)] AllowUserInteraction, /// <summary> /// Start the animation from the current setting associated with an already in-flight animation. If this key is not present, any in-flight animations are allowed to finish before the new animation is started. If another animation is not in flight, this key has no effect. /// </summary> [iOSVersion(4)] BeginFromCurrentState, /// <summary> /// Repeat the animation indefinitely. /// </summary> [iOSVersion(4)] Repeat, /// <summary> /// Run the animation backwards and forwards. Must be combined with the UIViewAnimationOptionRepeat option. /// </summary> [iOSVersion(4)] Autoreverse, /// <summary> /// Force the animation to use the original duration value specified when the animation was submitted. If this key is not present, the animation inherits the remaining duration of the in-flight animation, if any. /// </summary> [iOSVersion(4)] OverrideInheritedDuration, /// <summary> /// Force the animation to use the original curve value specified when the animation was submitted. If this key is not present, the animation inherits the curve of the in-flight animation, if any. /// </summary> [iOSVersion(4)] OverrideInheritedCurve, /// <summary> /// Animate the views by changing the property values dynamically and redrawing the view. If this key is not present, the views are animated using a snapshot image. /// </summary> [iOSVersion(4)] AllowAnimatedContent, /// <summary> /// When present, this key causes views to be hidden or shown (instead of removed or added) when performing a view transition. Both views must already be present in the parent view’s hierarchy when using this key. If this key is not present, the to-view in a transition is added to, and the from-view is removed from, the parent view’s list of subviews. /// </summary> [iOSVersion(4)] ShowHideTransitionViews, /// <summary> /// The option to not inherit the animation type or any options. /// </summary> [iOSVersion(4)] OverrideInheritedOptions, /// <summary> /// An ease-in ease-out curve causes the animation to begin slowly, accelerate through the middle of its duration, and then slow again before completing. /// </summary> [iOSVersion(4)] CurveEaseInOut, /// <summary> /// An ease-in curve causes the animation to begin slowly, and then speed up as it progresses. /// </summary> [iOSVersion(4)] CurveEaseIn, /// <summary> /// An ease-out curve causes the animation to begin quickly, and then slow as it completes. /// </summary> [iOSVersion(4)] CurveEaseOut, /// <summary> /// A linear animation curve causes an animation to occur evenly over its duration. /// </summary> [iOSVersion(4)] CurveLinear, /// <summary> /// No transition is specified. /// </summary> [iOSVersion(4)] TransitionNone, /// <summary> /// A transition that flips a view around its vertical axis from left to right. The left side of the view moves toward the front and right side toward the back. /// </summary> [iOSVersion(4)] TransitionFlipFromLeft, /// <summary> /// A transition that flips a view around its vertical axis from right to left. The right side of the view moves toward the front and left side toward the back. /// </summary> [iOSVersion(4)] TransitionFlipFromRight, /// <summary> /// A transition that curls a view up from the bottom. /// </summary> [iOSVersion(4)] TransitionCurlUp, /// <summary> /// A transition that curls a view down from the top. /// </summary> [iOSVersion(4)] TransitionCurlDown, /// <summary> /// A transition that dissolves from one view to the next. /// </summary> [iOSVersion(4)] TransitionCrossDissolve, /// <summary> /// A transition that flips a view around its horizontal axis from top to bottom. The top side of the view moves toward the front and the bottom side toward the back. /// </summary> [iOSVersion(4)] TransitionFlipFromTop, /// <summary> /// A transition that flips a view around its horizontal axis from bottom to top. The bottom side of the view moves toward the front and the top side toward the back. /// </summary> [iOSVersion(4)] TransitionFlipFromBottom, } /// <summary> /// Specifies the supported animation curves. /// </summary> [iOSVersion(2)] public enum UIViewAnimationCurve { /// <summary> /// An ease-in ease-out curve causes the animation to begin slowly, accelerate through the middle of its duration, and then slow again before completing. This is the default curve for most animations. /// </summary> [iOSVersion(2)] EaseInOut, /// <summary> /// An ease-in curve causes the animation to begin slowly, and then speed up as it progresses. /// </summary> [iOSVersion(2)] EaseIn, /// <summary> /// An ease-out curve causes the animation to begin quickly, and then slow down as it completes. /// </summary> [iOSVersion(2)] EaseOut, /// <summary> /// A linear animation curve causes an animation to occur evenly over its duration. /// </summary> [iOSVersion(2)] Linear, } /// <summary> /// Options to specify how a view adjusts its content when its size changes. /// </summary> [iOSVersion(2)] public enum UIViewContentMode { /// <summary> /// The option to scale the content to fit the size of itself by changing the aspect ratio of the content if necessary. /// </summary> [iOSVersion(2)] ScaleToFill, /// <summary> /// The option to scale the content to fit the size of the view by maintaining the aspect ratio. Any remaining area of the view’s bounds is transparent. /// </summary> [iOSVersion(2)] ScaleAspectFit, /// <summary> /// The option to scale the content to fill the size of the view. Some portion of the content may be clipped to fill the view’s bounds. /// </summary> [iOSVersion(2)] ScaleAspectFill, /// <summary> /// The option to redisplay the view when the bounds change by invoking the setNeedsDisplay method. /// </summary> [iOSVersion(2)] Redraw, /// <summary> /// The option to center the content in the view’s bounds, keeping the proportions the same. /// </summary> [iOSVersion(2)] Center, /// <summary> /// The option to center the content aligned at the top in the view’s bounds. /// </summary> [iOSVersion(2)] Top, /// <summary> /// The option to center the content aligned at the bottom in the view’s bounds. /// </summary> [iOSVersion(2)] Bottom, /// <summary> /// The option to align the content on the left of the view. /// </summary> [iOSVersion(2)] Left, /// <summary> /// The option to align the content on the right of the view. /// </summary> [iOSVersion(2)] Right, /// <summary> /// The option to align the content in the top-left corner of the view. /// </summary> [iOSVersion(2)] TopLeft, /// <summary> /// The option to align the content in the top-right corner of the view. /// </summary> [iOSVersion(2)] TopRight, /// <summary> /// The option to align the content in the bottom-left corner of the view. /// </summary> [iOSVersion(2)] BottomLeft, /// <summary> /// The option to align the content in the bottom-right corner of the view. /// </summary> [iOSVersion(2)] BottomRight, } /// <summary> /// The tint adjustment mode for the view. /// </summary> [iOSVersion(7)] public enum UIViewTintAdjustmentMode { /// <summary> /// The tint adjustment mode of the view is the same as its superview's tint adjustment mode (or UIViewTintAdjustmentModeNormal if the view has no superview). /// </summary> [iOSVersion(7)] Automatic, /// <summary> /// The view's tintColor property returns the completely unmodified tint color of the view. /// </summary> [iOSVersion(7)] Normal, /// <summary> /// The view's tintColor property returns a desaturated, dimmed version of the view's original tint color. /// </summary> [iOSVersion(7)] Dimmed, } /// <summary> /// Option to remove the views from the hierarchy when animation is complete. /// </summary> [iOSVersion(7)] public enum UISystemAnimation { /// <summary> /// Option to remove views from the view hierarchy when animation is complete. /// </summary> [iOSVersion(7)] Delete, } /// <summary> /// Options for automatic view resizing. /// </summary> [iOSVersion(2)] public enum UIViewAutoresizing { /// <summary> /// The option for indicating that the view does not resize. /// </summary> [iOSVersion(2)] None, /// <summary> /// Resizing performed by expanding or shrinking a view in the direction of the left margin. /// </summary> [iOSVersion(2)] FlexibleLeftMargin, /// <summary> /// Resizing performed by expanding or shrinking a view’s width. /// </summary> [iOSVersion(2)] FlexibleWidth, /// <summary> /// Resizing performed by expanding or shrinking a view in the direction of the right margin. /// </summary> [iOSVersion(2)] FlexibleRightMargin, /// <summary> /// Resizing performed by expanding or shrinking a view in the direction of the top margin. /// </summary> [iOSVersion(2)] FlexibleTopMargin, /// <summary> /// Resizing performed by expanding or shrinking a view's height. /// </summary> [iOSVersion(2)] FlexibleHeight, /// <summary> /// Resizing performed by expanding or shrinking a view in the direction of the bottom margin. /// </summary> [iOSVersion(2)] FlexibleBottomMargin, } /// <summary> /// Animation transition options for use in an animation block object. /// </summary> [iOSVersion(2)] public enum UIViewAnimationTransition { /// <summary> /// The option for indicating that no transition is specified. /// </summary> [iOSVersion(2)] None, /// <summary> /// A transition that flips a view around a vertical axis from left to right. The left side of the view moves towards the front and right side towards the back. /// </summary> [iOSVersion(2)] FlipFromLeft, /// <summary> /// A transition that flips a view around a vertical axis from right to left. The right side of the view moves towards the front and left side towards the back. /// </summary> [iOSVersion(2)] FlipFromRight, /// <summary> /// A transition that curls a view up from the bottom. /// </summary> [iOSVersion(2)] CurlUp, /// <summary> /// A transition that curls a view down from the top. /// </summary> [iOSVersion(2)] CurlDown, } /// <summary> /// Key frame animation options used with the animateKeyframesWithDuration:delay:options:animations:completion: method. /// </summary> [iOSVersion(7)] public enum UIViewKeyframeAnimationOptions { /// <summary> /// The option to lay out subviews at commit time so that they are animated along with their parent. /// </summary> [iOSVersion(7)] LayoutSubviews, /// <summary> /// The option that allows the user to interact with views while they are being animated. /// </summary> [iOSVersion(7)] AllowUserInteraction, /// <summary> /// The option to start an animation from the current setting associated with an already in-flight animation. If this option is not present, any in-flight animations are allowed to finish before the new animation is started. If another animation is not in flight, this option has no effect. /// </summary> [iOSVersion(7)] BeginFromCurrentState, /// <summary> /// The option to repeat an animation indefinitely. /// </summary> [iOSVersion(7)] Repeat, /// <summary> /// The option to run an animation backwards and forwards. Must be combined with the UIViewKeyframeAnimationOptionRepeat option. /// </summary> [iOSVersion(7)] Autoreverse, /// <summary> /// The option to force an animation to use the original duration value specified when the animation was submitted. If this option is not present, the animation inherits the remaining duration of the in-flight animation, if any. /// </summary> [iOSVersion(7)] OverrideInheritedDuration, /// <summary> /// The option to not inherit the animation type or any options. /// </summary> [iOSVersion(7)] OverrideInheritedOptions, /// <summary> /// The option to use a simple linear calculation when interpolating between keyframe values. /// </summary> [iOSVersion(7)] CalculationModeLinear, /// <summary> /// The option to not interpolate between keyframe values, but rather to jump directly to each new keyframe value. /// </summary> [iOSVersion(7)] CalculationModeDiscrete, /// <summary> /// The option to compute intermediate keyframe values using a simple pacing algorithm. This option results in an evenly paced animation. /// </summary> [iOSVersion(7)] CalculationModePaced, /// <summary> /// The option to compute intermediate frames using a default Catmull-Rom spline that passes through the keyframe values. You cannot adjust the parameters of this algorithm. /// </summary> [iOSVersion(7)] CalculationModeCubic, /// <summary> /// The option to compute intermediate frames using the cubic scheme while ignoring the timing properties of the animation. Instead, timing parameters are calculated implicitly to give the animation a constant velocity. /// </summary> [iOSVersion(7)] CalculationModeCubicPaced, } /// <summary> /// Keys that specify a horizontal or vertical layout constraint between objects. /// </summary> [iOSVersion(6)] public enum UILayoutConstraintAxis { /// <summary> /// The constraint applied when laying out the horizontal relationship between objects. /// </summary> [iOSVersion(6)] Horizontal, /// <summary> /// The constraint applied when laying out the vertical relationship between objects. /// </summary> [iOSVersion(6)] Vertical, } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIViewController.cs b/CocoaSharp/UIKit/UIViewController.cs
index 9110c192..ee314865 100644
--- a/CocoaSharp/UIKit/UIViewController.cs
+++ b/CocoaSharp/UIKit/UIViewController.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIViewController class provides the fundamental view-management model for all iOS apps. You rarely instantiate UIViewController objects directly. Instead, you instantiate subclasses of the UIViewController class based on the specific task each subclass performs. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIViewController_Class/index.html#//apple_ref/occ/cl/UIViewController"/> [iOSVersion(2)] public class UIViewController : CABTMIDICentralViewController//, AnyObject, NSCoding, NSExtensionRequestHandling, NSObjectProtocol, UIAppearanceContainer, UIContentContainer, UIStateRestoring, UITraitEnvironment { public UIViewController() { } /// <summary> /// Returns a newly initialized view controller with the nib file in the specified bundle. /// </summary> /// <param name="nibName">The name of the nib file to associate with the view controller. The nib file name should not contain any leading path information. If you specify nil, the nibName property is set to nil.</param> /// <param name="bundle">The bundle in which to search for the nib file. This method looks for the nib file in the bundle's language-specific project directories first, followed by the Resources directory. If this parameter is nil, the method uses the heuristics described below to locate the nib file.</param> [iOSVersion(2)] public UIViewController(string nibName, NSBundle bundle) { } /// <summary> /// Determines whether the segue with the specified identifier should be triggered. /// </summary> /// <param name="identifier">The string that identifies the triggered segue. /// In Interface Builder, you can associate an identifier string with each segue using the inspector. This string is used only for locating the segue inside the storyboard.</param> /// <param name="sender">The object that initiated the segue. This object is made available for informational purposes during the actual segue.</param> [iOSVersion(6)] [Export("shouldPerformSegueWithIdentifier")] public virtual bool ShouldPerformSegueWithIdentifier(string identifier, AnyObject sender) { return default(bool); } /// <summary> /// Notifies the view controller that a segue is about to be performed. /// </summary> /// <param name="segue">The segue object containing information about the view controllers involved in the segue.</param> /// <param name="sender">The object that initiated the segue. You might use this parameter to perform different actions based on which control (or other object) initiated the segue.</param> [iOSVersion(5)] [Export("prepareForSegue")] public virtual void PrepareForSegue(UIStoryboardSegue segue, AnyObject sender) { } /// <summary> /// Initiates the segue with the specified identifier from the view controller'€™s storyboard file. /// </summary> /// <param name="identifier">The string that identifies the segue inside the storyboard file. /// In Interface Builder, you can associate an identifier string with each segue using the inspector. This string is used only for locating the segue inside the storyboard. This is the string that you pass to this parameter. /// This method throws an exception if there is no segue with the specified identifier.</param> /// <param name="sender">The object that you want to use to initiate the segue. This object is made available for informational purposes during the actual segue.</param> [iOSVersion(5)] [Export("performSegueWithIdentifier")] public virtual void PerformSegueWithIdentifier(string identifier, AnyObject sender) { } /// <summary> /// Called on a view controller to determine whether it wants to respond to an unwind action. /// </summary> /// <param name="action">The unwind action to invoke on your view controller.</param> /// <param name="fromViewController">The view controller that initiated the unwind action.</param> /// <param name="withSender">The object that triggered the action.</param> [iOSVersion(6)] [Export("canPerformUnwindSegueAction")] public virtual bool CanPerformUnwindSegueAction(Selector action, UIViewController fromViewController, AnyObject withSender) { return default(bool); } /// <summary> /// Called when an unwind segue action needs to transition between two view controllers. /// </summary> /// <param name="toViewController">The target view controller.</param> /// <param name="fromViewController">The view controller initiating the unwind action.</param> /// <param name="identifier">An identifier for the segue.</param> [iOSVersion(6)] [Export("segueForUnwindingToViewController")] public virtual UIStoryboardSegue SegueForUnwindingToViewController(UIViewController toViewController, UIViewController fromViewController, string identifier) { return default(UIStoryboardSegue); } /// <summary> /// Called when an unwind segue action wants to search a container'€™s children for a view controller to handle the unwind action. /// </summary> /// <param name="action">The action that triggered the unwind action.</param> /// <param name="fromViewController">The view controller that is the source of the unwinding action.</param> /// <param name="withSender">The object that initiated the action.</param> [iOSVersion(6)] [Export("viewControllerForUnwindSegueAction")] public virtual UIViewController ViewControllerForUnwindSegueAction(Selector action, UIViewController fromViewController, AnyObject withSender) { return default(UIViewController); } /// <summary> /// Returns a Boolean value indicating whether the view is currently loaded into memory. /// </summary> [iOSVersion(3)] [Export("isViewLoaded")] public virtual bool IsViewLoaded() { return default(bool); } /// <summary> /// Creates the view that the controller manages. /// </summary> [iOSVersion(2)] [Export("loadView")] public virtual void LoadView() { } /// <summary> /// Called after the controller'€™s view is loaded into memory. /// </summary> [iOSVersion(2)] [Export("viewDidLoad")] public virtual void ViewDidLoad() { } /// <summary> /// Presents a view controller modally. /// </summary> /// <param name="viewControllerToPresent">The view controller to display over the current view controller’s content.</param> /// <param name="animated">Pass true to animate the presentation; otherwise, pass false.</param> /// <param name="completion">The block to execute after the presentation finishes. This block has no return value and takes no parameters. You may specify nil for this parameter.</param> [iOSVersion(5)] [Export("presentViewController")] public virtual void PresentViewController(UIViewController viewControllerToPresent, bool animated, Action completion) { } /// <summary> /// Dismisses the view controller that was presented modally by the receiver. /// </summary> /// <param name="flag">Pass true to animate the transition.</param> /// <param name="completion">The block to execute after the view controller is dismissed. This block has no return value and takes no parameters. You may specify nil for this parameter.</param> [iOSVersion(5)] [Export("dismissViewControllerAnimated")] public virtual void DismissViewControllerAnimated(bool flag, Action completion) { } /// <summary> /// Presents a view controller based on the current size class of the environment. /// </summary> /// <param name="vc">The current view controller.</param> /// <param name="sender">The object being acted upon.</param> [iOSVersion(8)] [Export("showViewController")] public virtual void ShowViewController(UIViewController vc, AnyObject sender) { } /// <summary> /// Presents a view controller in a ‘detail’€ context based on the size class of the environment. /// </summary> /// <param name="vc">The current view controller.</param> /// <param name="sender">The object being acted upon.</param> [iOSVersion(8)] [Export("showDetailViewController")] public virtual void ShowDetailViewController(UIViewController vc, AnyObject sender) { } /// <summary> /// Returns the active transition coordinator object. /// </summary> [iOSVersion(7)] [Export("transitionCoordinator")] public virtual UIViewControllerTransitionCoordinator TransitionCoordinator() { return default(UIViewControllerTransitionCoordinator); } /// <summary> /// Returns a Boolean indicating whether the current input view is dismissed automatically when changing controls. /// </summary> [iOSVersion(4.3)] [Export("disablesAutomaticKeyboardDismissal")] public virtual bool DisablesAutomaticKeyboardDismissal() { return default(bool); } /// <summary> /// Returns the view controller that responds the the action. /// </summary> /// <param name="action">The requested action.</param> /// <param name="sender">The object sending the request.</param> [iOSVersion(8)] [Export("targetViewControllerForAction")] public virtual UIViewController TargetViewControllerForAction(Selector action, AnyObject sender) { return default(UIViewController); } /// <summary> /// Sent to the view controller when the app receives a memory warning. /// </summary> [iOSVersion(2)] [Export("didReceiveMemoryWarning")] public virtual void DidReceiveMemoryWarning() { } /// <summary> /// Notifies the view controller that its view is about to be added to a view hierarchy. /// </summary> /// <param name="animated">If true, the view is being added to the window using an animation.</param> [iOSVersion(2)] [Export("viewWillAppear")] public virtual void ViewWillAppear(bool animated) { } /// <summary> /// Notifies the view controller that its view was added to a view hierarchy. /// </summary> /// <param name="animated">If true, the view was added to the window using an animation.</param> [iOSVersion(2)] [Export("viewDidAppear")] public virtual void ViewDidAppear(bool animated) { } /// <summary> /// Notifies the view controller that its view is about to be removed from a view hierarchy. /// </summary> /// <param name="animated">If true, the disappearance of the view is being animated.</param> [iOSVersion(2)] [Export("viewWillDisappear")] public virtual void ViewWillDisappear(bool animated) { } /// <summary> /// Notifies the view controller that its view was removed from a view hierarchy. /// </summary> /// <param name="animated">If true, the disappearance of the view was animated.</param> [iOSVersion(2)] [Export("viewDidDisappear")] public virtual void ViewDidDisappear(bool animated) { } /// <summary> /// Called to notify the view controller that its view is about to layout its subviews. /// </summary> [iOSVersion(5)] [Export("viewWillLayoutSubviews")] public virtual void ViewWillLayoutSubviews() { } /// <summary> /// Called to notify the view controller that its view has just laid out its subviews. /// </summary> [iOSVersion(5)] [Export("viewDidLayoutSubviews")] public virtual void ViewDidLayoutSubviews() { } /// <summary> /// Called when the view controller'€™s view needs to update its constraints. /// </summary> [iOSVersion(6)] [Export("updateViewConstraints")] public virtual void UpdateViewConstraints() { } /// <summary> /// Returns a Boolean value that indicates that the view controller is in the process of being removed from its parent. /// </summary> [iOSVersion(5)] [Export("isMovingFromParentViewController")] public virtual bool IsMovingFromParentViewController() { return default(bool); } /// <summary> /// Returns a Boolean value that indicates that the view controller is in the process of being added to a parent. /// </summary> [iOSVersion(5)] [Export("isMovingToParentViewController")] public virtual bool IsMovingToParentViewController() { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the view controller is in the process of being presented by one of its ancestors. /// </summary> [iOSVersion(5)] [Export("isBeingPresented")] public virtual bool IsBeingPresented() { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the view controller is in the process of being dismissed by one of its ancestors. /// </summary> [iOSVersion(5)] [Export("isBeingDismissed")] public virtual bool IsBeingDismissed() { return default(bool); } /// <summary> /// Returns a Boolean value indicating whether the view controller'€™s contents should auto rotate. /// </summary> [iOSVersion(6)] [Export("shouldAutorotate")] public virtual bool ShouldAutorotate() { return default(bool); } /// <summary> /// Returns all of the interface orientations that the view controller supports. /// </summary> [iOSVersion(6)] [Export("supportedInterfaceOrientations")] public virtual int SupportedInterfaceOrientations() { return default(int); } /// <summary> /// Returns the interface orientation to use when presenting the view controller. /// </summary> [iOSVersion(6)] [Export("preferredInterfaceOrientationForPresentation")] public virtual UIInterfaceOrientation PreferredInterfaceOrientationForPresentation() { return default(UIInterfaceOrientation); } /// <summary> /// Attempts to rotate all windows to the orientation of the device. /// </summary> [iOSVersion(5)] [Export("attemptRotationToDeviceOrientation")] public virtual static void AttemptRotationToDeviceOrientation() { } /// <summary> /// Called when a split view controller transitions to a compact-width size class. /// </summary> /// <param name="secondaryViewController">The secondary view controller associated with the split view controller.</param> /// <param name="forSplitViewController">The current split view controller.</param> [iOSVersion(8)] [Export("collapseSecondaryViewController")] public virtual void CollapseSecondaryViewController(UIViewController secondaryViewController, UISplitViewController forSplitViewController) { } /// <summary> /// Called when a split view controller transitions to a regular-width size class. /// </summary> /// <param name="splitViewController">The current split view controller.</param> [iOSVersion(8)] [Export("separateSecondaryViewControllerForSplitViewController")] public virtual UIViewController SeparateSecondaryViewControllerForSplitViewController(UISplitViewController splitViewController) { return default(UIViewController); } /// <summary> /// Adds the given view controller as a child. /// </summary> /// <param name="childController">The view controller to be added as a child.</param> [iOSVersion(5)] [Export("addChildViewController")] public virtual void AddChildViewController(UIViewController childController) { } /// <summary> /// Removes the receiver from its parent in the view controller hierarchy. /// </summary> [iOSVersion(5)] [Export("removeFromParentViewController")] public virtual void RemoveFromParentViewController() { } /// <summary> /// Transitions between two of the view controller'€™s child view controllers. /// </summary> /// <param name="fromViewController">A view controller whose view is currently visible in the parent'€™s view hierarchy.</param> /// <param name="toViewController">A child view controller whose view is not currently in the view hierarchy.</param> /// <param name="duration">The total duration of the animations, in seconds. If you pass zero, the changes are made without animating them.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> /// <param name="animations">A block object containing the changes to commit to the views. Here you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL.</param> /// <param name="completion">A block to be called when the animation completes. /// The block takes the following parameters: /// finished /// true if the animation finished; false if it was skipped.</param> [iOSVersion(5)] [Export("transitionFromViewController")] public virtual void TransitionFromViewController(UIViewController fromViewController, UIViewController toViewController, NSTimeInterval duration, UIViewAnimationOptions options, Action animations, Action<bool> completion) { } /// <summary> /// Returns a Boolean value indicating whether appearance methods are forwarded to child view controllers. /// </summary> [iOSVersion(6)] [Export("shouldAutomaticallyForwardAppearanceMethods")] public virtual bool ShouldAutomaticallyForwardAppearanceMethods() { return default(bool); } /// <summary> /// Tells a child controller its appearance is about to change. /// </summary> /// <param name="isAppearing">true if the child view controller'€™s view is about to be added to the view hierarchy, false if it is being removed.</param> /// <param name="animated">If true, the transition is being animated.</param> [iOSVersion(5)] [Export("beginAppearanceTransition")] public virtual void BeginAppearanceTransition(bool isAppearing, bool animated) { } /// <summary> /// Tells a child controller its appearance has changed. /// </summary> [iOSVersion(5)] [Export("endAppearanceTransition")] public virtual void EndAppearanceTransition() { } /// <summary> /// Changes the traits assigned to the specified child view controller. /// </summary> /// <param name="collection">The new traits to apply to the child view controller.</param> /// <param name="forChildViewController">The child view controller who’s trait collection is to be changed.</param> [iOSVersion(8)] [Export("setOverrideTraitCollection")] public virtual void SetOverrideTraitCollection(UITraitCollection collection, UIViewController forChildViewController) { } /// <summary> /// Retrieves the trait collection for a child view controller. /// </summary> /// <param name="childViewController">The view controller who’s trait collection is to be returned.</param> [iOSVersion(8)] [Export("overrideTraitCollectionForChildViewController")] public virtual UITraitCollection OverrideTraitCollectionForChildViewController(UIViewController childViewController) { return default(UITraitCollection); } /// <summary> /// Called just before the view controller is added or removed from a container view controller. /// </summary> /// <param name="parent">The parent view controller, or nil if there is no parent.</param> [iOSVersion(5)] [Export("willMoveToParentViewController")] public virtual void WillMoveToParentViewController(UIViewController parent) { } /// <summary> /// Called after the view controller is added or removed from a container view controller. /// </summary> /// <param name="parent">The parent view controller, or nil if there is no parent.</param> [iOSVersion(5)] [Export("didMoveToParentViewController")] public virtual void DidMoveToParentViewController(UIViewController parent) { } /// <summary> /// Sets whether the view controller shows an editable view. /// </summary> /// <param name="editing">If true, the view controller should display an editable view; otherwise, false. ///   If true and one of the custom views of the navigationItem property is set to the value returned by the editButtonItem method, the associated navigation controller displays a Done button; otherwise, an Edit button.</param> /// <param name="animated">If true, animates the transition; otherwise, does not.</param> [iOSVersion(2)] [Export("setEditing")] public virtual void SetEditing(bool editing, bool animated) { } /// <summary> /// Encodes state-related information for the view controller. /// </summary> /// <param name="coder">The coder object to use to encode the state of the view controller.</param> [iOSVersion(6)] [Export("encodeRestorableStateWithCoder")] public virtual void EncodeRestorableStateWithCoder(NSCoder coder) { } /// <summary> /// Decodes and restores state-related information for the view controller. /// </summary> /// <param name="coder">The coder object to use to decode the state of the view.</param> [iOSVersion(6)] [Export("decodeRestorableStateWithCoder")] public virtual void DecodeRestorableStateWithCoder(NSCoder coder) { } /// <summary> /// Called on restored view controllers after other object decoding is complete. /// </summary> [iOSVersion(7)] [Export("applicationFinishedRestoringState")] public virtual void ApplicationFinishedRestoringState() { } /// <summary> /// Called when the system needs the view controller to use for determining status bar hidden/unhidden state. /// </summary> [iOSVersion(7)] [Export("childViewControllerForStatusBarHidden")] public virtual UIViewController ChildViewControllerForStatusBarHidden() { return default(UIViewController); } /// <summary> /// Called when the system needs the view controller to use for determining status bar style. /// </summary> [iOSVersion(7)] [Export("childViewControllerForStatusBarStyle")] public virtual UIViewController ChildViewControllerForStatusBarStyle() { return default(UIViewController); } /// <summary> /// The preferred status bar style for the view controller. /// </summary> [iOSVersion(7)] [Export("preferredStatusBarStyle")] public virtual UIStatusBarStyle PreferredStatusBarStyle() { return default(UIStatusBarStyle); } /// <summary> /// Specifies whether the view controller prefers the status bar to be hidden or shown. /// </summary> [iOSVersion(7)] [Export("prefersStatusBarHidden")] public virtual bool PrefersStatusBarHidden() { return default(bool); } /// <summary> /// Specifies the animation style to use for hiding and showing the status bar for the view controller. /// </summary> [iOSVersion(7)] [Export("preferredStatusBarUpdateAnimation")] public virtual UIStatusBarAnimation PreferredStatusBarUpdateAnimation() { return default(UIStatusBarAnimation); } /// <summary> /// Indicates to the system that the view controller status bar attributes have changed. /// </summary> [iOSVersion(7)] [Export("setNeedsStatusBarAppearanceUpdate")] public virtual void SetNeedsStatusBarAppearanceUpdate() { } /// <summary> /// Returns a bar button item that toggles its title and associated state between Edit and Done. /// </summary> [iOSVersion(2)] [Export("editButtonItem")] public virtual UIBarButtonItem EditButtonItem() { return default(UIBarButtonItem); } /// <summary> /// Sets the toolbar items to be displayed along with the view controller. /// </summary> /// <param name="toolbarItems">The toolbar items to display in a built-in toolbar.</param> /// <param name="animated">If true, animate the change of items in the toolbar.</param> [iOSVersion(3)] [Export("setToolbarItems")] public virtual void SetToolbarItems(AnyObject[] toolbarItems, bool animated) { } /// <summary> /// Returns the header view to transition during an interface orientation change. /// </summary> [iOSVersion(2)] [Export("rotatingHeaderView")] public virtual UIView RotatingHeaderView() { return default(UIView); } /// <summary> /// Returns the footer view to transition during an interface orientation change. /// </summary> [iOSVersion(2)] [Export("rotatingFooterView")] public virtual UIView RotatingFooterView() { return default(UIView); } /// <summary> /// Sent to the view controller just before the user interface begins rotating. /// </summary> /// <param name="toInterfaceOrientation">The new orientation for the user interface. The possible values are described in UIInterfaceOrientation.</param> /// <param name="duration">The duration of the pending rotation, measured in seconds.</param> [iOSVersion(2)] [Export("willRotateToInterfaceOrientation")] public virtual void WillRotateToInterfaceOrientation(UIInterfaceOrientation toInterfaceOrientation, NSTimeInterval duration) { } /// <summary> /// Sent to the view controller before performing a one-step user interface rotation. /// </summary> /// <param name="interfaceOrientation">The new orientation for the user interface. The possible values are described in UIInterfaceOrientation.</param> /// <param name="duration">The duration of the pending rotation, measured in seconds.</param> [iOSVersion(3)] [Export("willAnimateRotationToInterfaceOrientation")] public virtual void WillAnimateRotationToInterfaceOrientation(UIInterfaceOrientation interfaceOrientation, NSTimeInterval duration) { } /// <summary> /// Sent to the view controller after the user interface rotates. /// </summary> /// <param name="fromInterfaceOrientation">The old orientation of the user interface. For possible values, see UIInterfaceOrientation.</param> [iOSVersion(2)] [Export("didRotateFromInterfaceOrientation")] public virtual void DidRotateFromInterfaceOrientation(UIInterfaceOrientation fromInterfaceOrientation) { } /// <summary> /// Returns a Boolean value indicating whether rotation methods are forwarded to child view controllers. /// </summary> [iOSVersion(6)] [Export("shouldAutomaticallyForwardRotationMethods")] public virtual bool ShouldAutomaticallyForwardRotationMethods() { return default(bool); } /// <summary> /// Return the name of the receiver'€™s nib file, if one was specified. (read-only) /// </summary> [iOSVersion(2)] [Export("nibName")] public string NibName { get; private set; } /// <summary> /// Return the name of the receiver'€™s nib bundle if it exists. (read-only) /// </summary> [iOSVersion(2)] [Export("nibBundle")] public NSBundle NibBundle { get; private set; } /// <summary> /// The storyboard from which the view controller originated. (read-only) /// </summary> [iOSVersion(5)] [Export("storyboard")] public UIStoryboard Storyboard { get; private set; } /// <summary> /// The view that the controller manages. /// </summary> [iOSVersion(2)] [Export("view")] public UIView View { get; set; } /// <summary> /// A localized string that represents the view this controller manages. /// </summary> [iOSVersion(2)] [Export("title")] public string Title { get; set; } /// <summary> /// The presentation style for modally presented view controllers. /// </summary> [iOSVersion(3.2)] [Export("modalPresentationStyle")] public UIModalPresentationStyle ModalPresentationStyle { get; set; } /// <summary> /// The transition style to use when presenting the receiver. /// </summary> [iOSVersion(3)] [Export("modalTransitionStyle")] public UIModalTransitionStyle ModalTransitionStyle { get; set; } /// <summary> /// A Boolean value that indicates whether this view controller's view is covered when the view controller or one of its descendants presents a view controller. /// </summary> [iOSVersion(5)] [Export("definesPresentationContext")] public bool DefinesPresentationContext { get; set; } /// <summary> /// The delegate object that provides transition animator and interactive controller objects. /// </summary> [iOSVersion(7)] [Export("transitioningDelegate")] public UIViewControllerTransitioningDelegate TransitioningDelegate { get; set; } /// <summary> /// A Boolean value that indicates whether the view controller defines the transition style for view controllers it presents. /// </summary> [iOSVersion(5)] [Export("providesPresentationContextTransitionStyle")] public bool ProvidesPresentationContextTransitionStyle { get; set; } /// <summary> /// Specifies whether or not the view controller should automatically adjust its scroll view insets. /// </summary> [iOSVersion(7)] [Export("automaticallyAdjustsScrollViewInsets")] public bool AutomaticallyAdjustsScrollViewInsets { get; set; } /// <summary> /// The preferred size for the view controller’s view. /// </summary> [iOSVersion(7)] [Export("preferredContentSize")] public CGSize PreferredContentSize { get; set; } /// <summary> /// The extended edges to use for the layout. /// </summary> [iOSVersion(7)] [Export("edgesForExtendedLayout")] public UIRectEdge EdgesForExtendedLayout { get; set; } /// <summary> /// A Boolean value indicating whether or not the extended layout includes opaque bars. /// </summary> [iOSVersion(7)] [Export("extendedLayoutIncludesOpaqueBars")] public bool ExtendedLayoutIncludesOpaqueBars { get; set; } /// <summary> /// Indicates the lowest vertical extent for your onscreen content, for use with Auto Layout constraints. (read-only) /// </summary> [iOSVersion(7)] [Export("bottomLayoutGuide")] public UILayoutSupport BottomLayoutGuide { get; private set; } /// <summary> /// Indicates the highest vertical extent for your onscreen content, for use with Auto Layout constraints. (read-only) /// </summary> [iOSVersion(7)] [Export("topLayoutGuide")] public UILayoutSupport TopLayoutGuide { get; private set; } /// <summary> /// An array of the view controllers that are the children of the receiver in the view controller hierarchy. (read-only) /// </summary> [iOSVersion(5)] [Export("childViewControllers")] public AnyObject[] ChildViewControllers { get; private set; } /// <summary> /// A Boolean value indicating whether the view controller currently allows the user to edit the view contents. /// </summary> [iOSVersion(2)] [Export("editing")] public bool Editing { get; set; } /// <summary> /// The identifier that determines whether the view controller supports state restoration. /// </summary> [iOSVersion(6)] [Export("restorationIdentifier")] public string RestorationIdentifier { get; set; } /// <summary> /// The class responsible for recreating this view controller when restoring the app'€™s state. /// </summary> [iOSVersion(6)] [Export("restorationClass")] public AnyObject.Type RestorationClass { get; set; } /// <summary> /// The view controller that presented this view controller. (read-only) /// </summary> [iOSVersion(5)] [Export("presentingViewController")] public UIViewController PresentingViewController { get; private set; } /// <summary> /// The view controller that is presented by this view controller, or one of its ancestors in the view controller hierarchy. (read-only) /// </summary> [iOSVersion(5)] [Export("presentedViewController")] public UIViewController PresentedViewController { get; private set; } /// <summary> /// The parent view controller of the recipient. (read-only) /// </summary> [iOSVersion(2)] [Export("parentViewController")] public UIViewController ParentViewController { get; private set; } /// <summary> /// The nearest ancestor in the view controller hierarchy that is a popover presentation controller. (read-only) /// </summary> [iOSVersion(8)] [Export("popoverPresentationController")] public UIPopoverPresentationController PopoverPresentationController { get; private set; } /// <summary> /// The nearest ancestor in the view controller hierarchy that is a presentation controller. (read-only) /// </summary> [iOSVersion(8)] [Export("presentationController")] public UIPresentationController PresentationController { get; private set; } /// <summary> /// The nearest ancestor in the view controller hierarchy that is a navigation controller. (read-only) /// </summary> [iOSVersion(2)] [Export("navigationController")] public UINavigationController NavigationController { get; private set; } /// <summary> /// The nearest ancestor in the view controller hierarchy that is a split view controller. (read-only) /// </summary> [iOSVersion(3.2)] [Export("splitViewController")] public UISplitViewController SplitViewController { get; private set; } /// <summary> /// The nearest ancestor in the view controller hierarchy that is a tab bar controller. (read-only) /// </summary> [iOSVersion(2)] [Export("tabBarController")] public UITabBarController TabBarController { get; private set; } /// <summary> /// Returns the extension context of the view controller. (read-only) /// </summary> [iOSVersion(8)] [Export("extensionContext")] public NSExtensionContext ExtensionContext { get; private set; } /// <summary> /// Specifies whether a view controller, presented non-fullscreen, takes over control of status bar appearance from the presenting view controller. /// </summary> [iOSVersion(7)] [Export("modalPresentationCapturesStatusBarAppearance")] public bool ModalPresentationCapturesStatusBarAppearance { get; set; } /// <summary> /// The navigation item used to represent the view controller in a parent'€™s navigation bar. (read-only) /// </summary> [iOSVersion(2)] [Export("navigationItem")] public UINavigationItem NavigationItem { get; private set; } /// <summary> /// A Boolean value indicating whether the toolbar at the bottom of the screen is hidden when the view controller is pushed on to a navigation controller. /// </summary> [iOSVersion(2)] [Export("hidesBottomBarWhenPushed")] public bool HidesBottomBarWhenPushed { get; set; } /// <summary> /// The toolbar items associated with the view controller. /// </summary> [iOSVersion(3)] [Export("toolbarItems")] public AnyObject[] ToolbarItems { get; set; } /// <summary> /// The tab bar item that represents the view controller when added to a tab bar controller. /// </summary> [iOSVersion(2)] [Export("tabBarItem")] public UITabBarItem TabBarItem { get; set; } /// <summary> /// A Boolean value indicating whether the view controller should be presented modally by a popover. /// </summary> [iOSVersion(3.2)] [Export("modalInPopover")] public bool ModalInPopover { get; set; } /// <summary> /// Convenience property that provides the current orientation of the interface, meaningful only if the view controller is taking up the full screen. (read-only) /// </summary> [iOSVersion(2)] [Export("interfaceOrientation")] public UIInterfaceOrientation InterfaceOrientation { get; private set; } /// <summary> /// The search display controller associated with the view controller. (read-only) /// </summary> [iOSVersion(3)] [Export("searchDisplayController")] public UISearchDisplayController SearchDisplayController { get; private set; } } /// <summary> /// Transition styles available when presenting view controllers. /// </summary> [iOSVersion(3)] public enum UIModalTransitionStyle { /// <summary> /// When the view controller is presented, its view slides up from the bottom of the screen. On dismissal, the view slides back down. This is the default transition style. /// </summary> [iOSVersion(3)] CoverVertical, /// <summary> /// When the view controller is presented, the current view initiates a horizontal 3D flip from right-to-left, resulting in the revealing of the new view as if it were on the back of the previous view. On dismissal, the flip occurs from left-to-right, returning to the original view. /// </summary> [iOSVersion(3)] FlipHorizontal, /// <summary> /// When the view controller is presented, the current view fades out while the new view fades in at the same time. On dismissal, a similar type of cross-fade is used to return to the original view. /// </summary> [iOSVersion(3)] CrossDissolve, /// <summary> /// When the view controller is presented, one corner of the current view curls up to reveal the presented view underneath. On dismissal, the curled up page unfurls itself back on top of the presented view. A view presented using this transition is itself prevented from presenting any additional views. /// This transition style is supported only if the parent view controller is presenting a full-screen view and you use the UIModalPresentationFullScreen modal presentation style. Attempting to use a different form factor for the parent view or a different presentation style triggers an exception. /// </summary> [iOSVersion(3.2)] PartialCurl, } /// <summary> /// Modal presentation styles available when presenting view controllers. /// </summary> [iOSVersion(3.2)] public enum UIModalPresentationStyle { /// <summary> /// A presentation style in which the presented view covers the screen. /// </summary> [iOSVersion(3.2)] FullScreen, /// <summary> /// In a horizontally regular environment, a presentation style that partially covers the underlying content. The presented view'€™s width is set to the width of the screen in a portrait orientation and the the height is set to the height of the screen. Any uncovered areas are dimmed to prevent the user from interacting with them. (In portrait orientations, this option is essentially the same as UIModalPresentationFullScreen.) /// In a horizontally compact environment, this option behaves the same as UIModalPresentationFullScreen. /// </summary> [iOSVersion(3.2)] PageSheet, /// <summary> /// In a horizontally regular environment, a presentation style that displays the content centered in the screen. The width and height of the content area are smaller than the screen size and a dimming view is placed underneath the content. If the device is in a landscape orientation and the keyboard is visible, the position of the view is adjusted upward so that the view remains visible. All uncovered areas are dimmed to prevent the user from interacting with them. /// In a horizontally compact environment, this option behaves the same as UIModalPresentationFullScreen. /// </summary> [iOSVersion(3.2)] FormSheet, /// <summary> /// A presentation style where the content is displayed over only the presenting view controller’s content. /// When presenting a view controller in a popover, this presentation style is supported only if the transition style is UIModalTransitionStyleCoverVertical. Attempting to use a different transition style triggers an exception. However, you may use other transition styles (except the partial curl transition) if the parent view controller is not in a popover. /// </summary> [iOSVersion(3.2)] CurrentContext, /// <summary> /// A custom view presentation style that is managed by a custom presentation controller and one or more custom animator objects. All of these objects are provided by the presented view controller’s transitioning delegate, which is an object that conforms to the UIViewControllerTransitioningDelegate protocol. Before presenting a view controller using this style, set the view controller’s transitioningDelegate property to your custom transitioning delegate. /// </summary> [iOSVersion(7)] Custom, /// <summary> /// A view presentation style in which the presented view covers the screen. The views beneath the presented content are not removed from the view hierarchy when the presentation finishes. So if the presented view controller does not fill the screen with opaque content, the underlying content shows through. /// </summary> [iOSVersion(8)] OverFullScreen, /// <summary> /// A presentation style where the content is displayed over only the parent view controller’s content. The views beneath the presented content are not removed from the view hierarchy when the presentation finishes. So if the presented view controller does not fill the screen with opaque content, the underlying content shows through. /// When presenting a view controller in a popover, this presentation style is supported only if the transition style is UIModalTransitionStyleCoverVertical. Attempting to use a different transition style triggers an exception. However, you may use other transition styles (except the partial curl transition) if the parent view controller is not in a popover. /// </summary> [iOSVersion(8)] OverCurrentContext, /// <summary> /// In a horizontally regular environment, a presentation style where the content is displayed in a popover view. The background content is dimmed and taps outside the popover cause the popover to be dismissed. If you do not want taps to dismiss the popover, you can assign one or more views to the passthroughViews property of the associated UIPopoverPresentationController object, which you can get from the popoverPresentationController property. /// In a horizontally compact environment, this option behaves the same as UIModalPresentationFullScreen. /// </summary> [iOSVersion(8)] Popover, /// <summary> /// A nonmodal view presentation or dismissal. /// </summary> [iOSVersion(7)] None, } } \ 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 UIViewController class provides the fundamental view-management model for all iOS apps. You rarely instantiate UIViewController objects directly. Instead, you instantiate subclasses of the UIViewController class based on the specific task each subclass performs. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIViewController_Class/index.html#//apple_ref/occ/cl/UIViewController"/> [iOSVersion(2)] public class UIViewController : CABTMIDICentralViewController//, AnyObject, NSCoding, NSExtensionRequestHandling, NSObjectProtocol, UIAppearanceContainer, UIContentContainer, UIStateRestoring, UITraitEnvironment { public UIViewController() { } /// <summary> /// Returns a newly initialized view controller with the nib file in the specified bundle. /// </summary> /// <param name="nibName">The name of the nib file to associate with the view controller. The nib file name should not contain any leading path information. If you specify nil, the nibName property is set to nil.</param> /// <param name="bundle">The bundle in which to search for the nib file. This method looks for the nib file in the bundle's language-specific project directories first, followed by the Resources directory. If this parameter is nil, the method uses the heuristics described below to locate the nib file.</param> [iOSVersion(2)] public UIViewController(string nibName, NSBundle bundle) { } /// <summary> /// Determines whether the segue with the specified identifier should be triggered. /// </summary> /// <param name="identifier">The string that identifies the triggered segue. /// In Interface Builder, you can associate an identifier string with each segue using the inspector. This string is used only for locating the segue inside the storyboard.</param> /// <param name="sender">The object that initiated the segue. This object is made available for informational purposes during the actual segue.</param> [iOSVersion(6)] [Export("shouldPerformSegueWithIdentifier")] public virtual bool ShouldPerformSegueWithIdentifier(string identifier, AnyObject sender) { return default(bool); } /// <summary> /// Notifies the view controller that a segue is about to be performed. /// </summary> /// <param name="segue">The segue object containing information about the view controllers involved in the segue.</param> /// <param name="sender">The object that initiated the segue. You might use this parameter to perform different actions based on which control (or other object) initiated the segue.</param> [iOSVersion(5)] [Export("prepareForSegue")] public virtual void PrepareForSegue(UIStoryboardSegue segue, AnyObject sender) { } /// <summary> /// Initiates the segue with the specified identifier from the view controller'€™s storyboard file. /// </summary> /// <param name="identifier">The string that identifies the segue inside the storyboard file. /// In Interface Builder, you can associate an identifier string with each segue using the inspector. This string is used only for locating the segue inside the storyboard. This is the string that you pass to this parameter. /// This method throws an exception if there is no segue with the specified identifier.</param> /// <param name="sender">The object that you want to use to initiate the segue. This object is made available for informational purposes during the actual segue.</param> [iOSVersion(5)] [Export("performSegueWithIdentifier")] public virtual void PerformSegueWithIdentifier(string identifier, AnyObject sender) { } /// <summary> /// Called on a view controller to determine whether it wants to respond to an unwind action. /// </summary> /// <param name="action">The unwind action to invoke on your view controller.</param> /// <param name="fromViewController">The view controller that initiated the unwind action.</param> /// <param name="withSender">The object that triggered the action.</param> [iOSVersion(6)] [Export("canPerformUnwindSegueAction")] public virtual bool CanPerformUnwindSegueAction(Selector action, UIViewController fromViewController, AnyObject withSender) { return default(bool); } /// <summary> /// Called when an unwind segue action needs to transition between two view controllers. /// </summary> /// <param name="toViewController">The target view controller.</param> /// <param name="fromViewController">The view controller initiating the unwind action.</param> /// <param name="identifier">An identifier for the segue.</param> [iOSVersion(6)] [Export("segueForUnwindingToViewController")] public virtual UIStoryboardSegue SegueForUnwindingToViewController(UIViewController toViewController, UIViewController fromViewController, string identifier) { return default(UIStoryboardSegue); } /// <summary> /// Called when an unwind segue action wants to search a container'€™s children for a view controller to handle the unwind action. /// </summary> /// <param name="action">The action that triggered the unwind action.</param> /// <param name="fromViewController">The view controller that is the source of the unwinding action.</param> /// <param name="withSender">The object that initiated the action.</param> [iOSVersion(6)] [Export("viewControllerForUnwindSegueAction")] public virtual UIViewController ViewControllerForUnwindSegueAction(Selector action, UIViewController fromViewController, AnyObject withSender) { return default(UIViewController); } /// <summary> /// Returns a Boolean value indicating whether the view is currently loaded into memory. /// </summary> [iOSVersion(3)] [Export("isViewLoaded")] public virtual bool IsViewLoaded() { return default(bool); } /// <summary> /// Creates the view that the controller manages. /// </summary> [iOSVersion(2)] [Export("loadView")] public virtual void LoadView() { } /// <summary> /// Called after the controller'€™s view is loaded into memory. /// </summary> [iOSVersion(2)] [Export("viewDidLoad")] public virtual void ViewDidLoad() { } /// <summary> /// Presents a view controller modally. /// </summary> /// <param name="viewControllerToPresent">The view controller to display over the current view controller’s content.</param> /// <param name="animated">Pass true to animate the presentation; otherwise, pass false.</param> /// <param name="completion">The block to execute after the presentation finishes. This block has no return value and takes no parameters. You may specify nil for this parameter.</param> [iOSVersion(5)] [Export("presentViewController")] public virtual void PresentViewController(UIViewController viewControllerToPresent, bool animated, Action completion) { } /// <summary> /// Dismisses the view controller that was presented modally by the receiver. /// </summary> /// <param name="flag">Pass true to animate the transition.</param> /// <param name="completion">The block to execute after the view controller is dismissed. This block has no return value and takes no parameters. You may specify nil for this parameter.</param> [iOSVersion(5)] [Export("dismissViewControllerAnimated")] public virtual void DismissViewControllerAnimated(bool flag, Action completion) { } /// <summary> /// Presents a view controller based on the current size class of the environment. /// </summary> /// <param name="vc">The current view controller.</param> /// <param name="sender">The object being acted upon.</param> [iOSVersion(8)] [Export("showViewController")] public virtual void ShowViewController(UIViewController vc, AnyObject sender) { } /// <summary> /// Presents a view controller in a ‘detail’€ context based on the size class of the environment. /// </summary> /// <param name="vc">The current view controller.</param> /// <param name="sender">The object being acted upon.</param> [iOSVersion(8)] [Export("showDetailViewController")] public virtual void ShowDetailViewController(UIViewController vc, AnyObject sender) { } /// <summary> /// Returns the active transition coordinator object. /// </summary> [iOSVersion(7)] [Export("transitionCoordinator")] public virtual UIViewControllerTransitionCoordinator TransitionCoordinator() { return default(UIViewControllerTransitionCoordinator); } /// <summary> /// Returns a Boolean indicating whether the current input view is dismissed automatically when changing controls. /// </summary> [iOSVersion(4.3)] [Export("disablesAutomaticKeyboardDismissal")] public virtual bool DisablesAutomaticKeyboardDismissal() { return default(bool); } /// <summary> /// Returns the view controller that responds the the action. /// </summary> /// <param name="action">The requested action.</param> /// <param name="sender">The object sending the request.</param> [iOSVersion(8)] [Export("targetViewControllerForAction")] public virtual UIViewController TargetViewControllerForAction(Selector action, AnyObject sender) { return default(UIViewController); } /// <summary> /// Sent to the view controller when the app receives a memory warning. /// </summary> [iOSVersion(2)] [Export("didReceiveMemoryWarning")] public virtual void DidReceiveMemoryWarning() { } /// <summary> /// Notifies the view controller that its view is about to be added to a view hierarchy. /// </summary> /// <param name="animated">If true, the view is being added to the window using an animation.</param> [iOSVersion(2)] [Export("viewWillAppear")] public virtual void ViewWillAppear(bool animated) { } /// <summary> /// Notifies the view controller that its view was added to a view hierarchy. /// </summary> /// <param name="animated">If true, the view was added to the window using an animation.</param> [iOSVersion(2)] [Export("viewDidAppear")] public virtual void ViewDidAppear(bool animated) { } /// <summary> /// Notifies the view controller that its view is about to be removed from a view hierarchy. /// </summary> /// <param name="animated">If true, the disappearance of the view is being animated.</param> [iOSVersion(2)] [Export("viewWillDisappear")] public virtual void ViewWillDisappear(bool animated) { } /// <summary> /// Notifies the view controller that its view was removed from a view hierarchy. /// </summary> /// <param name="animated">If true, the disappearance of the view was animated.</param> [iOSVersion(2)] [Export("viewDidDisappear")] public virtual void ViewDidDisappear(bool animated) { } /// <summary> /// Called to notify the view controller that its view is about to layout its subviews. /// </summary> [iOSVersion(5)] [Export("viewWillLayoutSubviews")] public virtual void ViewWillLayoutSubviews() { } /// <summary> /// Called to notify the view controller that its view has just laid out its subviews. /// </summary> [iOSVersion(5)] [Export("viewDidLayoutSubviews")] public virtual void ViewDidLayoutSubviews() { } /// <summary> /// Called when the view controller'€™s view needs to update its constraints. /// </summary> [iOSVersion(6)] [Export("updateViewConstraints")] public virtual void UpdateViewConstraints() { } /// <summary> /// Returns a Boolean value that indicates that the view controller is in the process of being removed from its parent. /// </summary> [iOSVersion(5)] [Export("isMovingFromParentViewController")] public virtual bool IsMovingFromParentViewController() { return default(bool); } /// <summary> /// Returns a Boolean value that indicates that the view controller is in the process of being added to a parent. /// </summary> [iOSVersion(5)] [Export("isMovingToParentViewController")] public virtual bool IsMovingToParentViewController() { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the view controller is in the process of being presented by one of its ancestors. /// </summary> [iOSVersion(5)] [Export("isBeingPresented")] public virtual bool IsBeingPresented() { return default(bool); } /// <summary> /// Returns a Boolean value that indicates whether the view controller is in the process of being dismissed by one of its ancestors. /// </summary> [iOSVersion(5)] [Export("isBeingDismissed")] public virtual bool IsBeingDismissed() { return default(bool); } /// <summary> /// Returns a Boolean value indicating whether the view controller'€™s contents should auto rotate. /// </summary> [iOSVersion(6)] [Export("shouldAutorotate")] public virtual bool ShouldAutorotate() { return default(bool); } /// <summary> /// Returns all of the interface orientations that the view controller supports. /// </summary> [iOSVersion(6)] [Export("supportedInterfaceOrientations")] public virtual int SupportedInterfaceOrientations() { return default(int); } /// <summary> /// Returns the interface orientation to use when presenting the view controller. /// </summary> [iOSVersion(6)] [Export("preferredInterfaceOrientationForPresentation")] public virtual UIInterfaceOrientation PreferredInterfaceOrientationForPresentation() { return default(UIInterfaceOrientation); } /// <summary> /// Attempts to rotate all windows to the orientation of the device. /// </summary> [iOSVersion(5)] [Export("attemptRotationToDeviceOrientation")] public static void AttemptRotationToDeviceOrientation() { } /// <summary> /// Called when a split view controller transitions to a compact-width size class. /// </summary> /// <param name="secondaryViewController">The secondary view controller associated with the split view controller.</param> /// <param name="forSplitViewController">The current split view controller.</param> [iOSVersion(8)] [Export("collapseSecondaryViewController")] public virtual void CollapseSecondaryViewController(UIViewController secondaryViewController, UISplitViewController forSplitViewController) { } /// <summary> /// Called when a split view controller transitions to a regular-width size class. /// </summary> /// <param name="splitViewController">The current split view controller.</param> [iOSVersion(8)] [Export("separateSecondaryViewControllerForSplitViewController")] public virtual UIViewController SeparateSecondaryViewControllerForSplitViewController(UISplitViewController splitViewController) { return default(UIViewController); } /// <summary> /// Adds the given view controller as a child. /// </summary> /// <param name="childController">The view controller to be added as a child.</param> [iOSVersion(5)] [Export("addChildViewController")] public virtual void AddChildViewController(UIViewController childController) { } /// <summary> /// Removes the receiver from its parent in the view controller hierarchy. /// </summary> [iOSVersion(5)] [Export("removeFromParentViewController")] public virtual void RemoveFromParentViewController() { } /// <summary> /// Transitions between two of the view controller'€™s child view controllers. /// </summary> /// <param name="fromViewController">A view controller whose view is currently visible in the parent'€™s view hierarchy.</param> /// <param name="toViewController">A child view controller whose view is not currently in the view hierarchy.</param> /// <param name="duration">The total duration of the animations, in seconds. If you pass zero, the changes are made without animating them.</param> /// <param name="options">A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.</param> /// <param name="animations">A block object containing the changes to commit to the views. Here you programmatically change any animatable properties of the views in your view hierarchy. This block takes no parameters and has no return value. This parameter must not be NULL.</param> /// <param name="completion">A block to be called when the animation completes. /// The block takes the following parameters: /// finished /// true if the animation finished; false if it was skipped.</param> [iOSVersion(5)] [Export("transitionFromViewController")] public virtual void TransitionFromViewController(UIViewController fromViewController, UIViewController toViewController, NSTimeInterval duration, UIViewAnimationOptions options, Action animations, Action<bool> completion) { } /// <summary> /// Returns a Boolean value indicating whether appearance methods are forwarded to child view controllers. /// </summary> [iOSVersion(6)] [Export("shouldAutomaticallyForwardAppearanceMethods")] public virtual bool ShouldAutomaticallyForwardAppearanceMethods() { return default(bool); } /// <summary> /// Tells a child controller its appearance is about to change. /// </summary> /// <param name="isAppearing">true if the child view controller'€™s view is about to be added to the view hierarchy, false if it is being removed.</param> /// <param name="animated">If true, the transition is being animated.</param> [iOSVersion(5)] [Export("beginAppearanceTransition")] public virtual void BeginAppearanceTransition(bool isAppearing, bool animated) { } /// <summary> /// Tells a child controller its appearance has changed. /// </summary> [iOSVersion(5)] [Export("endAppearanceTransition")] public virtual void EndAppearanceTransition() { } /// <summary> /// Changes the traits assigned to the specified child view controller. /// </summary> /// <param name="collection">The new traits to apply to the child view controller.</param> /// <param name="forChildViewController">The child view controller who’s trait collection is to be changed.</param> [iOSVersion(8)] [Export("setOverrideTraitCollection")] public virtual void SetOverrideTraitCollection(UITraitCollection collection, UIViewController forChildViewController) { } /// <summary> /// Retrieves the trait collection for a child view controller. /// </summary> /// <param name="childViewController">The view controller who’s trait collection is to be returned.</param> [iOSVersion(8)] [Export("overrideTraitCollectionForChildViewController")] public virtual UITraitCollection OverrideTraitCollectionForChildViewController(UIViewController childViewController) { return default(UITraitCollection); } /// <summary> /// Called just before the view controller is added or removed from a container view controller. /// </summary> /// <param name="parent">The parent view controller, or nil if there is no parent.</param> [iOSVersion(5)] [Export("willMoveToParentViewController")] public virtual void WillMoveToParentViewController(UIViewController parent) { } /// <summary> /// Called after the view controller is added or removed from a container view controller. /// </summary> /// <param name="parent">The parent view controller, or nil if there is no parent.</param> [iOSVersion(5)] [Export("didMoveToParentViewController")] public virtual void DidMoveToParentViewController(UIViewController parent) { } /// <summary> /// Sets whether the view controller shows an editable view. /// </summary> /// <param name="editing">If true, the view controller should display an editable view; otherwise, false. ///   If true and one of the custom views of the navigationItem property is set to the value returned by the editButtonItem method, the associated navigation controller displays a Done button; otherwise, an Edit button.</param> /// <param name="animated">If true, animates the transition; otherwise, does not.</param> [iOSVersion(2)] [Export("setEditing")] public virtual void SetEditing(bool editing, bool animated) { } /// <summary> /// Encodes state-related information for the view controller. /// </summary> /// <param name="coder">The coder object to use to encode the state of the view controller.</param> [iOSVersion(6)] [Export("encodeRestorableStateWithCoder")] public virtual void EncodeRestorableStateWithCoder(NSCoder coder) { } /// <summary> /// Decodes and restores state-related information for the view controller. /// </summary> /// <param name="coder">The coder object to use to decode the state of the view.</param> [iOSVersion(6)] [Export("decodeRestorableStateWithCoder")] public virtual void DecodeRestorableStateWithCoder(NSCoder coder) { } /// <summary> /// Called on restored view controllers after other object decoding is complete. /// </summary> [iOSVersion(7)] [Export("applicationFinishedRestoringState")] public virtual void ApplicationFinishedRestoringState() { } /// <summary> /// Called when the system needs the view controller to use for determining status bar hidden/unhidden state. /// </summary> [iOSVersion(7)] [Export("childViewControllerForStatusBarHidden")] public virtual UIViewController ChildViewControllerForStatusBarHidden() { return default(UIViewController); } /// <summary> /// Called when the system needs the view controller to use for determining status bar style. /// </summary> [iOSVersion(7)] [Export("childViewControllerForStatusBarStyle")] public virtual UIViewController ChildViewControllerForStatusBarStyle() { return default(UIViewController); } /// <summary> /// The preferred status bar style for the view controller. /// </summary> [iOSVersion(7)] [Export("preferredStatusBarStyle")] public virtual UIStatusBarStyle PreferredStatusBarStyle() { return default(UIStatusBarStyle); } /// <summary> /// Specifies whether the view controller prefers the status bar to be hidden or shown. /// </summary> [iOSVersion(7)] [Export("prefersStatusBarHidden")] public virtual bool PrefersStatusBarHidden() { return default(bool); } /// <summary> /// Specifies the animation style to use for hiding and showing the status bar for the view controller. /// </summary> [iOSVersion(7)] [Export("preferredStatusBarUpdateAnimation")] public virtual UIStatusBarAnimation PreferredStatusBarUpdateAnimation() { return default(UIStatusBarAnimation); } /// <summary> /// Indicates to the system that the view controller status bar attributes have changed. /// </summary> [iOSVersion(7)] [Export("setNeedsStatusBarAppearanceUpdate")] public virtual void SetNeedsStatusBarAppearanceUpdate() { } /// <summary> /// Returns a bar button item that toggles its title and associated state between Edit and Done. /// </summary> [iOSVersion(2)] [Export("editButtonItem")] public virtual UIBarButtonItem EditButtonItem() { return default(UIBarButtonItem); } /// <summary> /// Sets the toolbar items to be displayed along with the view controller. /// </summary> /// <param name="toolbarItems">The toolbar items to display in a built-in toolbar.</param> /// <param name="animated">If true, animate the change of items in the toolbar.</param> [iOSVersion(3)] [Export("setToolbarItems")] public virtual void SetToolbarItems(AnyObject[] toolbarItems, bool animated) { } /// <summary> /// Returns the header view to transition during an interface orientation change. /// </summary> [iOSVersion(2)] [Export("rotatingHeaderView")] public virtual UIView RotatingHeaderView() { return default(UIView); } /// <summary> /// Returns the footer view to transition during an interface orientation change. /// </summary> [iOSVersion(2)] [Export("rotatingFooterView")] public virtual UIView RotatingFooterView() { return default(UIView); } /// <summary> /// Sent to the view controller just before the user interface begins rotating. /// </summary> /// <param name="toInterfaceOrientation">The new orientation for the user interface. The possible values are described in UIInterfaceOrientation.</param> /// <param name="duration">The duration of the pending rotation, measured in seconds.</param> [iOSVersion(2)] [Export("willRotateToInterfaceOrientation")] public virtual void WillRotateToInterfaceOrientation(UIInterfaceOrientation toInterfaceOrientation, NSTimeInterval duration) { } /// <summary> /// Sent to the view controller before performing a one-step user interface rotation. /// </summary> /// <param name="interfaceOrientation">The new orientation for the user interface. The possible values are described in UIInterfaceOrientation.</param> /// <param name="duration">The duration of the pending rotation, measured in seconds.</param> [iOSVersion(3)] [Export("willAnimateRotationToInterfaceOrientation")] public virtual void WillAnimateRotationToInterfaceOrientation(UIInterfaceOrientation interfaceOrientation, NSTimeInterval duration) { } /// <summary> /// Sent to the view controller after the user interface rotates. /// </summary> /// <param name="fromInterfaceOrientation">The old orientation of the user interface. For possible values, see UIInterfaceOrientation.</param> [iOSVersion(2)] [Export("didRotateFromInterfaceOrientation")] public virtual void DidRotateFromInterfaceOrientation(UIInterfaceOrientation fromInterfaceOrientation) { } /// <summary> /// Returns a Boolean value indicating whether rotation methods are forwarded to child view controllers. /// </summary> [iOSVersion(6)] [Export("shouldAutomaticallyForwardRotationMethods")] public virtual bool ShouldAutomaticallyForwardRotationMethods() { return default(bool); } /// <summary> /// Return the name of the receiver'€™s nib file, if one was specified. (read-only) /// </summary> [iOSVersion(2)] [Export("nibName")] public string NibName { get; private set; } /// <summary> /// Return the name of the receiver'€™s nib bundle if it exists. (read-only) /// </summary> [iOSVersion(2)] [Export("nibBundle")] public NSBundle NibBundle { get; private set; } /// <summary> /// The storyboard from which the view controller originated. (read-only) /// </summary> [iOSVersion(5)] [Export("storyboard")] public UIStoryboard Storyboard { get; private set; } /// <summary> /// The view that the controller manages. /// </summary> [iOSVersion(2)] [Export("view")] public UIView View { get; set; } /// <summary> /// A localized string that represents the view this controller manages. /// </summary> [iOSVersion(2)] [Export("title")] public string Title { get; set; } /// <summary> /// The presentation style for modally presented view controllers. /// </summary> [iOSVersion(3.2)] [Export("modalPresentationStyle")] public UIModalPresentationStyle ModalPresentationStyle { get; set; } /// <summary> /// The transition style to use when presenting the receiver. /// </summary> [iOSVersion(3)] [Export("modalTransitionStyle")] public UIModalTransitionStyle ModalTransitionStyle { get; set; } /// <summary> /// A Boolean value that indicates whether this view controller's view is covered when the view controller or one of its descendants presents a view controller. /// </summary> [iOSVersion(5)] [Export("definesPresentationContext")] public bool DefinesPresentationContext { get; set; } /// <summary> /// The delegate object that provides transition animator and interactive controller objects. /// </summary> [iOSVersion(7)] [Export("transitioningDelegate")] public UIViewControllerTransitioningDelegate TransitioningDelegate { get; set; } /// <summary> /// A Boolean value that indicates whether the view controller defines the transition style for view controllers it presents. /// </summary> [iOSVersion(5)] [Export("providesPresentationContextTransitionStyle")] public bool ProvidesPresentationContextTransitionStyle { get; set; } /// <summary> /// Specifies whether or not the view controller should automatically adjust its scroll view insets. /// </summary> [iOSVersion(7)] [Export("automaticallyAdjustsScrollViewInsets")] public bool AutomaticallyAdjustsScrollViewInsets { get; set; } /// <summary> /// The preferred size for the view controller’s view. /// </summary> [iOSVersion(7)] [Export("preferredContentSize")] public CGSize PreferredContentSize { get; set; } /// <summary> /// The extended edges to use for the layout. /// </summary> [iOSVersion(7)] [Export("edgesForExtendedLayout")] public UIRectEdge EdgesForExtendedLayout { get; set; } /// <summary> /// A Boolean value indicating whether or not the extended layout includes opaque bars. /// </summary> [iOSVersion(7)] [Export("extendedLayoutIncludesOpaqueBars")] public bool ExtendedLayoutIncludesOpaqueBars { get; set; } /// <summary> /// Indicates the lowest vertical extent for your onscreen content, for use with Auto Layout constraints. (read-only) /// </summary> [iOSVersion(7)] [Export("bottomLayoutGuide")] public UILayoutSupport BottomLayoutGuide { get; private set; } /// <summary> /// Indicates the highest vertical extent for your onscreen content, for use with Auto Layout constraints. (read-only) /// </summary> [iOSVersion(7)] [Export("topLayoutGuide")] public UILayoutSupport TopLayoutGuide { get; private set; } /// <summary> /// An array of the view controllers that are the children of the receiver in the view controller hierarchy. (read-only) /// </summary> [iOSVersion(5)] [Export("childViewControllers")] public AnyObject[] ChildViewControllers { get; private set; } /// <summary> /// A Boolean value indicating whether the view controller currently allows the user to edit the view contents. /// </summary> [iOSVersion(2)] [Export("editing")] public bool Editing { get; set; } /// <summary> /// The identifier that determines whether the view controller supports state restoration. /// </summary> [iOSVersion(6)] [Export("restorationIdentifier")] public string RestorationIdentifier { get; set; } /// <summary> /// The class responsible for recreating this view controller when restoring the app'€™s state. /// </summary> [iOSVersion(6)] [Export("restorationClass")] public AnyObject.Type RestorationClass { get; set; } /// <summary> /// The view controller that presented this view controller. (read-only) /// </summary> [iOSVersion(5)] [Export("presentingViewController")] public UIViewController PresentingViewController { get; private set; } /// <summary> /// The view controller that is presented by this view controller, or one of its ancestors in the view controller hierarchy. (read-only) /// </summary> [iOSVersion(5)] [Export("presentedViewController")] public UIViewController PresentedViewController { get; private set; } /// <summary> /// The parent view controller of the recipient. (read-only) /// </summary> [iOSVersion(2)] [Export("parentViewController")] public UIViewController ParentViewController { get; private set; } /// <summary> /// The nearest ancestor in the view controller hierarchy that is a popover presentation controller. (read-only) /// </summary> [iOSVersion(8)] [Export("popoverPresentationController")] public UIPopoverPresentationController PopoverPresentationController { get; private set; } /// <summary> /// The nearest ancestor in the view controller hierarchy that is a presentation controller. (read-only) /// </summary> [iOSVersion(8)] [Export("presentationController")] public UIPresentationController PresentationController { get; private set; } /// <summary> /// The nearest ancestor in the view controller hierarchy that is a navigation controller. (read-only) /// </summary> [iOSVersion(2)] [Export("navigationController")] public UINavigationController NavigationController { get; private set; } /// <summary> /// The nearest ancestor in the view controller hierarchy that is a split view controller. (read-only) /// </summary> [iOSVersion(3.2)] [Export("splitViewController")] public UISplitViewController SplitViewController { get; private set; } /// <summary> /// The nearest ancestor in the view controller hierarchy that is a tab bar controller. (read-only) /// </summary> [iOSVersion(2)] [Export("tabBarController")] public UITabBarController TabBarController { get; private set; } /// <summary> /// Returns the extension context of the view controller. (read-only) /// </summary> [iOSVersion(8)] [Export("extensionContext")] public NSExtensionContext ExtensionContext { get; private set; } /// <summary> /// Specifies whether a view controller, presented non-fullscreen, takes over control of status bar appearance from the presenting view controller. /// </summary> [iOSVersion(7)] [Export("modalPresentationCapturesStatusBarAppearance")] public bool ModalPresentationCapturesStatusBarAppearance { get; set; } /// <summary> /// The navigation item used to represent the view controller in a parent'€™s navigation bar. (read-only) /// </summary> [iOSVersion(2)] [Export("navigationItem")] public UINavigationItem NavigationItem { get; private set; } /// <summary> /// A Boolean value indicating whether the toolbar at the bottom of the screen is hidden when the view controller is pushed on to a navigation controller. /// </summary> [iOSVersion(2)] [Export("hidesBottomBarWhenPushed")] public bool HidesBottomBarWhenPushed { get; set; } /// <summary> /// The toolbar items associated with the view controller. /// </summary> [iOSVersion(3)] [Export("toolbarItems")] public AnyObject[] ToolbarItems { get; set; } /// <summary> /// The tab bar item that represents the view controller when added to a tab bar controller. /// </summary> [iOSVersion(2)] [Export("tabBarItem")] public UITabBarItem TabBarItem { get; set; } /// <summary> /// A Boolean value indicating whether the view controller should be presented modally by a popover. /// </summary> [iOSVersion(3.2)] [Export("modalInPopover")] public bool ModalInPopover { get; set; } /// <summary> /// Convenience property that provides the current orientation of the interface, meaningful only if the view controller is taking up the full screen. (read-only) /// </summary> [iOSVersion(2)] [Export("interfaceOrientation")] public UIInterfaceOrientation InterfaceOrientation { get; private set; } /// <summary> /// The search display controller associated with the view controller. (read-only) /// </summary> [iOSVersion(3)] [Export("searchDisplayController")] public UISearchDisplayController SearchDisplayController { get; private set; } } /// <summary> /// Transition styles available when presenting view controllers. /// </summary> [iOSVersion(3)] public enum UIModalTransitionStyle { /// <summary> /// When the view controller is presented, its view slides up from the bottom of the screen. On dismissal, the view slides back down. This is the default transition style. /// </summary> [iOSVersion(3)] CoverVertical, /// <summary> /// When the view controller is presented, the current view initiates a horizontal 3D flip from right-to-left, resulting in the revealing of the new view as if it were on the back of the previous view. On dismissal, the flip occurs from left-to-right, returning to the original view. /// </summary> [iOSVersion(3)] FlipHorizontal, /// <summary> /// When the view controller is presented, the current view fades out while the new view fades in at the same time. On dismissal, a similar type of cross-fade is used to return to the original view. /// </summary> [iOSVersion(3)] CrossDissolve, /// <summary> /// When the view controller is presented, one corner of the current view curls up to reveal the presented view underneath. On dismissal, the curled up page unfurls itself back on top of the presented view. A view presented using this transition is itself prevented from presenting any additional views. /// This transition style is supported only if the parent view controller is presenting a full-screen view and you use the UIModalPresentationFullScreen modal presentation style. Attempting to use a different form factor for the parent view or a different presentation style triggers an exception. /// </summary> [iOSVersion(3.2)] PartialCurl, } /// <summary> /// Modal presentation styles available when presenting view controllers. /// </summary> [iOSVersion(3.2)] public enum UIModalPresentationStyle { /// <summary> /// A presentation style in which the presented view covers the screen. /// </summary> [iOSVersion(3.2)] FullScreen, /// <summary> /// In a horizontally regular environment, a presentation style that partially covers the underlying content. The presented view'€™s width is set to the width of the screen in a portrait orientation and the the height is set to the height of the screen. Any uncovered areas are dimmed to prevent the user from interacting with them. (In portrait orientations, this option is essentially the same as UIModalPresentationFullScreen.) /// In a horizontally compact environment, this option behaves the same as UIModalPresentationFullScreen. /// </summary> [iOSVersion(3.2)] PageSheet, /// <summary> /// In a horizontally regular environment, a presentation style that displays the content centered in the screen. The width and height of the content area are smaller than the screen size and a dimming view is placed underneath the content. If the device is in a landscape orientation and the keyboard is visible, the position of the view is adjusted upward so that the view remains visible. All uncovered areas are dimmed to prevent the user from interacting with them. /// In a horizontally compact environment, this option behaves the same as UIModalPresentationFullScreen. /// </summary> [iOSVersion(3.2)] FormSheet, /// <summary> /// A presentation style where the content is displayed over only the presenting view controller’s content. /// When presenting a view controller in a popover, this presentation style is supported only if the transition style is UIModalTransitionStyleCoverVertical. Attempting to use a different transition style triggers an exception. However, you may use other transition styles (except the partial curl transition) if the parent view controller is not in a popover. /// </summary> [iOSVersion(3.2)] CurrentContext, /// <summary> /// A custom view presentation style that is managed by a custom presentation controller and one or more custom animator objects. All of these objects are provided by the presented view controller’s transitioning delegate, which is an object that conforms to the UIViewControllerTransitioningDelegate protocol. Before presenting a view controller using this style, set the view controller’s transitioningDelegate property to your custom transitioning delegate. /// </summary> [iOSVersion(7)] Custom, /// <summary> /// A view presentation style in which the presented view covers the screen. The views beneath the presented content are not removed from the view hierarchy when the presentation finishes. So if the presented view controller does not fill the screen with opaque content, the underlying content shows through. /// </summary> [iOSVersion(8)] OverFullScreen, /// <summary> /// A presentation style where the content is displayed over only the parent view controller’s content. The views beneath the presented content are not removed from the view hierarchy when the presentation finishes. So if the presented view controller does not fill the screen with opaque content, the underlying content shows through. /// When presenting a view controller in a popover, this presentation style is supported only if the transition style is UIModalTransitionStyleCoverVertical. Attempting to use a different transition style triggers an exception. However, you may use other transition styles (except the partial curl transition) if the parent view controller is not in a popover. /// </summary> [iOSVersion(8)] OverCurrentContext, /// <summary> /// In a horizontally regular environment, a presentation style where the content is displayed in a popover view. The background content is dimmed and taps outside the popover cause the popover to be dismissed. If you do not want taps to dismiss the popover, you can assign one or more views to the passthroughViews property of the associated UIPopoverPresentationController object, which you can get from the popoverPresentationController property. /// In a horizontally compact environment, this option behaves the same as UIModalPresentationFullScreen. /// </summary> [iOSVersion(8)] Popover, /// <summary> /// A nonmodal view presentation or dismissal. /// </summary> [iOSVersion(7)] None, } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/UIWindow.cs b/CocoaSharp/UIKit/UIWindow.cs
index b8e6bdda..d05f0e93 100644
--- a/CocoaSharp/UIKit/UIWindow.cs
+++ b/CocoaSharp/UIKit/UIWindow.cs
@@ -1 +1 @@
-using ObjectiveC; using System; using SharpSwift.Attributes; using System.Collections.Generic; using Foundation; using CoreGraphics; namespace UIKit { /// <summary> /// The UIWindow class defines an object known as a window that manages and coordinates the views an app displays on a device screen. Unless an app can display content on an external device screen, an app has only one window. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIWindow_Class/index.html#//apple_ref/occ/cl/UIWindow"/> [iOSVersion(2)] public class UIWindow : UIView//, AnyObject, NSCoding, NSObjectProtocol, Reflectable, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UITraitEnvironment { public UIWindow() { } /// <summary> /// Makes the receiver the key window and visible. /// </summary> [iOSVersion(2)] [Export("makeKeyAndVisible")] public virtual void MakeKeyAndVisible() { } /// <summary> /// Invoked automatically to inform the receiver that it has become the key window; never invoke this method directly. /// </summary> [iOSVersion(2)] [Export("becomeKeyWindow")] public virtual void BecomeKeyWindow() { } /// <summary> /// Makes the receiver the main window. /// </summary> [iOSVersion(2)] [Export("makeKeyWindow")] public virtual void MakeKeyWindow() { } /// <summary> /// Invoked automatically when the window resigns key window status; never invoke this method directly. /// </summary> [iOSVersion(2)] [Export("resignKeyWindow")] public virtual void ResignKeyWindow() { } /// <summary> /// Converts a point from the receiver’s coordinate system to that of another window. /// </summary> /// <param name="point">A point specifying a location in the logical coordinate system of the receiver.</param> /// <param name="toWindow">The window into whose coordinate system point is to be converted. If nil, this method converts the point to the logical coordinate system of the screen, which is measured in points.</param> [iOSVersion(2)] [Export("convertPoint")] public virtual CGPoint ConvertPoint(CGPoint point, UIWindow toWindow) { return default(CGPoint); } /// <summary> /// Converts a point from the coordinate system of a given window to that of the receiver. /// </summary> /// <param name="point">A point specifying a location in the coordinate system of window.</param> /// <param name="fromWindow">The window with point in its coordinate system. If nil, this method converts the point from the logical coordinate system of the screen, which is measured in points.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("convertPoint")] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual CGPoint ConvertPoint(CGPoint point, UIWindow fromWindow, bool NAME_YOUR_PARAMS = false) { return default(CGPoint); } /// <summary> /// Converts a rectangle from the receiver’s coordinate system to that of another window. /// </summary> /// <param name="rect">A rectangle in the receiver's coordinate system.</param> /// <param name="toWindow">The window that is the target of the conversion operation. If nil, this method instead converts the rectangle to the logical coordinate system of the screen, which is measured in points.</param> [iOSVersion(2)] [Export("convertRect")] public virtual CGRect ConvertRect(CGRect rect, UIWindow toWindow) { return default(CGRect); } /// <summary> /// Converts a rectangle from the coordinate system of another window to that of the receiver. /// </summary> /// <param name="rect">The rectangle in the window's coordinate system.</param> /// <param name="fromWindow">The window with rect in its coordinate system. If nil, this method instead converts the rectangle from the logical coordinate system of the screen, which is measured in points.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("convertRect")] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual CGRect ConvertRect(CGRect rect, UIWindow fromWindow, bool NAME_YOUR_PARAMS = false) { return default(CGRect); } /// <summary> /// Dispatches events sent to the receiver by the UIApplication object to its views. /// </summary> /// <param name="event">The event to process.</param> [iOSVersion(2)] [Export("sendEvent")] public virtual void SendEvent(UIEvent event) { } /// <summary> /// The receiver’s window level. /// </summary> [iOSVersion(2)] [Export("windowLevel")] public UIWindowLevel WindowLevel { get; set; } /// <summary> /// The screen on which the window is currently displayed. /// </summary> [iOSVersion(3.2)] [Export("screen")] public UIScreen Screen { get; set; } /// <summary> /// The root view controller for the window. /// </summary> [iOSVersion(4)] [Export("rootViewController")] public UIViewController RootViewController { get; set; } /// <summary> /// A Boolean value that indicates whether the receiver is the key window for the application. (read-only) /// </summary> [iOSVersion(2)] [Export("keyWindow")] public bool KeyWindow { get; private set; } } /// <summary> /// The positioning of windows relative to each other. /// </summary> [iOSVersion(2)] public struct UIWindowLevel { static public implicit operator UIWindowLevel(CGFloat value) { return default(UIWindowLevel); } static public implicit operator CGFloat(UIWindowLevel value) { return default(CGFloat); } } /// <summary> /// The notification object is the window object that has become visible. This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIWindowDidBecomeVisibleNotification : NSNotification { public UIWindowDidBecomeVisibleNotification() : base("", null) { } } /// <summary> /// The notification object is the window object that has become hidden. This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIWindowDidBecomeHiddenNotification : NSNotification { public UIWindowDidBecomeHiddenNotification() : base("", null) { } } /// <summary> /// The notification object is the window object that has become key. This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIWindowDidBecomeKeyNotification : NSNotification { public UIWindowDidBecomeKeyNotification() : base("", null) { } } /// <summary> /// The notification object is the window object that has resigned its main window status. This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIWindowDidResignKeyNotification : NSNotification { public UIWindowDidResignKeyNotification() : base("", null) { } } /// <summary> /// The notification object is nil. The userInfo dictionary contains information about the keyboard. Use the keys described in Keyboard Notification User Info Keys to get the location and size of the keyboard from the userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIKeyboardWillShowNotification : NSNotification { public UIKeyboardWillShowNotification() : base("", null) { } } /// <summary> /// The notification object is nil. The userInfo dictionary contains information about the keyboard. Use the keys described in Keyboard Notification User Info Keys to get the location and size of the keyboard from the userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIKeyboardDidShowNotification : NSNotification { public UIKeyboardDidShowNotification() : base("", null) { } } /// <summary> /// The notification object is nil. The userInfo dictionary contains information about the keyboard. Use the keys described in Keyboard Notification User Info Keys to get the location and size of the keyboard from the userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIKeyboardWillHideNotification : NSNotification { public UIKeyboardWillHideNotification() : base("", null) { } } /// <summary> /// The notification object is nil. The userInfo dictionary contains information about the keyboard. Use the keys described in Keyboard Notification User Info Keys to get the location and size of the keyboard from the userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIKeyboardDidHideNotification : NSNotification { public UIKeyboardDidHideNotification() : base("", null) { } } /// <summary> /// The notification object is nil. The userInfo dictionary contains information about the keyboard. Use the keys described in Keyboard Notification User Info Keys to get the location and size of the keyboard from the userInfo dictionary. /// </summary> [iOSVersion(5)] public class UIKeyboardWillChangeFrameNotification : NSNotification { public UIKeyboardWillChangeFrameNotification() : base("", null) { } } /// <summary> /// The notification object is nil. The userInfo dictionary contains information about the keyboard. Use the keys described in Keyboard Notification User Info Keys to get the location and size of the keyboard from the userInfo dictionary. /// </summary> [iOSVersion(5)] public class UIKeyboardDidChangeFrameNotification : NSNotification { public UIKeyboardDidChangeFrameNotification() : base("", null) { } } } \ 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 UIWindow class defines an object known as a window that manages and coordinates the views an app displays on a device screen. Unless an app can display content on an external device screen, an app has only one window. /// </summary> /// <see cref="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIWindow_Class/index.html#//apple_ref/occ/cl/UIWindow"/> [iOSVersion(2)] public class UIWindow : UIView//, AnyObject, NSCoding, NSObjectProtocol, Reflectable, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UITraitEnvironment { public UIWindow() { } /// <summary> /// Makes the receiver the key window and visible. /// </summary> [iOSVersion(2)] [Export("makeKeyAndVisible")] public virtual void MakeKeyAndVisible() { } /// <summary> /// Invoked automatically to inform the receiver that it has become the key window; never invoke this method directly. /// </summary> [iOSVersion(2)] [Export("becomeKeyWindow")] public virtual void BecomeKeyWindow() { } /// <summary> /// Makes the receiver the main window. /// </summary> [iOSVersion(2)] [Export("makeKeyWindow")] public virtual void MakeKeyWindow() { } /// <summary> /// Invoked automatically when the window resigns key window status; never invoke this method directly. /// </summary> [iOSVersion(2)] [Export("resignKeyWindow")] public virtual void ResignKeyWindow() { } /// <summary> /// Converts a point from the receiver’s coordinate system to that of another window. /// </summary> /// <param name="point">A point specifying a location in the logical coordinate system of the receiver.</param> /// <param name="toWindow">The window into whose coordinate system point is to be converted. If nil, this method converts the point to the logical coordinate system of the screen, which is measured in points.</param> [iOSVersion(2)] [Export("convertPoint")] public virtual CGPoint ConvertPoint(CGPoint point, UIWindow toWindow) { return default(CGPoint); } /// <summary> /// Converts a point from the coordinate system of a given window to that of the receiver. /// </summary> /// <param name="point">A point specifying a location in the coordinate system of window.</param> /// <param name="fromWindow">The window with point in its coordinate system. If nil, this method converts the point from the logical coordinate system of the screen, which is measured in points.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("convertPoint")] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual CGPoint ConvertPoint(CGPoint point, UIWindow fromWindow, bool NAME_YOUR_PARAMS = false) { return default(CGPoint); } /// <summary> /// Converts a rectangle from the receiver’s coordinate system to that of another window. /// </summary> /// <param name="rect">A rectangle in the receiver's coordinate system.</param> /// <param name="toWindow">The window that is the target of the conversion operation. If nil, this method instead converts the rectangle to the logical coordinate system of the screen, which is measured in points.</param> [iOSVersion(2)] [Export("convertRect")] public virtual CGRect ConvertRect(CGRect rect, UIWindow toWindow) { return default(CGRect); } /// <summary> /// Converts a rectangle from the coordinate system of another window to that of the receiver. /// </summary> /// <param name="rect">The rectangle in the window's coordinate system.</param> /// <param name="fromWindow">The window with rect in its coordinate system. If nil, this method instead converts the rectangle from the logical coordinate system of the screen, which is measured in points.</param> /// <param name="NAME_YOUR_PARAMS">DO NOT USE THIS PARAMETER - Instead make sure to name the parameters you're using.</param> [iOSVersion(2)] [Export("convertRect")] [IgnoreParameter("NAME_YOUR_PARAMS")] public virtual CGRect ConvertRect(CGRect rect, UIWindow fromWindow, bool NAME_YOUR_PARAMS = false) { return default(CGRect); } /// <summary> /// Dispatches events sent to the receiver by the UIApplication object to its views. /// </summary> /// <param name="event">The event to process.</param> [iOSVersion(2)] [Export("sendEvent")] public virtual void SendEvent(UIEvent @event) { } /// <summary> /// The receiver’s window level. /// </summary> [iOSVersion(2)] [Export("windowLevel")] public UIWindowLevel WindowLevel { get; set; } /// <summary> /// The screen on which the window is currently displayed. /// </summary> [iOSVersion(3.2)] [Export("screen")] public UIScreen Screen { get; set; } /// <summary> /// The root view controller for the window. /// </summary> [iOSVersion(4)] [Export("rootViewController")] public UIViewController RootViewController { get; set; } /// <summary> /// A Boolean value that indicates whether the receiver is the key window for the application. (read-only) /// </summary> [iOSVersion(2)] [Export("keyWindow")] public bool KeyWindow { get; private set; } } /// <summary> /// The positioning of windows relative to each other. /// </summary> [iOSVersion(2)] public struct UIWindowLevel { static public implicit operator UIWindowLevel(CGFloat value) { return default(UIWindowLevel); } static public implicit operator CGFloat(UIWindowLevel value) { return default(CGFloat); } } /// <summary> /// The notification object is the window object that has become visible. This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIWindowDidBecomeVisibleNotification : NSNotification { public UIWindowDidBecomeVisibleNotification() : base("", null) { } } /// <summary> /// The notification object is the window object that has become hidden. This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIWindowDidBecomeHiddenNotification : NSNotification { public UIWindowDidBecomeHiddenNotification() : base("", null) { } } /// <summary> /// The notification object is the window object that has become key. This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIWindowDidBecomeKeyNotification : NSNotification { public UIWindowDidBecomeKeyNotification() : base("", null) { } } /// <summary> /// The notification object is the window object that has resigned its main window status. This notification does not contain a userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIWindowDidResignKeyNotification : NSNotification { public UIWindowDidResignKeyNotification() : base("", null) { } } /// <summary> /// The notification object is nil. The userInfo dictionary contains information about the keyboard. Use the keys described in Keyboard Notification User Info Keys to get the location and size of the keyboard from the userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIKeyboardWillShowNotification : NSNotification { public UIKeyboardWillShowNotification() : base("", null) { } } /// <summary> /// The notification object is nil. The userInfo dictionary contains information about the keyboard. Use the keys described in Keyboard Notification User Info Keys to get the location and size of the keyboard from the userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIKeyboardDidShowNotification : NSNotification { public UIKeyboardDidShowNotification() : base("", null) { } } /// <summary> /// The notification object is nil. The userInfo dictionary contains information about the keyboard. Use the keys described in Keyboard Notification User Info Keys to get the location and size of the keyboard from the userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIKeyboardWillHideNotification : NSNotification { public UIKeyboardWillHideNotification() : base("", null) { } } /// <summary> /// The notification object is nil. The userInfo dictionary contains information about the keyboard. Use the keys described in Keyboard Notification User Info Keys to get the location and size of the keyboard from the userInfo dictionary. /// </summary> [iOSVersion(2)] public class UIKeyboardDidHideNotification : NSNotification { public UIKeyboardDidHideNotification() : base("", null) { } } /// <summary> /// The notification object is nil. The userInfo dictionary contains information about the keyboard. Use the keys described in Keyboard Notification User Info Keys to get the location and size of the keyboard from the userInfo dictionary. /// </summary> [iOSVersion(5)] public class UIKeyboardWillChangeFrameNotification : NSNotification { public UIKeyboardWillChangeFrameNotification() : base("", null) { } } /// <summary> /// The notification object is nil. The userInfo dictionary contains information about the keyboard. Use the keys described in Keyboard Notification User Info Keys to get the location and size of the keyboard from the userInfo dictionary. /// </summary> [iOSVersion(5)] public class UIKeyboardDidChangeFrameNotification : NSNotification { public UIKeyboardDidChangeFrameNotification() : base("", null) { } } } \ No newline at end of file
diff --git a/CocoaSharp/UIKit/Unknowns/Unkown.cs b/CocoaSharp/UIKit/Unknowns/Unkown.cs
index 918d0a61..e17e79a7 100644
--- a/CocoaSharp/UIKit/Unknowns/Unkown.cs
+++ b/CocoaSharp/UIKit/Unknowns/Unkown.cs
@@ -5,6 +5,15 @@ using System.Text;
namespace UIKit
{
+ public class UnsafeMutablePointer<T>
+ {
+
+ }
+
+ public class UnsafeMutablePointer
+ {
+ }
+
public class UIEdgeInsets
{
}
diff --git a/StubGen/StubGen/Scrapers/Finals/MethodFinal.cs b/StubGen/StubGen/Scrapers/Finals/MethodFinal.cs
index 8a7d5b10..2d59fe89 100644
--- a/StubGen/StubGen/Scrapers/Finals/MethodFinal.cs
+++ b/StubGen/StubGen/Scrapers/Finals/MethodFinal.cs
@@ -54,7 +54,7 @@ namespace StubGen.Scrapers.Finals
}
output += toOutput.Replace("/// </summary>" + NewLine, "/// </summary>" + toAddAfterSummary);
- if (isInterface && (method.Static || method.IsConstructor))
+ if (isInterface && (method.Static || method.IsConstructor || method.IsOptional))
{
output += "//";
}
@@ -64,8 +64,7 @@ namespace StubGen.Scrapers.Finals
if (!isInterface) //TODO: comment out private/static methods
{
output += method.Public ? "public " : "private ";
- output += "virtual ";
- output += method.Static ? "static " : "";
+ output += method.Static ? "static " : "virtual ";
}
if (method.ReturnType.CSharpType == "Self")
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback