C# Class Meteor.Method

Methods are remote functions that Meteor clients can invoke. Use Method.Call to call a method by name with the specified arguments. Returns a Method object. You must call yield return (Coroutine)instance; inside an IEnumerator/Coroutine function to actually execute the call. You can also call ExecuteAsync on the method instance to execute asynchronously outside of an IEnumerator. The name of the method to call corresponds to the key in your Meteor.Methods({key: function value()}) statement.
Inheritance: Meteor.Internal.IMethod
显示文件 Open project: hiddenswitch/Meteor-Unity

Protected Properties

Property Type Description
complete bool

Public Methods

Method Description
Call ( string name ) : Method

Calls a method by name with the specified arguments. Returns a Method object. You must call yield return (Coroutine)instance; inside an IEnumerator/Coroutine function to actually execute the call. You can also call ExecuteAsync on the method instance to execute asynchronously outside of an IEnumerator.

Callback ( Error error, object response ) : void

Used by LiveData to signal that a response has arrived for this method call.

ExecuteAsync ( MethodHandler callback = null ) : Coroutine

Executes the method immediately, using a coroutine host global to your Unity game.

Method ( ) : System

Protected Methods

Method Description
Execute ( ) : IEnumerator
completed ( Error error, object response ) : void

Method Details

Call() public static method

Calls a method by name with the specified arguments. Returns a Method object. You must call yield return (Coroutine)instance; inside an IEnumerator/Coroutine function to actually execute the call. You can also call ExecuteAsync on the method instance to execute asynchronously outside of an IEnumerator.
public static Call ( string name ) : Method
name string Name of the method to call. Corresponds to the key in your Meteor.Methods({key: function value()}) statement.
return Method

Callback() public method

Used by LiveData to signal that a response has arrived for this method call.
public Callback ( Error error, object response ) : void
error Error Error.
response object Response.
return void

Execute() protected method

protected Execute ( ) : IEnumerator
return IEnumerator

ExecuteAsync() public method

Executes the method immediately, using a coroutine host global to your Unity game.
public ExecuteAsync ( MethodHandler callback = null ) : Coroutine
callback MethodHandler An optional callback when this method returns (which may never happen).
return UnityEngine.Coroutine

Method() public method

public Method ( ) : System
return System

completed() protected method

protected completed ( Error error, object response ) : void
error Error
response object
return void

Property Details

complete protected_oe property

protected bool complete
return bool