floating_window module provides the function to show floating window, check if the user has permission to show floating window, etc.
Because floating window module involves UI interaction, the function to show floating window needs to be run in UI thread, so at the start of the file you need to specify:
"ui-thread nodejs";：only floating window, no UI page activity
"ui nodejs";：both floating window and UI page activity
"ui-thread";：only floating window, no UI page activity, and the file name ends with .node.js
"ui";：both floating window and UI page activity, and the file name ends with .node.js
Whether to automatically stick to the edge. If true, when dragging ends, the floating window will stick to the edge; if is "bounce", it will bounce multiple times and stick to the edge, like Auto.js Pro's floating window.
Whether the app has floating window permission.
true if the app has floating window permission, otherwise
Jump to the page to manage floating window permission.
Generated using TypeDoc