JS API T FB.Waitable
From Facebook Developer Wiki
Contents |
class public FB.Waitable
Abstract representation of a class designed to
Base Class
Follow the base class link to learn inherited methods and properties
Derived Classes
Constructor
family FB.Waitable ()
Description
Public Methods
- public void resetChange ()
- Remove all event subscribers that are waiting for Change event, including those waiting for WaitUntilReady()
- public void waitForCondition (ConditionCallback callback)
- Watch for changes in ready state and result until condition is satisfied.
- public void waitForValue (object expectedValue, Callback callback)
- Wait until result is ready and equal to expectedValue
- public void waitUntilReady (CallbackWithObject callback)
- If we don't need to wait, execute the callback, otherwise register it to an event that will fire once the necessary result is computed and ready.
Properties
public isReady
Determine whether this object is done waiting.
Getter
public bool get_isReady()
Fields
- public object result
- The actual result returned from server.
Events
public changed
Event to which functions should be registered in order to execute upon readiness.
Adder
public void add_changed( OnWaitableReady eventHandler)
Remover
public void remove_changed( OnWaitableReady eventHandler)
Back to namespace FB
