CloudVariables

The CloudVariables Service provides support for storing variables on the cloud. Variables can be optionally password-protected or stored only for the current user.

Cloud variables that are inactive (no reads or writes) for 30 days are subject to deletion.

RPCS

CloudVariables.deleteUserVariable(name: String)

Delete the user variable for the current user.

Arguments:

  • name: String info - Variable name
CloudVariables.deleteVariable(name: String, password: String?)

Delete a given cloud variable

Arguments:

  • name: String info - Variable to delete
  • password: String? info - Password (if password-protected)
CloudVariables.getUserVariable(name: String)

Get the value of a variable for the current user.

Arguments:

  • name: String info - Variable name

Returns: Any info - the stored value

CloudVariables.getVariable(name: String, password: String?)

Get the value of a cloud variable

Arguments:

  • name: String info - Variable name
  • password: String? info - Password (if password-protected)

Returns: Any info - the stored value

CloudVariables.lockVariable(name: String, password: String?)

Lock a given cloud variable.

A locked variable cannot be changed by anyone other than the person who locked it. A variable cannot be locked for more than 5 seconds.

Arguments:

  • name: String info - Variable to lock
  • password: String? info - Password (if password-protected)
CloudVariables.setUserVariable(name: String, value: Any)

Set the value of the user cloud variable for the current user.

Arguments:

  • name: String info - Variable name
  • value: Any info - Value to store in variable
CloudVariables.setVariable(name: String, value: Any, password: String?)

Set a cloud variable. If a password is provided on creation, the variable will be password-protected.

Arguments:

  • name: String info - Variable name
  • value: Any info - Value to store in variable
  • password: String? info - Password (if password-protected)
CloudVariables.unlockVariable(name: String, password: String?)

Unlock a given cloud variable.

A locked variable cannot be changed by anyone other than the person who locked it. A variable cannot be locked for more than 5 minutes.

Arguments:

  • name: String info - Variable to delete
  • password: String? info - Password (if password-protected)