Difference between revisions of "UI Script Handlers"

From Virtual World Web Wiki
Jump to: navigation, search
(Documentation for the UI Script Handlers class)
 
(Documentation for the UI Script Handlers class)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
== UI Script Handlers ==
+
===Remarks <nowiki>[</nowiki>[{{fullurl:UI Script Handlers Remarks|action=edit}} edit]<nowiki>]</nowiki>===
=== IJavaScriptCallbackContext ===
+
{{#ifexist:UI Script Handlers Remarks|{{:UI Script Handlers Remarks}}|}}
:* See Also: [[IJavaScriptCallbackContext]]
+
:
+
:When a message is received from a connected client UI script, this context is passed to your handler's Callback method if the reflection based proxy system isn't able to automatically map the message to one of your handler methods. It represents a deserialized JSON message with the properties of the root object exposed as a collection.
+
  
=== IUIScript ===
+
===<span id="IJavaScriptCallbackContext"></span>IJavaScriptCallbackContext <span class="SectionLink">([[IJavaScriptCallbackContext|Full Article]])</span>===
:* See Also: [[IUIScript]]
+
When a message is received from a connected client UI script, this context is passed to your handler's Callback method if the reflection based proxy system isn't able to automatically map the message to one of your handler methods. It represents a deserialized JSON message with the properties of the root object exposed as a collection.
:
+
:All Component UI Script handlers must implement this interface, provide a constructor that takes an [[IUIScriptHandle]], and should have a [[UIScriptHandlerAttribute]] applied
+
  
=== IUIScriptHandle ===
+
===<span id="IUIScript"></span>IUIScript <span class="SectionLink">([[IUIScript|Full Article]])</span>===
:* See Also: [[IUIScriptHandle]]
+
All Component UI Script handlers must implement this interface, provide a constructor that takes an [[IUIScriptHandle]], and should have a [[UIScriptHandlerAttribute]] applied
:
+
:Represents a Layer One UI script handle.
+
  
=== ScriptHandler ===
+
===<span id="IUIScriptHandle"></span>IUIScriptHandle <span class="SectionLink">([[IUIScriptHandle|Full Article]])</span>===
:* See Also: [[ScriptHandler]]
+
Represents a Layer One UI script handle.
:
+
:Provides a default implementation of [[IUIScript]] which you can derive from
+
  
=== UIScriptHandlerAttribute ===
+
===<span id="ScriptHandler"></span>ScriptHandler <span class="SectionLink">([[ScriptHandler|Full Article]])</span>===
:* See Also: [[UIScriptHandlerAttribute]]
+
Provides a default implementation of [[IUIScript]] which you can derive from
:
+
 
:Marks a class as a UI Script Handler
+
===<span id="UIScriptHandlerAttribute"></span>UIScriptHandlerAttribute <span class="SectionLink">([[UIScriptHandlerAttribute|Full Article]])</span>===
 +
Marks a class as a UI Script Handler
 +
 
 +
__NOTOC____NOEDITSECTION__

Latest revision as of 21:05, 12 April 2017

Remarks [edit]

Some types to help implement UI script callback handlers. These handlers form the server side of UI Scripts.

IJavaScriptCallbackContext (Full Article)

When a message is received from a connected client UI script, this context is passed to your handler's Callback method if the reflection based proxy system isn't able to automatically map the message to one of your handler methods. It represents a deserialized JSON message with the properties of the root object exposed as a collection.

IUIScript (Full Article)

All Component UI Script handlers must implement this interface, provide a constructor that takes an IUIScriptHandle, and should have a UIScriptHandlerAttribute applied

IUIScriptHandle (Full Article)

Represents a Layer One UI script handle.

ScriptHandler (Full Article)

Provides a default implementation of IUIScript which you can derive from

UIScriptHandlerAttribute (Full Article)

Marks a class as a UI Script Handler