-
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
[Foundation] Add bindings for NSBackgroundActivityScheduler #7496
[Foundation] Add bindings for NSBackgroundActivityScheduler #7496
Conversation
[Export ("scheduleWithBlock:")] | ||
void Schedule (NSBackgroundActivityCompletionAction action); |
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.
question (not feedback): During team week @dalexsoto mentioned the Async
attribute should be used when the last argument of a method is a callback. Why isn't async used here, isn't this method asynchronous in objc?
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.
@wachaudh because in this case, it is not a function to be called when the method is completed with the result of the operation, but a function to be schedule to be called.
That is, if the callback taken by the function is going to be called with the results of the function, you should use Async. In this case you are just giving a function to be schedule.
Build failure Test results1 tests failed, 86 tests passed.Failed tests
|
Known failure HE0038 |
Is there any timeline when this new bindings will make it to the stable version of Xamarin.MacOS? |
Good question. You can read about our release process here. This is currently in our d16-6 branch, which will be two releases from now. TodayCurrent: d16-4 Branching for d16-5 was done on Oct 28, which was a month before this landed. There is not currently an announced date for d16-6 to go summer, but you can likely expect it to be a number of months. |
Addresses #7224