How to manually change a permission to denied

Please provide the following:

  1. SDK Version: 37.0.0
  2. Platforms(Android/iOS/web/all): All

I am creating a settings page, where the user can mark permissions as granted or denied from a switch component instead of having to go through the settings on their phone, they can instead do it quickly through the app. How can I through code, mark a permission as denied without having to ask permission, as the switch component is essentially asking them?