wiki.sine.space | sinespace

Difference between revisions of "Scripting/SBrowserSurface"

From wiki.sine.space
Jump to: navigation, search
m
Line 11: Line 11:
  
 
{{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>Space.Host.ExecutingObject.Browser.SetURL('https://www.youtube.com')</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.youtube.com) |5=<pre>Space.Host.ExecutingObject.Browser.SetURL('https://www.youtube.com')</pre>}}
 +
  
  
 
==Properties==
 
==Properties==
 
{{ScriptFunction|bool|Networked|{ get;set; }|Should changes to this browser be streamed to other clients within the area?.|5=<pre>Space.Host.ExecutingObject.Browser.Networked=true</pre>}}
 
{{ScriptFunction|bool|Networked|{ get;set; }|Should changes to this browser be streamed to other clients within the area?.|5=<pre>Space.Host.ExecutingObject.Browser.Networked=true</pre>}}
 +
 +
{{ScriptFunction|bool|Muted|{ get;set; }|Whether this Browser Surface is muted or not.|5=<pre>Space.Host.ExecutingObject.Browser.Muted=true</pre>}}
 +
 +
{{ScriptFunction|bool|CanGoBack|{ get; }|Returns whether this Browser Surface can navigate back|5=<pre>CanGoBack = Space.Host.ExecutingObject.Browser.CanGoBack</pre>}}
 +
 +
{{ScriptFunction|bool|CanGoForward|{ get; }|Returns whether this Browser Surface can navigate forward|5=<pre>CanGoForward = Space.Host.ExecutingObject.Browser.CanGoForward</pre>}}
  
 
{{Scripting Navbox}}
 
{{Scripting Navbox}}

Revision as of 11:07, 5 May 2021

Members

Back

void Back ();

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

Space.Host.ExecutingObject.Browser.Back()


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 ();

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

Space.Host.ExecutingObject.Browser.Forward()


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.

Space.Host.ExecutingObject.Browser.Reload()


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)

Space.Host.ExecutingObject.Browser.SetURL('https://www.youtube.com')



Properties

Networked

bool Networked { get;set; }

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

Space.Host.ExecutingObject.Browser.Networked=true


Muted

bool Muted { get;set; }

Whether this Browser Surface is muted or not.

Space.Host.ExecutingObject.Browser.Muted=true


CanGoBack

bool CanGoBack { get; }

Returns whether this Browser Surface can navigate back

CanGoBack = Space.Host.ExecutingObject.Browser.CanGoBack


CanGoForward

bool CanGoForward { get; }

Returns whether this Browser Surface can navigate forward

CanGoForward = Space.Host.ExecutingObject.Browser.CanGoForward