'Android: How to add button to "Control Center"

I recently downloaded an app and it added a toggle button on the "Control Center" (I don't know how this section is called).

I am trying to develop an app and this feature would really help me, but I can't seem to find anything on how to implement it.

What is this area called and how do I create a button which can be added to it?

screenshot of MIUI Control Center

screenshot of MIUI Control Center



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source