NCMBObject

open class NCMBObject : NCMBBase

Datastore handling class.

Main class of datastore features, do save, search, update data in datastor. Inherits from NCMBBase.

Constructors

NCMBObject
Link copied to clipboard
fun NCMBObject(className: String)

Constructor with class name

NCMBObject
Link copied to clipboard
fun NCMBObject(className: String, params: JSONObject)

Constructor with class name

Functions

delete
Link copied to clipboard
open fun delete()

Delete current NCMBObject from data store.

deleteInBackground
Link copied to clipboard
open fun deleteInBackground(deleteCallback: NCMBCallback)

Delete current NCMBObject from data store asynchronously.

fetch
Link copied to clipboard
open fun fetch()

Fetch current NCMBObject data from data store. Fetched result is reflect to this instance of object.

fetchInBackground
Link copied to clipboard
open fun fetchInBackground(fetchCallback: NCMBCallback)

Fetch current NCMBObject data from data store asynchronously.

get
Link copied to clipboard
fun get(key: String): Any?

get any type value to given key

getAcl
Link copied to clipboard
fun getAcl(): NCMBAcl
getArray
Link copied to clipboard
fun getArray(key: String, value: JSONArray? = null): JSONArray?

get JSONArray value from given key

getBoolean
Link copied to clipboard
fun getBoolean(key: String, value: Boolean? = null): Boolean?

get boolean value from given key

getCreateDate
Link copied to clipboard
fun getCreateDate(): Date?
getDate
Link copied to clipboard
fun getDate(key: String, value: Date? = null): Date?
getDouble
Link copied to clipboard
fun getDouble(key: String, value: Double? = null): Double?

get double value from given key

getGeo
Link copied to clipboard
fun getGeo(key: String): NCMBGeoPoint

get NCMBGeoPoint value from given key

getInt
Link copied to clipboard
fun getInt(key: String, value: Int? = null): Int?

get int value from given key

getJson
Link copied to clipboard
fun getJson(key: String, value: JSONObject? = null): JSONObject?

get JSONObject value from given key

getObjectId
Link copied to clipboard
fun getObjectId(): String?
getString
Link copied to clipboard
open fun getString(key: String, value: String? = null): String?

get string value from given key

getUpdateDate
Link copied to clipboard
fun getUpdateDate(): Date?
isContainsKey
Link copied to clipboard
fun isContainsKey(key: String?): Boolean

Check key is in keys

put
Link copied to clipboard
fun put(key: String, value: Any)

put any type value to given key

save
Link copied to clipboard
open fun save()

Save current NCMBObject to data store. Saved result is reflect to this instance of object.

saveInBackground
Link copied to clipboard
open fun saveInBackground(saveCallback: NCMBCallback)

Save current NCMBObject to data store asynchronously

setAcl
Link copied to clipboard
fun setAcl(acl: NCMBAcl)
setCreateDate
Link copied to clipboard
open fun setCreateDate(createDate: Date)
setObjectId
Link copied to clipboard
fun setObjectId(objectId: String)

Properties

ACCESS_CONTROL_LIST
Link copied to clipboard
val ACCESS_CONTROL_LIST: String

ACL

keys
Link copied to clipboard
var keys: HashSet<String>

Inheritors

NCMBFile
Link copied to clipboard
NCMBInstallation
Link copied to clipboard
NCMBPush
Link copied to clipboard
NCMBUser
Link copied to clipboard