Settings
This is companion object for NCMB class.
This companion object contains main Settings for Kotlin SDK.
Functions
get Api Base Url
Link copied to clipboard
This method is to get API BASE URL.
get Application Key
Link copied to clipboard
This method is to get set application key.
get Client Key
Link copied to clipboard
This method is to get set client key.
get Current Context
Link copied to clipboard
This method is to get Current context
get Session Token
Link copied to clipboard
This method is to get current sessionToken.
get Time Out
Link copied to clipboard
This method is to get API TIMEOUT.
initialize
Link copied to clipboard
fun initialize(context: Context, applicationKey: String, clientKey: String, domainUrl: String = DEFAULT_DOMAIN_URL, apiVersion: String = DEFAULT_API_VERSION, scriptDomainUrl: String = DEFAULT_SCRIPT_DOMAIN_URL, scriptApiVersion: String = DEFAULT_SCRIPT_API_VERSION)
Content copied to clipboard
SDK initialize method. Which set Application Key, Client Key to connect to NCMB server.
initialize Push
Link copied to clipboard
SDK initialize method to use push. This method do get device token and register to NCMB server for the first time. For second times or more to be executed, it will retrieve the device token and update registered installation (which represents by currentInstallation)
set Time Out
Link copied to clipboard
This method is to set API TIMEOUT.
Properties
API_BASE_URL
Link copied to clipboard
APPLICATION_KEY
Link copied to clipboard
CLIENT_KEY
Link copied to clipboard
CURRENT_CONTEXT
Link copied to clipboard
DEFAULT_API_TIMEOUT
Link copied to clipboard
DEFAULT_API_VERSION
Link copied to clipboard
DEFAULT_DOMAIN_URL
Link copied to clipboard
DEFAULT_SCRIPT_API_VERSION
Link copied to clipboard
DEFAULT_SCRIPT_DOMAIN_URL
Link copied to clipboard
METADATA_PREFIX
Link copied to clipboard
OAUTH_ANONYMOUS
Link copied to clipboard
OAUTH_FACEBOOK
Link copied to clipboard
OAUTH_GOOGLE
Link copied to clipboard
OAUTH_TWITTER
Link copied to clipboard
SCRIPT_API_BASE_URL
Link copied to clipboard
SDK_VERSION
Link copied to clipboard
SESSION_TOKEN
Link copied to clipboard