[XM] Add missing SafariServices binding (#681)
This commit is contained in:
Родитель
a617bee08f
Коммит
bc9c25de72
|
@ -123,6 +123,10 @@ namespace XamCore.SafariServices {
|
|||
[Static]
|
||||
[Export ("setToolbarItemsNeedUpdate")]
|
||||
void SetToolbarItemsNeedUpdate ();
|
||||
|
||||
[Static]
|
||||
[Export ("showPreferencesForExtensionWithIdentifier:completionHandler:")]
|
||||
void ShowPreferencesForExtension (string identifier, [NullAllowed] Action<NSError> completionHandler);
|
||||
}
|
||||
|
||||
[Mac (10,12, onlyOn64 : true)]
|
||||
|
@ -241,5 +245,23 @@ namespace XamCore.SafariServices {
|
|||
interface SFSafariExtensionHandler : NSExtensionRequestHandling, SFSafariExtensionHandling
|
||||
{
|
||||
}
|
||||
|
||||
// TODO - Needs Safari Extension support to test
|
||||
// [Mac (10,12)]
|
||||
// [BaseType (typeof(NSObject))]
|
||||
// interface SFSafariExtensionManager
|
||||
// {
|
||||
// [Static]
|
||||
// [Export ("getStateOfSafariExtensionWithIdentifier:completionHandler:")]
|
||||
// void GetStateOfSafariExtension (string identifier, Action<SFSafariExtensionState, NSError> completionHandler);
|
||||
// }
|
||||
//
|
||||
// [Mac (10,12)]
|
||||
// [BaseType (typeof(NSObject))]
|
||||
// interface SFSafariExtensionState
|
||||
// {
|
||||
// [Export ("enabled")]
|
||||
// bool Enabled { [Bind ("isEnabled")] get; }
|
||||
// }
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -197,3 +197,8 @@
|
|||
!unknown-native-enum! NSType bound
|
||||
!unknown-native-enum! SLComposeViewControllerResult bound
|
||||
|
||||
# Bound but commented out until we can test w\ template
|
||||
!missing-selector! +SFSafariExtensionManager::getStateOfSafariExtensionWithIdentifier:completionHandler: not bound
|
||||
!missing-type! SFSafariExtensionManager not bound
|
||||
!missing-selector! SFSafariExtensionState::isEnabled not bound
|
||||
!missing-type! SFSafariExtensionState not bound
|
||||
|
|
Загрузка…
Ссылка в новой задаче