NCMBInstallation

class NCMBInstallation : NCMBObject

Installation information handle class

NCMBInstallation is used to retrieve and save, update the installation data. Basic features are inherit from NCMBObject and NCMBBase

Constructors

NCMBInstallation
Link copied to clipboard
fun NCMBInstallation()

Constructor method

Types

Companion
Link copied to clipboard
object Companion

Functions

delete
Link copied to clipboard
open override fun delete()

save current NCMBObject to data store

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

Delete current NCMBObject from data store asynchronously.

fetch
Link copied to clipboard
open override fun fetch()

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

fetchInBackground
Link copied to clipboard
open override 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?
getDeviceTokenInBackground
Link copied to clipboard
fun getDeviceTokenInBackground(callback: NCMBCallback)

Get device token in background

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?
getValue
Link copied to clipboard
fun getValue(name: String?): Any?

Get custom field value

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 override fun save()

This method is not available because of In synchronous processing Acquisition of deviceToken is deprecated.

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

Save installation object in Background

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

applicationName
Link copied to clipboard
var applicationName: String?

Application name

appVersion
Link copied to clipboard
var appVersion: String?

Application Version

badge
Link copied to clipboard
var badge: Int?

Badge number (iOS)

channels
Link copied to clipboard
var channels: JSONArray?

Channels information

deviceToken
Link copied to clipboard
var deviceToken: String

Device token

deviceType
Link copied to clipboard
var deviceType: String

Device type information

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

SDK Version information

timeZone
Link copied to clipboard
var timeZone: String?

Timezone info