-
Notifications
You must be signed in to change notification settings - Fork 515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[macos10.13-beta1] FinderSync and MediaLibrary bindings #2219
Changes from 14 commits
5d418bc
5e2bf05
5a358e7
bef7606
0610693
aca2894
4a097d7
7807ced
2fd87b3
4070db5
91c2990
229316e
68b87ac
92711a4
20cbc00
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
|
||
#if XAMCORE_2_0 | ||
namespace XamCore.FinderSync { | ||
delegate void GetValuesCompletionHandler (NSDictionary<NSString, NSObject> values, NSError error); | ||
|
||
[Mac (10, 10, onlyOn64: true)] | ||
[BaseType (typeof(NSExtensionContext))] | ||
interface FIFinderSyncController : NSSecureCoding, NSCopying | ||
|
@@ -27,6 +29,24 @@ interface FIFinderSyncController : NSSecureCoding, NSCopying | |
|
||
[NullAllowed, Export ("selectedItemURLs")] | ||
NSUrl[] SelectedItemURLs { get; } | ||
|
||
[Mac (10,13, onlyOn64 : true)] | ||
[Export ("lastUsedDateForItemWithURL:")] | ||
[return: NullAllowed] | ||
NSDate GetLastUsedDate (NSUrl itemUrl); | ||
|
||
[Mac (10,13, onlyOn64 : true)] | ||
[Async, Export ("setLastUsedDate:forItemWithURL:completion:")] | ||
void SetLastUsedDate (NSDate lastUsedDate, NSUrl itemUrl, Action<NSError> completion); | ||
|
||
[Mac (10,13, onlyOn64 : true)] | ||
[Export ("tagDataForItemWithURL:")] | ||
[return: NullAllowed] | ||
NSData GetTagData (NSUrl itemUrl); | ||
|
||
[Async, Mac (10,13, onlyOn64 : true)] | ||
[Export ("setTagData:forItemWithURL:completion:")] | ||
void SetTagData ([NullAllowed] NSData tagData, NSUrl itemUrl, Action<NSError> completion); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A sync ? |
||
} | ||
|
||
[Mac (10, 10, onlyOn64: true)] | ||
|
@@ -54,7 +74,25 @@ interface FIFinderSyncProtocol | |
|
||
[Export ("toolbarItemToolTip")] | ||
string ToolbarItemToolTip { get; } | ||
} | ||
|
||
[Mac (10,13, onlyOn64 : true)] | ||
[Export ("exportedObjectForMessageInterface:itemURL:error:")] | ||
NSObject GetExportedObject (NSFileProviderMessageInterface messageInterface, NSUrl itemUrl, [NullAllowed] out NSError error); | ||
|
||
[Mac (10,13, onlyOn64 : true)] | ||
[Export ("supportedServiceNamesForItemWithURL:")] | ||
string[] SupportedServiceNames (NSUrl itemUrl); | ||
|
||
#if FALSE // TODO: Activate after 10.13 foundation APIs have been merged | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you file a bug about this so that we don't forget? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Whoops. I did file a bug, meant to add it to the comment. I'll update it with the bug # |
||
[Mac (10,13, onlyOn64 : true)] | ||
[Export ("makeListenerEndpointForServiceName:andReturnError:")] | ||
[return: NullAllowed] | ||
NSXpcListenerEndpoint MakeListenerEndpoint (string serviceName, [NullAllowed] out NSError error); | ||
#endif | ||
[Mac (10,13, onlyOn64 : true)] | ||
[Async, Export ("valuesForAttributes:forItemWithURL:completion:")] | ||
void GetValues (string[] attributes, NSUrl itemUrl, GetValuesCompletionHandler completion); | ||
} | ||
|
||
[Mac (10, 10, onlyOn64: true)] | ||
[BaseType (typeof(NSObject))] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Async ?