[Foundation.Export("userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:")]
public virtual void DidReceiveNotificationResponse(UNUserNotificationCenter center,
UNNotificationResponse response,
Action completionHandler)
if (Appear2mee.DidReceiveNotificationResponse(response, acceptExchangeKeyValues =>
var res = "{" + string.Join(",", acceptExchangeKeyValues.Select(kv => kv.Key + "=" + kv.Value).ToArray()) + "}";
Console.WriteLine("accepted:" + res);
}, dismissExchangeKeyValues =>
var res = "{" + string.Join(",", dismissExchangeKeyValues.Select(kv => kv.Key + "=" + kv.Value).ToArray()) + "}";
Console.WriteLine("dismissed:" + res);
// it was a 2mee Exchange notification
// some other notification
// Take action based on Action ID
switch (response.ActionIdentifier)
// Take action based on identifier
if (response.IsDefaultAction)
// Handle default action...
else if (response.IsDismissAction)
// Inform caller it has been handled