[FileProviderUI] Add Xcode 9 Beta 1 to 3 bindings (#2356)

This commit is contained in:
Alex Soto 2017-07-24 10:12:30 -05:00 коммит произвёл GitHub
Родитель 218eee7ced
Коммит ff87ac1197
6 изменённых файлов: 74 добавлений и 1 удалений

Просмотреть файл

@ -114,5 +114,6 @@ namespace MonoTouch {
public const string CoreMLLibrary = "/System/Library/Frameworks/CoreML.framework/CoreML";
public const string VisionLibrary = "/System/Library/Frameworks/Vision.framework/Vision";
public const string FileProviderLibrary = "/System/Library/Frameworks/FileProvider.framework/FileProvider";
public const string FileProviderUILibrary = "/System/Library/Frameworks/FileProviderUI.framework/FileProviderUI";
}
}

65
src/fileproviderui.cs Normal file
Просмотреть файл

@ -0,0 +1,65 @@
//
// FileProvider C# bindings
//
// Authors:
// Alex Soto <alexsoto@microsoft.com>
//
// Copyright 2017 Xamarin Inc. All rights reserved.
//
#if XAMCORE_2_0
using System;
using XamCore.ObjCRuntime;
using XamCore.Foundation;
using XamCore.UIKit;
using XamCore.FileProvider;
namespace XamCore.FileProviderUI {
[iOS (11,0)]
[ErrorDomain ("FPUIErrorDomain")]
[Native]
enum FPUIExtensionErrorCode : nuint {
UserCancelled,
Failed
}
[iOS (11,0)]
[DisableDefaultCtor]
[BaseType (typeof (NSExtensionContext))]
interface FPUIActionExtensionContext {
[NullAllowed, Export ("domainIdentifier")]
string DomainIdentifier { get; }
[Export ("completeRequest")]
void CompleteRequest ();
[Export ("cancelRequestWithError:")]
void CancelRequest (NSError error);
}
[iOS (11,0)]
[BaseType (typeof (UIViewController))]
interface FPUIActionExtensionViewController {
[Export ("initWithNibName:bundle:")]
[PostGet ("NibBundle")]
IntPtr Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle);
[Export ("extensionContext", ArgumentSemantic.Strong)]
FPUIActionExtensionContext ExtensionContext { get; }
[Export ("prepareForError:")]
void Prepare (NSError error);
[Protected]
[Export ("prepareForActionWithIdentifier:itemIdentifiers:")]
void Prepare (string actionIdentifier, NSString [] itemIdentifiers);
[Wrap ("Prepare (actionIdentifier, itemIdentifiers.GetConstants())")]
void Prepare (string actionIdentifier, NSFileProviderItemIdentifier [] itemIdentifiers);
}
}
#endif

Просмотреть файл

@ -1659,6 +1659,7 @@ IOS_FRAMEWORKS = \
EventKitUI \
ExternalAccessory \
FileProvider \
FileProviderUI \
GLKit \
GameController \
GameplayKit \

Просмотреть файл

@ -206,6 +206,7 @@ namespace Introspection {
case "ILMessageFilterExtensionContext": // Conformance not in headers
case "MSMessageLiveLayout":
case "NSFileProviderDomain": // Conformance not in headers
case "FPUIActionExtensionContext": // Conformance not in headers
return true;
#if __WATCHOS__
case "CLKComplicationTemplate":
@ -340,6 +341,7 @@ namespace Introspection {
case "NSRelationshipDescription":
case "MSMessageLiveLayout":
case "NSFileProviderDomain": // Conformance not in headers
case "FPUIActionExtensionContext": // Conformance not in headers
return true;
#if __WATCHOS__
case "CLKComplicationTemplate":
@ -425,6 +427,7 @@ namespace Introspection {
case "ILMessageFilterExtensionContext": // b2: Conformance not in headers
case "HMCharacteristicEvent": // Selectors not available on 32 bit
case "NSFileProviderDomain": // Conformance not in headers
case "FPUIActionExtensionContext": // Conformance not in headers
return true;
#if __WATCHOS__

Просмотреть файл

@ -252,6 +252,7 @@ public class Frameworks : Dictionary <string, Framework>
{ "CoreML", "CoreML", 11 },
{ "Vision", "Vision", 11 },
{ "FileProvider", "FileProvider", 11 },
{ "FileProviderUI", "FileProviderUI", 11 },
};
}
return ios_frameworks;

Просмотреть файл

@ -271,7 +271,9 @@ SIMLAUNCHER_FRAMEWORKS = \
-weak_framework Intents \
-weak_framework IntentsUI \
\
-weak_framework ARKit
-weak_framework ARKit \
-weak_framework FileProvider \
-weak_framework FileProviderUI
# note: there _was_ no CoreAudioKit.framework or Metal.framework for the simulator (before recent iOS9 betas)
# note 2: there's no GameKit, in iOS 9 (beta 3 at least), you're supposed to reference GameCenter instead (looks fixed in beta 4)