CreateWindowOptions
10/22/22Less than 1 minute
floating_window.CreateWindowOptions
Optional arguments for createWindow: initial position, size, whether layout may exceed the screen, and which Context backs the overlay.
Table of contents
Properties
Properties
context
context?:any
Context used to obtain a WindowManager. Pass the live AccessibilityService instance (for example require("accessibility").accessibility.service) to create an overlay of type TYPE_ACCESSIBILITY_OVERLAY; otherwise the runtime uses $autojs.androidContext.
See also
initialPosition
initialPosition?:Point
Initial top-left position in pixels, e.g. { x: 100, y: 200 }.
initialSize
initialSize?:Size
Initial width and height in pixels (or WRAP_CONTENT / MATCH_PARENT if you pass a Size built with those constants).
layoutNoLimit
layoutNoLimit?:boolean
If true, allows the window to extend outside the physical screen bounds (same idea as FLAG_LAYOUT_NO_LIMITS).
