NCMBCallback

class NCMBCallback(passCallback: (NCMBException?, Any?) -> Unit)

Callback solving class

This class represent callback tasks which is used to be passed to asynchronous methods.

Constructors

NCMBCallback
Link copied to clipboard
fun NCMBCallback(passCallback: (NCMBException?, Any?) -> Unit)

Functions

done
Link copied to clipboard
fun done(e: NCMBException?)

This method executes passed callback functions (in general).

fun done(e: NCMBException?, obj: NCMBObject)

This method executes passed callback functions (Mainly datastore functions).

fun done(e: NCMBException?, responseScript: ByteArray)

This method executes passed callback functions (Mainly script functions).

fun done(e: NCMBException?, countNumber: Int)

This method executes passed callback functions (Mainly count data functions).

fun done(e: NCMBException?, token: String?)

This method executes passed callback functions (Mainly user login functions).

fun done(e: NCMBException?, objList: List<NCMBObject>)

This method executes passed callback functions (Mainly searching datastore functions).

fun done(e: NCMBException?, responseData: JSONObject)

This method executes passed callback functions (Mainly search data functions).

Properties

passCallback
Link copied to clipboard
val passCallback: (NCMBException?, Any?) -> Unit