Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion src/UIKit/UIEnums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,14 @@ public enum UIViewAnimationOptions : nuint_compat_int {
TransitionCurlDown = 4 << 20,
TransitionCrossDissolve = 5 << 20,
TransitionFlipFromTop = 6 << 20,
TransitionFlipFromBottom = 7 << 20
TransitionFlipFromBottom = 7 << 20,

[iOS (10,3)]
PreferredFramesPerSecondDefault = 0 << 24,
[iOS (10,3)]
PreferredFramesPerSecond60 = 3 << 24,
[iOS (10,3)]
PreferredFramesPerSecond30 = 7 << 24,
}

#if !WATCH
Expand Down Expand Up @@ -1973,4 +1980,11 @@ public enum UITextFieldDidEndEditingReason : nint {
[NoiOS]
Cancelled
}

[iOS (10,3), TV (10,2), NoWatch]
[Native]
public enum UIScrollViewIndexDisplayMode : nint {
Automatic,
AlwaysHidden
}
}
38 changes: 37 additions & 1 deletion src/uikit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2951,6 +2951,23 @@ interface UIApplication {
[NullAllowed, Export ("shortcutItems", ArgumentSemantic.Copy)]
UIApplicationShortcutItem[] ShortcutItems { get; set; }

//
// 10.0
//
// from @interface UIApplication (UIAlternateApplicationIcons)

[iOS (10,3)][TV (10,2)]
[Export ("supportsAlternateIcons")]
bool SupportsAlternateIcons { get; }

[iOS (10,3)][TV (10,2)]
[Async]
[Export ("setAlternateIconName:completionHandler:")]
void SetAlternateIconName ([NullAllowed] string alternateIconName, [NullAllowed] Action<NSError> completionHandler);

[iOS (10,3)][TV (10,2)]
[Export ("alternateIconName"), NullAllowed]
string AlternateIconName { get; }
}

[NoTV]
Expand Down Expand Up @@ -3914,6 +3931,16 @@ interface UICollectionViewDataSource {
[iOS (9,0)]
[Export ("collectionView:moveItemAtIndexPath:toIndexPath:")]
void MoveItem (UICollectionView collectionView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath);

[iOS (10,3), TV (10,2)]
[return: NullAllowed]
[Export ("indexTitlesForCollectionView:")]
string [] GetIndexTitles (UICollectionView collectionView);

[iOS (10,3), TV (10,2)]
[return: NullAllowed]
[Export ("collectionView:indexPathForIndexTitle:atIndex:")]
NSIndexPath GetIndexPath (UICollectionView collectionView, string title, nint atIndex);
}

[Since (6,0)]
Expand Down Expand Up @@ -9386,6 +9413,10 @@ UIScreenMode CurrentMode {
[Export ("displayLinkWithTarget:selector:")]
CoreAnimation.CADisplayLink CreateDisplayLink (NSObject target, Selector sel);

[iOS (10,3), TV (10,2)]
[Export ("maximumFramesPerSecond")]
nint MaximumFramesPerSecond { get; }

[NoTV]
[Since (5,0)]
[Export ("brightness")]
Expand Down Expand Up @@ -9500,6 +9531,10 @@ interface UIScrollView {
[Export ("decelerationRate")]
nfloat DecelerationRate { get; set; }

[iOS (10,3), TV (10,2), NoWatch]
[Export ("indexDisplayMode")]
UIScrollViewIndexDisplayMode IndexDisplayMode { get; set; }

[NoTV]
[Export ("pagingEnabled")]
bool PagingEnabled { [Bind ("isPagingEnabled")] get; set; }
Expand Down Expand Up @@ -11133,10 +11168,11 @@ interface UITableViewSource {
[Export ("tableView:canMoveRowAtIndexPath:")]
bool CanMoveRow (UITableView tableView, NSIndexPath indexPath);

[NoTV]
[TV (10,2)]
[Export ("sectionIndexTitlesForTableView:")]
string [] SectionIndexTitles (UITableView tableView);

[TV (10,2)] // <- Header removed __TVOS_PROHIBITED;
[Export ("tableView:sectionForSectionIndexTitle:atIndex:")]
nint SectionFor (UITableView tableView, string title, nint atIndex);

Expand Down