Throttles network save calls.
Initializes a new instance of Remote.
Returns whether the remote has been initialized with Firebase credentials.
Returns true if has Firebase credentials.
Whether the remote controller is enabled.
Returns the remote controller ID.
The remote controller ID.
Returns the remote controller URL.
Example URL:
"https://
The remote controller URL.
Provides ability for Remixer HTML iFrame to access this instance of Remote.
The attached instance of Remote.
Performs the saving of the variable.
When saving to remote, we first stop observing updates then restart after the update. This prevents a cyclical error of network and local changes.
The variable to save.
Returns a database reference to the remixer instance.
The firebase database reference.
Generates a unique id consisting of 8 chars.
Returns the new remote id.
Retrieves a preference from local storage.
The key of the preference to retrieve.
Returns the preference object.
Saves a preference to local storage.
The preference key.
The preference value.
Starts a listener for any changes received for a variable.
The variable key.
Start sharing the variable updates to the remote controller.
Stops all change listeners for a variable.
The optional variable key.
Stops sharing the variable updates to the remote controller.
Initializes the remote controller.
A call to this method will allow you to share your Variables to the remote controller being hosted as per your firebase configuration.
The firebase credentials.
Removes all variables remotely.
Saves a variable remotely.
A control's UI allows very fast updating of the selected value. For example the quick dragging of a slider, or keyboard input of a textbox. These selected value updates should be throttled since we only care about the final selected value and not intermittent changes.
However adding a new Variable with params should not be throttled in order to capture many Variables be adding in quick succession.
Defaults to throttle for saves to prevent network jank.
The variable to save.
Generated using TypeDoc
The Remote class is a singleton class that provides the ability to store and retrieve Variables on a remote controller. It also provides listeners for Variable updates done remotely.