Reputation: 1592
When I add the following override to the AppDelegate:
public override void HandleAction(UIApplication application, string actionIdentifier, NSDictionary remoteNotificationInfo, [BlockProxy(typeof(NIDAction))] Action completionHandler)
{
}
I receive the following error:
Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name 'NIDAction' could not be found (are you missing a using directive or an assembly reference?) Notifi.iOS C:\development\notifi\Notifi\Notifi\Notifi.iOS\AppDelegate.cs 119 Active
I've tried searching for information about NIDAction, but I can't find anything helpful - can I remove this attribute?
Upvotes: 6
Views: 772
Reputation: 9260
There's no need for you to annotate types when Xamarin already does it in a signature of every native call.
Just do this:
public override void HandleAction (UIApplication application, string actionIdentifier, NSDictionary remoteNotificationInfo, Action completionHandler)
{
....
}
Upvotes: 3