[uikit] Update for Xcode 9 beta 6 - Part 4 (#2527)
The following headers are now up to date: - UICollectionViewFlowLayout.h - UIDocumentPickerViewController.h - UIFontDescriptor.h - UIImage.h - UIImageView.h - UIImagePickerController.h
This commit is contained in:
Родитель
cd576be6ed
Коммит
68a09d17ca
|
@ -2257,5 +2257,24 @@ namespace XamCore.UIKit {
|
||||||
Never,
|
Never,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[NoWatch]
|
||||||
|
[iOS (11,0), TV (11,0)]
|
||||||
|
[Native]
|
||||||
|
public enum UICollectionViewFlowLayoutSectionInsetReference : nint
|
||||||
|
{
|
||||||
|
ContentInset,
|
||||||
|
SafeArea,
|
||||||
|
LayoutMargins,
|
||||||
|
}
|
||||||
|
|
||||||
|
[iOS (11,0), TV (11,0), Watch (4,0)]
|
||||||
|
[Native]
|
||||||
|
public enum UIPreferredPresentationStyle : nint
|
||||||
|
{
|
||||||
|
Unspecified = 0,
|
||||||
|
Inline,
|
||||||
|
Attachment,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -139,6 +139,20 @@ namespace XamCore.UIKit {
|
||||||
return (NSUrl) Info [UIImagePickerController.ReferenceUrl];
|
return (NSUrl) Info [UIImagePickerController.ReferenceUrl];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[iOS (11,0)]
|
||||||
|
public PHAsset PHAsset {
|
||||||
|
get {
|
||||||
|
return (PHAsset) Info [UIImagePickerController.PHAsset];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[iOS (11,0)]
|
||||||
|
public NSUrl ImageUrl {
|
||||||
|
get {
|
||||||
|
return (NSUrl) Info [UIImagePickerController.ImageUrl];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
86
src/uikit.cs
86
src/uikit.cs
|
@ -4325,6 +4325,11 @@ namespace XamCore.UIKit {
|
||||||
[Export ("sectionInset")]
|
[Export ("sectionInset")]
|
||||||
UIEdgeInsets SectionInset { get; set; }
|
UIEdgeInsets SectionInset { get; set; }
|
||||||
|
|
||||||
|
[NoWatch]
|
||||||
|
[iOS (11,0), TV (11,0)]
|
||||||
|
[Export ("sectionInsetReference", ArgumentSemantic.Assign)]
|
||||||
|
UICollectionViewFlowLayoutSectionInsetReference SectionInsetReference { get; set; }
|
||||||
|
|
||||||
[iOS (9,0)]
|
[iOS (9,0)]
|
||||||
[Export ("sectionHeadersPinToVisibleBounds")]
|
[Export ("sectionHeadersPinToVisibleBounds")]
|
||||||
bool SectionHeadersPinToVisibleBounds { get; set; }
|
bool SectionHeadersPinToVisibleBounds { get; set; }
|
||||||
|
@ -5520,6 +5525,11 @@ namespace XamCore.UIKit {
|
||||||
[Since (9,0)]
|
[Since (9,0)]
|
||||||
[Field ("UIFontTextStyleCallout")]
|
[Field ("UIFontTextStyleCallout")]
|
||||||
Callout,
|
Callout,
|
||||||
|
|
||||||
|
[NoWatch, NoTV]
|
||||||
|
[iOS (11,0)]
|
||||||
|
[Field ("UIFontTextStyleLargeTitle")]
|
||||||
|
LargeTitle,
|
||||||
}
|
}
|
||||||
|
|
||||||
[Since (7,0)]
|
[Since (7,0)]
|
||||||
|
@ -6923,12 +6933,48 @@ namespace XamCore.UIKit {
|
||||||
}
|
}
|
||||||
#endif // !WATCH
|
#endif // !WATCH
|
||||||
|
|
||||||
|
[NoWatch, NoTV]
|
||||||
|
[iOS (11,0)]
|
||||||
|
[Protocol]
|
||||||
|
interface UIItemProviderPresentationSizeProviding {
|
||||||
|
[Abstract]
|
||||||
|
[Export ("preferredPresentationSizeForItemProvider")]
|
||||||
|
CGSize PreferredPresentationSizeForItemProvider { get; }
|
||||||
|
}
|
||||||
|
|
||||||
|
[iOS (11,0), TV (11,0), Watch (4,0)]
|
||||||
|
[Category]
|
||||||
|
[BaseType (typeof(NSItemProvider))]
|
||||||
|
interface NSItemProvider_UIKitAdditions {
|
||||||
|
[NoWatch, NoTV]
|
||||||
|
[NullAllowed, Export ("teamData", ArgumentSemantic.Copy)]
|
||||||
|
NSData GetTeamData ();
|
||||||
|
|
||||||
|
[NoWatch, NoTV]
|
||||||
|
[NullAllowed, Export ("setTeamData", ArgumentSemantic.Copy)]
|
||||||
|
NSData SetTeamData ();
|
||||||
|
|
||||||
|
[NoWatch, NoTV]
|
||||||
|
[Export ("preferredPresentationSize", ArgumentSemantic.Assign)]
|
||||||
|
CGSize GetPreferredPresentationSize ();
|
||||||
|
|
||||||
|
[NoWatch, NoTV]
|
||||||
|
[Export ("setPreferredPresentationSize", ArgumentSemantic.Assign)]
|
||||||
|
CGSize SetPreferredPresentationSize ();
|
||||||
|
|
||||||
|
[Export ("preferredPresentationStyle", ArgumentSemantic.Assign)]
|
||||||
|
UIPreferredPresentationStyle GetPreferredPresentationStyle ();
|
||||||
|
|
||||||
|
[Export ("setPreferredPresentationStyle", ArgumentSemantic.Assign)]
|
||||||
|
UIPreferredPresentationStyle SetPreferredPresentationStyle ();
|
||||||
|
}
|
||||||
|
|
||||||
[BaseType (typeof (NSObject))]
|
[BaseType (typeof (NSObject))]
|
||||||
interface UIImage : NSSecureCoding
|
interface UIImage : NSSecureCoding
|
||||||
#if !WATCH
|
#if !WATCH
|
||||||
, UIAccessibility, UIAccessibilityIdentification
|
, UIAccessibility, UIAccessibilityIdentification
|
||||||
#if !TVOS
|
#if !TVOS
|
||||||
, NSItemProviderWriting
|
, NSItemProviderWriting, NSItemProviderReading, UIItemProviderPresentationSizeProviding
|
||||||
#endif
|
#endif
|
||||||
#endif // !WATCH
|
#endif // !WATCH
|
||||||
{
|
{
|
||||||
|
@ -7826,6 +7872,10 @@ namespace XamCore.UIKit {
|
||||||
[TV (11, 0), NoWatch, NoiOS]
|
[TV (11, 0), NoWatch, NoiOS]
|
||||||
[Export ("overlayContentView", ArgumentSemantic.Strong)]
|
[Export ("overlayContentView", ArgumentSemantic.Strong)]
|
||||||
UIView OverlayContentView { get; }
|
UIView OverlayContentView { get; }
|
||||||
|
|
||||||
|
[TV (11,0), NoWatch, NoiOS]
|
||||||
|
[Export ("masksFocusEffectToContents")]
|
||||||
|
bool MasksFocusEffectToContents { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
[NoTV]
|
[NoTV]
|
||||||
|
@ -8158,6 +8208,14 @@ namespace XamCore.UIKit {
|
||||||
[Static, Export ("isFlashAvailableForCameraDevice:")]
|
[Static, Export ("isFlashAvailableForCameraDevice:")]
|
||||||
bool IsFlashAvailableForCameraDevice (UIImagePickerControllerCameraDevice cameraDevice);
|
bool IsFlashAvailableForCameraDevice (UIImagePickerControllerCameraDevice cameraDevice);
|
||||||
|
|
||||||
|
[iOS (11,0)]
|
||||||
|
[Export ("imageExportPreset", ArgumentSemantic.Assign)]
|
||||||
|
UIImagePickerControllerImageUrlExportPreset ImageExportPreset { get; set; }
|
||||||
|
|
||||||
|
[iOS (11,0)]
|
||||||
|
[Export ("videoExportPreset")]
|
||||||
|
string VideoExportPreset { get; set; }
|
||||||
|
|
||||||
#if XAMCORE_2_0
|
#if XAMCORE_2_0
|
||||||
// manually bound (const fields) in monotouch.dll - unlike the newer fields (static properties)
|
// manually bound (const fields) in monotouch.dll - unlike the newer fields (static properties)
|
||||||
|
|
||||||
|
@ -8177,6 +8235,7 @@ namespace XamCore.UIKit {
|
||||||
NSString MediaURL { get; }
|
NSString MediaURL { get; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
[Deprecated (PlatformName.iOS, 11, 0, message: "Use 'UIImagePickerController.PHAsset' instead.")]
|
||||||
[Field ("UIImagePickerControllerReferenceURL")]
|
[Field ("UIImagePickerControllerReferenceURL")]
|
||||||
NSString ReferenceUrl { get; }
|
NSString ReferenceUrl { get; }
|
||||||
|
|
||||||
|
@ -8186,6 +8245,14 @@ namespace XamCore.UIKit {
|
||||||
[iOS (9,1)]
|
[iOS (9,1)]
|
||||||
[Field ("UIImagePickerControllerLivePhoto")]
|
[Field ("UIImagePickerControllerLivePhoto")]
|
||||||
NSString LivePhoto { get; }
|
NSString LivePhoto { get; }
|
||||||
|
|
||||||
|
[iOS (11,0)]
|
||||||
|
[Field ("UIImagePickerControllerPHAsset")]
|
||||||
|
NSString PHAsset { get; }
|
||||||
|
|
||||||
|
[iOS (11,0)]
|
||||||
|
[Field ("UIImagePickerControllerImageURL")]
|
||||||
|
NSString ImageUrl { get; }
|
||||||
}
|
}
|
||||||
|
|
||||||
// UINavigationControllerDelegate, UIImagePickerControllerDelegate
|
// UINavigationControllerDelegate, UIImagePickerControllerDelegate
|
||||||
|
@ -16260,10 +16327,16 @@ namespace XamCore.UIKit {
|
||||||
[Export ("initWithDocumentTypes:inMode:")]
|
[Export ("initWithDocumentTypes:inMode:")]
|
||||||
IntPtr Constructor (string [] allowedUTIs, UIDocumentPickerMode mode);
|
IntPtr Constructor (string [] allowedUTIs, UIDocumentPickerMode mode);
|
||||||
|
|
||||||
|
[Advice ("This method will be deprecated in a future release and should be avoided. Instead, use 'UIDocumentPickerViewController (NSUrl[], UIDocumentPickerMode)'.")]
|
||||||
[DesignatedInitializer]
|
[DesignatedInitializer]
|
||||||
[Export ("initWithURL:inMode:")]
|
[Export ("initWithURL:inMode:")]
|
||||||
IntPtr Constructor (NSUrl url, UIDocumentPickerMode mode);
|
IntPtr Constructor (NSUrl url, UIDocumentPickerMode mode);
|
||||||
|
|
||||||
|
[iOS (11,0)]
|
||||||
|
[Export ("initWithURLs:inMode:")]
|
||||||
|
[DesignatedInitializer]
|
||||||
|
IntPtr Constructor (NSUrl[] urls, UIDocumentPickerMode mode);
|
||||||
|
|
||||||
[Export ("delegate", ArgumentSemantic.Weak), NullAllowed]
|
[Export ("delegate", ArgumentSemantic.Weak), NullAllowed]
|
||||||
NSObject WeakDelegate { get; set; }
|
NSObject WeakDelegate { get; set; }
|
||||||
|
|
||||||
|
@ -16273,6 +16346,10 @@ namespace XamCore.UIKit {
|
||||||
|
|
||||||
[Export ("documentPickerMode", ArgumentSemantic.Assign)]
|
[Export ("documentPickerMode", ArgumentSemantic.Assign)]
|
||||||
UIDocumentPickerMode DocumentPickerMode { get; }
|
UIDocumentPickerMode DocumentPickerMode { get; }
|
||||||
|
|
||||||
|
[iOS (11,0)]
|
||||||
|
[Export ("allowsMultipleSelection")]
|
||||||
|
bool AllowsMultipleSelection { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
[NoWatch]
|
[NoWatch]
|
||||||
|
@ -16281,10 +16358,15 @@ namespace XamCore.UIKit {
|
||||||
[Protocol, Model]
|
[Protocol, Model]
|
||||||
[BaseType (typeof (NSObject))]
|
[BaseType (typeof (NSObject))]
|
||||||
partial interface UIDocumentPickerDelegate {
|
partial interface UIDocumentPickerDelegate {
|
||||||
|
[Deprecated (PlatformName.iOS, 11, 0, message: "Implement 'DidPickDocument (UIDocumentPickerViewController, NSUrl[])' instead.")]
|
||||||
[Abstract]
|
[Abstract]
|
||||||
[Export ("documentPicker:didPickDocumentAtURL:"), EventArgs ("UIDocumentPicked")]
|
[Export ("documentPicker:didPickDocumentAtURL:"), EventArgs ("UIDocumentPicked")]
|
||||||
void DidPickDocument (UIDocumentPickerViewController controller, NSUrl url);
|
void DidPickDocument (UIDocumentPickerViewController controller, NSUrl url);
|
||||||
|
|
||||||
|
[iOS (11,0)]
|
||||||
|
[Export ("documentPicker:didPickDocumentsAtURLs:"), EventArgs ("UIDocumentPickedAtUrls"), EventName ("DidPickDocumentAtUrls")]
|
||||||
|
void DidPickDocument (UIDocumentPickerViewController controller, NSUrl[] urls);
|
||||||
|
|
||||||
[Export ("documentPickerWasCancelled:")]
|
[Export ("documentPickerWasCancelled:")]
|
||||||
void WasCancelled (UIDocumentPickerViewController controller);
|
void WasCancelled (UIDocumentPickerViewController controller);
|
||||||
}
|
}
|
||||||
|
@ -17904,5 +17986,5 @@ namespace XamCore.UIKit {
|
||||||
[Export ("canPasteItemProviders:")]
|
[Export ("canPasteItemProviders:")]
|
||||||
bool CanPasteItemProviders (NSItemProvider[] itemProviders);
|
bool CanPasteItemProviders (NSItemProvider[] itemProviders);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // !WATCH
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче