Skip to content

UrlLauncher

UrlLauncher #

Bases: Service

data #

data: Any = skip_field()

Arbitrary data of any type.

key #

key: KeyValue | None = None

page #

page: Page | PageView | None

The page (of type Page or PageView) to which this control belongs to.

parent #

parent: BaseControl | None

The direct ancestor(parent) of this control.

It defaults to None and will only have a value when this control is mounted (added to the page tree).

The Page control (which is the root of the tree) is an exception - it always has parent=None.

before_event #

before_event(e: ControlEvent)

before_update #

before_update()

This method is called every time when this control is being updated.

Note

Make sure not to call/request an update() here.

can_launch_url_async #

can_launch_url_async(url: str) -> bool

close_in_app_web_view #

close_in_app_web_view() -> None

close_in_app_web_view_async #

close_in_app_web_view_async() -> None

did_mount #

did_mount()

init #

init()

is_isolated #

is_isolated()

launch_url #

launch_url(
    url: str,
    web_window_name: str | UrlTarget | None = None,
    web_popup_window: bool | None = False,
    window_width: int | None = None,
    window_height: int | None = None,
) -> None

launch_url_async #

launch_url_async(
    url: str,
    web_window_name: str | UrlTarget | None = None,
    web_popup_window: bool | None = False,
    window_width: int | None = None,
    window_height: int | None = None,
) -> None

update #

update() -> None

will_unmount #

will_unmount()