So, I have the airdrop feature working but I need different things to happen if the user presses accept and if the user presses deny for the airdrop request.
Currently, the same actions happen whether the user accepts or denies the airdrop request.
I'm using
activityViewController.SetCompletionHandler(HandleActivityViewControllerCompletion);
which has this signature:
private async void HandleActivityViewControllerCompletion (NSString activityType, bool completed, NSExtensionItem[] returnedItems, NSError error)
The problem is none of these parameters I can use. Completed always returns true if the user makes either choice and returnedItems is null.
What can I use or do to detect if the user denied the Airdrop request?
This is for a Xamarin.iOS app but answers in Swift/native iOS are fine too.
Similar SO question with no answer: UIActivityViewController Airdrop - Check the status when 'sent' or 'declined'