Disable lock screen notifications

Is there a way to programmatically set the "Show on Lock Screen" notification setting? It seems like this should be a part of UIUserNotificationSettings.


My app uses local notifications that are contextually appropriate on Apple Watch, but make less sense on the phone. They clutter up the phone's lock screen after engaging with the watch app for a while. Having the ability to target notifications directly to the watch would be another great solution!

Disable lock screen notifications
 
 
Q