wiki.sine.space | sinespace

Difference between revisions of "Scripting/SBrowserSurface"

From wiki.sine.space
Jump to: navigation, search
(Created SBrowserSurface and defined all members)
 
m
Line 1: Line 1:
 +
==Members==
 
{{ScriptFunction|void|Back|();|Equivilent to hitting the 'back' button within the browser.
 
{{ScriptFunction|void|Back|();|Equivilent to hitting the 'back' button within the browser.
 
|5=
 
|5=
Line 15: Line 16:
 
<pre></pre>}}
 
<pre></pre>}}
  
{{ScriptFunction|void|SetURL|(string url);|Sets the URL for the browser frame, and navigates to it. (A standard URL recognized by Chromium; e.g. https://www.foo.bar) |5=
+
{{ScriptFunction|void|SetURL|(string url);|Sets the URL for the browser frame, and navigates to it. (A standard URL recognized by Chromium; e.g. https://www.youtube.com) |5=
 
<pre></pre>}}
 
<pre></pre>}}
  

Revision as of 13:35, 14 December 2020

Members

Back

void Back ();

Equivilent to hitting the 'back' button within the browser.



CallFunction

void CallFunction (string name, string argument);

Calls a JS function in the browser with a single argument. The function name must begin with the characters "sinespace__".


Forward

void Forward ();

Equivilent to hitting the 'forward' button within the browser.


RegisterFunction

void RegisterFunction (string name, closure function);

Registers a JS function in the browser. The function name must start with the characters "sinespace__".


Reload

void Reload ();

Refreshes and reloads the current webpage.


SetURL

void SetURL (string url);

Sets the URL for the browser frame, and navigates to it. (A standard URL recognized by Chromium; e.g. https://www.youtube.com)



Properties

Networked

bool Networked { get;set; }

Should changes to this browser be streamed to other clients within the area?.