Skip to content

Commit

Permalink
[UIKit] Updated UIKit to xcode8-beta6
Browse files Browse the repository at this point in the history
Expected extrospection test failures:

- ios.unclassified:!missing-field! UIApplicationInvalidInterfaceOrientationException not bound

Generator bugs:

- HACK: We have a generator bug(?) that won't allow overloads (AmbiguousMatchException) in protocols

tvOS/iOS 9 Introspection Expected failures (UIKit Only):

- [FAIL] UIKit.UIContentSizeCategoryExtensions.UIContentSizeCategoryUnspecified
Generated enum extensions do not honor availability on NSString properties

API Diff, expected changes (verified and correct):

Type Changed: UIKit.UIContentSizeCategory

Modified fields:

	ExtraExtraExtraLarge = 6 7
	ExtraExtraLarge = 5 6
	ExtraLarge = 4 5
	ExtraSmall = 0 1
	Large = 3 4
	Medium = 2 3
	Small = 1 2

Added values:

	AccessibilityExtraExtraExtraLarge = 12,
	AccessibilityExtraExtraLarge = 11,
	AccessibilityExtraLarge = 10,
	AccessibilityLarge = 9,
	AccessibilityMedium = 8,
	Unspecified = 0,
  • Loading branch information
dalexsoto committed Aug 22, 2016
1 parent 9f2df4b commit 01a94f4
Show file tree
Hide file tree
Showing 7 changed files with 620 additions and 126 deletions.
4 changes: 3 additions & 1 deletion src/UIKit/UIAccessibility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,16 +317,18 @@ static public bool IsSpeakScreenEnabled {
}
}

[iOS (10,0), TV (10,0)]
[DllImport (Constants.UIKitLibrary)]
static extern bool UIAccessibilityIsAssistiveTouchRunning ();
[iOS (10,0)]
[iOS (10,0), TV (10,0)]
public static bool IsAssistiveTouchRunning {
get {
return UIAccessibilityIsAssistiveTouchRunning ();
}
}

#if !TVOS
[iOS (10,0)]
[DllImport (Constants.UIKitLibrary)]
static extern nuint UIAccessibilityHearingDevicePairedEar ();

Expand Down
29 changes: 28 additions & 1 deletion src/UIKit/UIEnums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ public enum UIKeyboardType : nint {
DecimalPad,
Twitter,
WebSearch,
[iOS (10, 0)]
AsciiCapableNumberPad
}

Expand Down Expand Up @@ -1618,8 +1619,11 @@ public enum UIAlertControllerStyle : nint {
[iOS (8,0)]
public enum UIBlurEffectStyle : nint {
ExtraLight, Light, Dark,
// Notice: value 3 is skipped
[TV (10,0), NoiOS, NoWatch]
ExtraDark,
[iOS (10,0)]
Regular = 4,
[iOS (10,0)]
Prominent = 5,
}

Expand All @@ -1640,6 +1644,7 @@ public enum UIPrinterJobTypes : nint {

[NoTV][NoWatch]
[iOS (8,0)]
[Deprecated (PlatformName.iOS, 10, 0, message:"Use UNAuthorizationOptions instead")]
[Native]
[Flags]
public enum UIUserNotificationType : nuint {
Expand All @@ -1651,6 +1656,7 @@ public enum UIUserNotificationType : nuint {

[NoTV][NoWatch]
[iOS (8, 0)]
[Deprecated (PlatformName.iOS, 10, 0, message: "Use UNNotificationActionOptions instead")]
[Native]
public enum UIUserNotificationActivationMode : nuint {
Foreground,
Expand All @@ -1659,6 +1665,7 @@ public enum UIUserNotificationActivationMode : nuint {

[NoTV][NoWatch]
[iOS (8, 0)]
[Deprecated (PlatformName.iOS, 10, 0, message: "Use UNNotificationCategory.Actions instead")]
[Native]
public enum UIUserNotificationActionContext : nuint {
Default,
Expand Down Expand Up @@ -1774,6 +1781,7 @@ public enum UIPrinterCutterBehavior : nint

[NoTV][NoWatch]
[iOS (9,0)]
[Deprecated (PlatformName.iOS, 10, 0, message: "Use UNNotificationAction or UNTextInputNotificationAction instead")]
[Native]
public enum UIUserNotificationActionBehavior : nuint
{
Expand Down Expand Up @@ -1940,4 +1948,23 @@ public enum UIAccessibilityCustomRotorDirection : nint
Previous,
Next
}

[iOS (10,0), TV (10,0), NoWatch]
[Native]
[Flags]
public enum UICloudSharingPermissionOptions : nuint {
Standard = 0,
AllowPublic = 1 << 0,
AllowPrivate = 1 << 1,
AllowReadOnly = 1 << 2,
AllowReadWrite = 1 << 3
}

[iOS (10,0), TV (10,0), NoWatch]
[Native]
public enum UITextFieldDidEndEditingReason : nint {
Committed,
[NoiOS]
Cancelled
}
}
Loading

0 comments on commit 01a94f4

Please sign in to comment.