I have this static warning analysis source in Xamarin Studio:
API usage error: use the * Notify method, which has a parameter UICompletion Handler completion, boolwill tell you if the operation has completed
when calling UIView.Animate(double duration, Action animation, Action completion):
UIView.Animate(duration,
() => Animation(),
() => Completion());
However, I cannot pass parameters to the lambda expression. None of these options compile:
(bool) => Completion()(finished) => Completion()(bool finished) => Completion()
How to pass this parameter finishedto the completion block?
source
share