How do I make share extension not show a view when it accepts a share?

Anyone know how to use the Share Extension for iOS that either shows an alert or shows nothing at all when another app shares with your app?

Am I allowed to use a UIAlertController?