JSFunction ClassAwesomium.NET 1.7.6Awesomium.NET
A JSObject that represents a JavaScript Function object.
Inheritance Hierarchy

SystemObject
  Awesomium.CoreViewModel
    Awesomium.CoreNativeViewModel
      Awesomium.CoreJSObject
        Awesomium.CoreJSFunction

Namespace: Awesomium.Core
Assembly: Awesomium.Core (in Awesomium.Core.dll) Version: 1.7.6.0
Syntax

public class JSFunction : JSObject

The JSFunction type exposes the following members.

Constructors

  NameDescription
Public methodJSFunction(IWebView, JavascriptAsyncMethodHandler)
Creates a remote anonymous JavaScript Function object bound to a managed handler, that is called asynchronously.
Public methodJSFunction(IWebView, JavascriptMethodHandler)
Creates a remote anonymous JavaScript Function object bound to a managed handler, that is called synchronously.
Public methodJSFunction(IWebView, JSFunctionAsyncHandler)
Creates a remote anonymous JavaScript Function object bound to a managed handler, that is called asynchronously.
Public methodJSFunction(IWebView, JSFunctionHandler)
Creates a remote anonymous JavaScript Function object bound to a managed handler, that is called synchronously.
Top
Methods

  NameDescription
Public methodApply
Calls the function with a given this value and arguments provided as an array.
Public methodApplyAsync
Calls the function with a given this value and arguments, asynchronously.
Public methodCode exampleBind(JavascriptMethodHandler)
Creates a custom method that returns a value, and binds it to a JavascriptMethodHandler delegate.
(Inherited from JSObject.)
Public methodCode exampleBind(JSFunctionHandler)
Creates a custom method that returns a value, and binds it to a JSFunctionHandler delegate.
(Inherited from JSObject.)
Public methodCode exampleBind(String, JavascriptMethodHandler)
Creates a custom method that returns a value, and binds it to a JavascriptMethodHandler delegate.
(Inherited from JSObject.)
Public methodCode exampleBind(String, JSFunctionHandler)
Creates a custom method that returns a value, and binds it to a JSFunctionHandler delegate.
(Inherited from JSObject.)
Public methodBind(JSObject, JSValue)
Creates a new function that, when called, has its this keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function is called.
Public methodBindAsync(JavascriptAsyncMethodHandler)
Creates a custom method that is called asynchronously, and binds it to a JavascriptAsyncMethodHandler delegate.
(Inherited from JSObject.)
Public methodBindAsync(JSFunctionAsyncHandler)
Creates a custom method that is called asynchronously, and binds it to a JSFunctionAsyncHandler delegate.
(Inherited from JSObject.)
Public methodBindAsync(String, JavascriptAsyncMethodHandler)
Creates a custom method that is called asynchronously, and binds it to a JavascriptAsyncMethodHandler delegate.
(Inherited from JSObject.)
Public methodBindAsync(String, JSFunctionAsyncHandler)
Creates a custom method that is called asynchronously, and binds it to a JSFunctionAsyncHandler delegate.
(Inherited from JSObject.)
Public methodCall
Calls the function with a given this value and arguments provided individually.
Public methodCallAsync
Calls the function with a given this value and arguments, asynchronously.
Public methodClone
Creates a copy of this JSObject instance.
(Inherited from JSObject.)
Public methodDispose
Destroys and releases this JSObject instance.
(Inherited from JSObject.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from JSObject.)
Protected methodFinalize (Inherited from JSObject.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from JSObject.)
Public methodGetLastError
Gets the latest error that may have occurred.
(Inherited from JSObject.)
Public methodGetMethodNames
Gets an array of names of this object's methods.
(Inherited from JSObject.)
Public methodGetPropertyDescriptor
Gets a JSPropertyDescriptor instance representing the property descriptor of a JavaScript object's property.
(Inherited from JSObject.)
Public methodCode exampleGetPropertyNames
Gets an array of names of this object's properties.
(Inherited from JSObject.)
Public methodCode exampleHasMethod
Gets if this object has a method with the specified name.
(Inherited from JSObject.)
Public methodCode exampleHasProperty
Gets if this object has a property with the specified name.
(Inherited from JSObject.)
Public methodInvoke
Invokes a method with a set of arguments and returns a result.
(Inherited from JSObject.)
Public methodInvokeAsync
Invoke a method asynchronously with a set of arguments, ignoring the result.
(Inherited from JSObject.)
Protected methodOnDispose
Called when an instance of this class is being disposed.
(Inherited from JSObject.)
Protected methodOnPropertyChanged
Triggers the PropertyChanged event.
(Inherited from ViewModel.)
Protected methodRaisePropertyChanged
Helper method to raise the PropertyChanged event.
(Inherited from ViewModel.)
Public methodRemoveProperty
Removes the property with the specified name, if any.
(Inherited from JSObject.)
Public methodToString
Gets the textual representation of the object.
(Inherited from JSObject.)
Top
Properties

  NameDescription
Public propertyGlobalObjectName
Gets the name of the remote global object.

Only valid if this is a global JavaScript object created with CreateGlobalJavascriptObject(String) (see Type).

(Inherited from JSObject.)
Public propertyIsDisposed
Gets if this JSObject instance has been disposed.
(Inherited from JSObject.)
Public propertyIsUndefined
Gets if this is an invalid object, equivalent to Undefined.
(Inherited from JSObject.)
Public propertyName
Gets the name of the function, or an empty string if the function is anonymous.
Public propertyOwner
Get this object's owning IWebView instance.
(Inherited from JSObject.)
Public propertyCode examplePropertyString
Gets or sets the value of the specified named property.
(Inherited from JSObject.)
Public propertyPropertyString, JSPropertyDescriptor
Gets or sets the value of the specified named data property.
(Inherited from JSObject.)
Public propertyCode examplePropertyString, Boolean
Gets or sets the value of the specified named property.
(Inherited from JSObject.)
Public propertyPropertyString, Boolean, JSPropertyDescriptor
Gets or sets the value of the specified named data property.
(Inherited from JSObject.)
Public propertyRemoteId
Get the remote identifier for this JSObject instance (will be 0 if this object is of type Local).
(Inherited from JSObject.)
Public propertyType
Gets this object's type.
(Inherited from JSObject.)
Top
Events

  NameDescription
Public eventDisposed
Occurs when an instance of this class has been disposed.
(Inherited from NativeViewModel.)
Public eventPropertyChanged
Occurs when the value of a property of this class, has changed.
(Inherited from ViewModel.)
Top
See Also

Reference