WebView
Hierarchy
- BaseObject
- WebView
Index
Constructors
Properties
Methods
Constructors
constructor
Properties
publicfocused
Is the webview focused.
publicreadonlyid
publicreadonlyisOverlay
Is the webview a overlay.
publicreadonlyisReady
Is the webview ready.
publicreadonlyisRemote
Whether this entity was created clientside or serverside. (Clientside = false, Serverside = true).
publicisVisible
View visibility state
publicreadonlypos
Set and get the webview position.
publicreadonlyrefCount
Returns the ref count of the entity.
publicreadonlyremoteID
The serverside id of this entity.
publicsize
Set and get the webview size.
publicreadonlytype
Type of the object.
publicurl
View URL
publicreadonlyvalid
Object usability.
publicstaticreadonlyall
publicstaticreadonlycount
publicstaticreadonlygpuAccelerationActive
Methods
publicaddOutput
publicdeleteMeta
publicdestroy
Removes the object from the world.
publicemit
Emits specified event across particular WebView.
publicfocus
Focuses the webview so it can be interacted with.
publicgetEventListeners
Gets all the listeners for the specified webview event.
publicgetMeta
Type parameters
- K: string
publicgetMetaDataKeys
publicgetOutputs
publicgetSyncedMeta
Gets a value using the specified key.
Type parameters
- K: string
publicgetSyncedMetaKeys
publichasMeta
publichasSyncedMeta
Determines whether contains the specified key.
publicoff
Unsubscribes from WebView event handler with specified listener.
publicon
Subscribes to WebView event handler with specified listener.
publiconce
Subscribes to WebView event with specified listener, which only triggers once.
publicreload
publicremoveOutput
publicsetExtraHeader
Sets the specified header to the specified value.
publicsetMeta
Type parameters
- K: string
publicsetZoomLevel
Sets the zoom level for webview.
publicunfocus
Unfocuses the webview so it ignores user input.
publicstaticgetByID
Retrieves the webview from the pool.
Creates a fullscreen WebView.
Example
index.html
script.js