[macos] Add WKUIDelegate runOpenPanelWith bindings (#2495)
- https://bugzilla.xamarin.com/show_bug.cgi?id=58758
This commit is contained in:
Родитель
4529cdb922
Коммит
a001cace6f
|
@ -298,6 +298,13 @@ namespace XamCore.WebKit
|
||||||
void RemoveDataOfTypes (NSSet<NSString> websiteDataTypes, NSDate date, Action completionHandler);
|
void RemoveDataOfTypes (NSSet<NSString> websiteDataTypes, NSDate date, Action completionHandler);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Mac (10,12, onlyOn64 : true)][NoiOS, NoWatch, NoTV]
|
||||||
|
[BaseType (typeof(NSObject))]
|
||||||
|
interface WKOpenPanelParameters {
|
||||||
|
[Export ("allowsMultipleSelection")]
|
||||||
|
bool AllowsMultipleSelection { get; }
|
||||||
|
}
|
||||||
|
|
||||||
[Mac (10,10, onlyOn64 : true), iOS (8,0)]
|
[Mac (10,10, onlyOn64 : true), iOS (8,0)]
|
||||||
[Protocol, Model]
|
[Protocol, Model]
|
||||||
[BaseType (typeof (NSObject))]
|
[BaseType (typeof (NSObject))]
|
||||||
|
@ -317,6 +324,10 @@ namespace XamCore.WebKit
|
||||||
void RunJavaScriptTextInputPanel (WKWebView webView, string prompt, [NullAllowed] string defaultText,
|
void RunJavaScriptTextInputPanel (WKWebView webView, string prompt, [NullAllowed] string defaultText,
|
||||||
WKFrameInfo frame, Action<string> completionHandler);
|
WKFrameInfo frame, Action<string> completionHandler);
|
||||||
|
|
||||||
|
[Mac (10,12, onlyOn64 : true)][NoiOS, NoWatch, NoTV]
|
||||||
|
[Export ("webView:runOpenPanelWithParameters:initiatedByFrame:completionHandler:")]
|
||||||
|
void RunOpenPanel (WKWebView webView, WKOpenPanelParameters parameters, WKFrameInfo frame, Action<NSUrl[]> completionHandler);
|
||||||
|
|
||||||
[iOS (9,0)][Mac (10,11, onlyOn64 : true)]
|
[iOS (9,0)][Mac (10,11, onlyOn64 : true)]
|
||||||
[Export ("webViewDidClose:")]
|
[Export ("webViewDidClose:")]
|
||||||
void DidClose (WKWebView webView);
|
void DidClose (WKWebView webView);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче