NCMBScript

class NCMBScript

NCMBScript is used to script.

Constructors

NCMBScript
Link copied to clipboard
fun NCMBScript(scriptName: String, method: NCMBScript.MethodType)

Create NCMBScript instance with specified script name and request method

Types

MethodType
Link copied to clipboard
enum MethodType : Enum<NCMBScript.MethodType>

HTTP method types

Functions

execute
Link copied to clipboard
fun execute(scriptHeader: HashMap<String, String> = HashMap<String, String>(), scriptBody: JSONObject = JSONObject(), scriptQuery: JSONObject = JSONObject()): ByteArray?

//This method is not available yet, use executeInBackground insteads. Execute the script with request parameters

executeInBackground
Link copied to clipboard
fun executeInBackground(scriptHeader: HashMap<String, String> = HashMap<String, String>(), scriptBody: JSONObject = JSONObject(), scriptQuery: JSONObject = JSONObject(), callback: NCMBCallback)

Execute the script asynchronously with request parameters

Properties

mMethod
Link copied to clipboard
var mMethod: String
mMethodType
Link copied to clipboard
var mMethodType: NCMBScript.MethodType
mScriptName
Link copied to clipboard
var mScriptName: String