BlocosIA Wiki Editor

WebView

On-stage WebView window (URL and HTML), CSS/JS injection, bidirectional bridge and advanced application control.

Open web pages or HTML interfaces inside the stage, exchange messages and events in real time, and control fullscreen, orientation, clipboard, sharing and native app features.

To use it: in the editor, click "Extensions" (bottom corner) and add "WebView".

Stack

open URL ( ) in WebView

Opens a web page inside the WebView window on the stage.

Stack

load HTML code ( ) in WebView

Does an action. Snap it below another block.

Stack

[show] WebView on stage

Does an action. Snap it below another block.

Stack

WebView display mode: [window on stage]

Does an action. Snap it below another block.

Stack

position WebView at x: ( ) y: ( ) width: ( ) height: ( )

Does an action. Snap it below another block.

Stack

WebView style: border [with modern border] corners ( ) px opacity ( ) %

Does an action. Snap it below another block.

Stack

WebView navigation bar: [show]

Does an action. Snap it below another block.

Stack

WebView navigation: [back]

Does an action. Snap it below another block.

Stack

set WebView zoom to ( ) %

Does an action. Snap it below another block.

Stack

scroll WebView to x: ( ) y: ( )

Does an action. Snap it below another block.

Stack

WebView permissions: [camera and microphone] [allow]

Does an action. Snap it below another block.

Stack

send message ( ) to WebView / Host

Sends a message to the stage WebView and to the native host app (Android, iOS, Capacitor, Kodular, React Native, Flutter).

Stack

send event ( ) with data ( ) via WebView

Does an action. Snap it below another block.

Stack

run JS command ( ) in WebView

Does an action. Snap it below another block.

Stack

inject CSS style ( ) into WebView

Does an action. Snap it below another block.

Stack

application control: [enter fullscreen]

Does an action. Snap it below another block.

Stack

set status bar / theme color to ( )

Does an action. Snap it below another block.

Stack

set window / application title to ( )

Does an action. Snap it below another block.

Stack

vibrate device with pattern (ms) ( )

Does an action. Snap it below another block.

Stack

copy text ( ) to clipboard

Does an action. Snap it below another block.

Reporter

clipboard text

Gives a number or text. Put it inside a round slot.

Stack

share title ( ) text ( ) link ( )

Does an action. Snap it below another block.

Stack

open link ( ) in external browser

Does an action. Snap it below another block.

Stack

save in WebView session key ( ) value ( )

Does an action. Snap it below another block.

Reporter

read from WebView session key ( )

Gives a number or text. Put it inside a round slot.

Reporter

application URL parameter ( )

Gives a number or text. Put it inside a round slot.

Stack

set application route (hash) to ( )

Does an action. Snap it below another block.

Reporter

current application route (hash)

Gives a number or text. Put it inside a round slot.

Hat

when WebView receives message

Starts a script when this happens.

Hat

when WebView receives event ( )

Starts a script when this happens.

Hat

when WebView finishes loading

Starts a script when this happens.

Hat

when WebView error occurs

Starts a script when this happens.

Hat

when application state changes to [in background]

Starts a script when this happens.

Boolean

am I running in a WebView?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Reporter

WebView / application platform

Gives a number or text. Put it inside a round slot.

Reporter

system information [platform]

Gives a number or text. Put it inside a round slot.

Reporter

last WebView message

Gives a number or text. Put it inside a round slot.

Reporter

last WebView event

Gives a number or text. Put it inside a round slot.

Reporter

last WebView event data

Gives a number or text. Put it inside a round slot.

Reporter

current WebView URL

Gives a number or text. Put it inside a round slot.

Boolean

is WebView loading?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Boolean

is WebView visible?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Stack

simulate WebView event ( ) with data ( )

Does an action. Snap it below another block.