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)
Line 4: Line 4:
  
 
===<span id="IJavaScriptCallbackContext"></span>IJavaScriptCallbackContext <span class="SectionLink">([[IJavaScriptCallbackContext|Full Article]])</span>===
 
===<span id="IJavaScriptCallbackContext"></span>IJavaScriptCallbackContext <span class="SectionLink">([[IJavaScriptCallbackContext|Full Article]])</span>===
:* Full Article: [[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.
 
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.
  
 
===<span id="IUIScript"></span>IUIScript <span class="SectionLink">([[IUIScript|Full Article]])</span>===
 
===<span id="IUIScript"></span>IUIScript <span class="SectionLink">([[IUIScript|Full Article]])</span>===
:* Full Article: [[IUIScript]]
 
 
All Component UI Script handlers must implement this interface, provide a constructor that takes an [[IUIScriptHandle]], and should have a [[UIScriptHandlerAttribute]] applied
 
All Component UI Script handlers must implement this interface, provide a constructor that takes an [[IUIScriptHandle]], and should have a [[UIScriptHandlerAttribute]] applied
  
 
===<span id="IUIScriptHandle"></span>IUIScriptHandle <span class="SectionLink">([[IUIScriptHandle|Full Article]])</span>===
 
===<span id="IUIScriptHandle"></span>IUIScriptHandle <span class="SectionLink">([[IUIScriptHandle|Full Article]])</span>===
:* Full Article: [[IUIScriptHandle]]
 
 
Represents a Layer One UI script handle.
 
Represents a Layer One UI script handle.
  
 
===<span id="ScriptHandler"></span>ScriptHandler <span class="SectionLink">([[ScriptHandler|Full Article]])</span>===
 
===<span id="ScriptHandler"></span>ScriptHandler <span class="SectionLink">([[ScriptHandler|Full Article]])</span>===
:* Full Article: [[ScriptHandler]]
 
 
Provides a default implementation of [[IUIScript]] which you can derive from
 
Provides a default implementation of [[IUIScript]] which you can derive from
  
 
===<span id="UIScriptHandlerAttribute"></span>UIScriptHandlerAttribute <span class="SectionLink">([[UIScriptHandlerAttribute|Full Article]])</span>===
 
===<span id="UIScriptHandlerAttribute"></span>UIScriptHandlerAttribute <span class="SectionLink">([[UIScriptHandlerAttribute|Full Article]])</span>===
:* Full Article: [[UIScriptHandlerAttribute]]
 
 
Marks a class as a UI Script Handler
 
Marks a class as a UI Script Handler
  
 
__NOTOC____NOEDITSECTION__
 
__NOTOC____NOEDITSECTION__

Revision as of 18:57, 7 April 2017

UI Script Handlers

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