NCMBUser

open class NCMBUser : NCMBObject

User information handle class

NCMBUser class is used to retrieve and save, update the installation user data, also to sign up and login/logout the user. Basic features are inherit from NCMBObject and NCMBBase

Constructors

NCMBUser
Link copied to clipboard
fun NCMBUser()

Constructor with class name

NCMBUser
Link copied to clipboard
fun NCMBUser(params: JSONObject)

Constructor with class name

Types

Companion
Link copied to clipboard
object Companion

Functions

clearCachedCurrentUser
Link copied to clipboard
fun clearCachedCurrentUser()

clear CachedCurrentUser if exist

delete
Link copied to clipboard
open override fun delete()

Delete current NCMBObject from 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?
getCurrentUser
Link copied to clipboard
fun getCurrentUser(): NCMBUser

Get current user object

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

login
Link copied to clipboard
open fun login(): NCMBUser
open fun login(loginUserName: String, loginPassword: String): NCMBUser

login with username and password

loginInBackground
Link copied to clipboard
fun loginInBackground(loginCallback: NCMBCallback)
fun loginInBackground(userName: String, password: String, loginCallback: NCMBCallback)

Login with username and password in background

logout
Link copied to clipboard
open fun logout()

logout from NIFCLOUD mobile backend

logoutInBackground
Link copied to clipboard
open fun logoutInBackground(logoutCallback: NCMBCallback)

logout from NIFCLOUD mobile backend

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()

save current NCMBUser to user management

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)
signUp
Link copied to clipboard
open fun signUp(): NCMBUser
open fun signUp(signUpUserName: String, signUpPassword: String): NCMBUser

sign up to NIFCLOUD mobile backend

signUpInBackground
Link copied to clipboard
open fun signUpInBackground(signUpCallback: NCMBCallback)
open fun signUpInBackground(signUpUserName: String, signUpPassword: String, signUpCallback: NCMBCallback)

sign up to NIFCLOUD mobile backend

Properties

ACCESS_CONTROL_LIST
Link copied to clipboard
val ACCESS_CONTROL_LIST: String

ACL

ignoreKeys
Link copied to clipboard
val ignoreKeys: List<String>
keys
Link copied to clipboard
var keys: HashSet<String>
mailAddress
Link copied to clipboard
var mailAddress: String

Mail address string

otherFields
Link copied to clipboard
var otherFields: JSONObject

Get query

password
Link copied to clipboard
var password: String

password string

sessionToken
Link copied to clipboard
var sessionToken: String?

session token string

USER_FILENAME
Link copied to clipboard
val USER_FILENAME: String

currenUser fileName

userName
Link copied to clipboard
var userName: String

user name string