Action button multiple functions - Discover, Download & Share Siri Shortcuts

This shortcut allows you to use your iphone’s action button to:

Turn bluetooth on / off
Turn Flashlight on / off
Turn silent mode on / off

To choose which one of those functions the button is going to trigger you just have to change your phone’s orientation.

If it’s facing right or left ( in landscape ) the flashlight function is triggered, if it’s facing down ( in landscape or vertical ) the silent mode function is triggered. All other orientations trigger the bluetooth function ( which automatically displays a notification informing that the bluetooth was turned on / off ).

Feel free to alter this to execute whatever other function you deem useful.