Interface: CreateWindowOptions


CloudControl Pro 9 Docs / floating_window / CreateWindowOptions

Interface: CreateWindowOptions

floating_window.CreateWindowOptions

Options for creating a floating window, used to specify the size and position of the window.

Table of contents

Properties

Properties

context

Optional context: any

The context used to create the floating window. If it is specified as accessibility.service, the floating window type is set to an accessible floating window, which can be displayed above the status bar. Defaults to the global ApplicationContext, which is $autojs.androidContext.

See

TYPE_ACCESSIBILITY_OVERLAYopen in new window


initialPosition

Optional initialPosition: Point

The initial position of the floating window, such as {x: 100, y: 200}. The default is {x: 0, y: 0}.


initialSize

Optional initialSize: Size

The initial size of the floating window, such as {width: 100, height: 200}. The default is wrap content.


layoutNoLimit

Optional layoutNoLimit: boolean

Whether the content of the floating window can exceed the screen.