public final class QBSettings
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
QBSettings.AutoUpdateMode |
Modifier and Type | Method and Description |
---|---|
void |
checkInit()
Checks the QuickBlox settings and throws an exception if something wrong
|
QBSettings |
fastConfigInit(java.lang.String applicationId,
java.lang.String authorizationKey,
java.lang.String authorizationSecret)
Deprecated.
As of release 2.4, Use 'init' then.
|
java.lang.String |
getAccountKey()
Gets the account key
|
java.lang.String |
getApiEndpoint()
Get the API server endpoint
|
java.lang.String |
getApiVersion()
Get the current REST API version
|
java.lang.String |
getApplicationId()
Get the application ID
|
java.lang.String |
getAuthorizationKey()
Get the authorization key
|
java.lang.String |
getAuthorizationSecret()
Get the authorization secret
|
java.lang.String |
getChatDefaultResource()
Retrieves the chat default resource
|
java.lang.String |
getChatEndpoint()
Get the chat server endpoint
|
java.lang.String |
getChatServerDomain()
Deprecated.
As of release 2.4, Use 'getChatEndpoint' then.
|
java.lang.String |
getContentBucketName()
Deprecated.
As of release 2.4, don't need to use this method anymore.
|
Context |
getContext()
Get the context
|
static QBSettings |
getInstance()
Obtains QBSettings singleton instance
|
LogLevel |
getLogLevel()
Get the log level
|
java.lang.String |
getServerApiDomain()
Deprecated.
As of release 2.4, Use 'getApiEndpoint' then.
|
StoringMechanism |
getStoringMehanism() |
SubscribePushStrategy |
getSubscribePushStrategy()
Get the subscribePushStrategy
|
QBSettings.AutoUpdateMode |
getUpdateMode()
Gets the update mode of services endpoints
|
java.lang.String |
getVersionName()
Get the current SDK version
|
ServiceZone |
getZone()
Gets the current service zone
|
QBSettings |
init(Context context,
java.lang.String applicationId,
java.lang.String authorizationKey,
java.lang.String authorizationSecret)
Init the QuickBlox settings
|
boolean |
isAutoCreateSession()
Get the autoCreateSession
|
boolean |
isEnablePushNotification()
Get the enablePushNotification
|
QBSettings |
setAccountKey(java.lang.String accountKey)
Sets the account key
|
QBSettings |
setApiVersion(java.lang.String restApiVersion)
Sets the current REST API version
|
QBSettings |
setApplicationId(java.lang.String applicationId)
Deprecated.
As of release 2.4, Use 'init' then.
|
QBSettings |
setAuthorizationKey(java.lang.String authKey)
Deprecated.
As of release 2.4, Use 'init' then.
|
QBSettings |
setAuthorizationSecret(java.lang.String authSecret)
Deprecated.
As of release 2.4, Use 'init' then.
|
void |
setAutoCreateSession(boolean autoCreateSession)
Sets the autoCreateSession
|
QBSettings |
setChatServerDomain(java.lang.String chatServerDomain)
Deprecated.
As of release 2.4, Use 'setEndpoints' then.
|
QBSettings |
setContentBucketName(java.lang.String contentBucketDomain)
Deprecated.
As of release 2.4, don't need to use this method anymore.
|
void |
setEnablePushNotification(boolean enablePushNotification)
Sets the enablePushNotification
|
QBSettings |
setEndpoints(java.lang.String apiEndpoint,
java.lang.String chatEndpoint,
ServiceZone zone)
Sets the current server API and Chat domains for zone
|
QBSettings |
setLogLevel(LogLevel logLevel)
Sets the log level
|
QBSettings |
setServerApiDomain(java.lang.String serverDomain)
Deprecated.
As of release 2.4, Use 'setEndpoints' then.
|
void |
setStoringMehanism(StoringMechanism mechanism) |
void |
setSubscribePushStrategy(SubscribePushStrategy subscribePushStrategy)
Set the subscribePushStrategy
|
QBSettings |
setZone(ServiceZone zone)
Allow to change service zone to work with Development and Staging environments
|
java.lang.String |
toString() |
public static QBSettings getInstance()
@Deprecated public QBSettings fastConfigInit(java.lang.String applicationId, java.lang.String authorizationKey, java.lang.String authorizationSecret)
public QBSettings init(Context context, java.lang.String applicationId, java.lang.String authorizationKey, java.lang.String authorizationSecret)
applicationId
- the application IdauthorizationKey
- the authorization keyauthorizationSecret
- the authorization secretpublic Context getContext()
public java.lang.String getServerApiDomain()
public java.lang.String getApiEndpoint()
@Deprecated public QBSettings setServerApiDomain(java.lang.String serverDomain)
@Deprecated public java.lang.String getChatServerDomain()
public java.lang.String getChatEndpoint()
@Deprecated public QBSettings setChatServerDomain(java.lang.String chatServerDomain)
public QBSettings setEndpoints(java.lang.String apiEndpoint, java.lang.String chatEndpoint, ServiceZone zone)
apiEndpoint
- the API server domain to setchatEndpoint
- the Chat server API domain to setzone
- the server API domain to setpublic QBSettings setZone(ServiceZone zone)
zone
- Service zone. One from ZoneType. Default - ZoneType.AUTOMATICpublic ServiceZone getZone()
@Deprecated public java.lang.String getContentBucketName()
@Deprecated public QBSettings setContentBucketName(java.lang.String contentBucketDomain)
public java.lang.String getAuthorizationKey()
@Deprecated public QBSettings setAuthorizationKey(java.lang.String authKey)
public java.lang.String getApplicationId()
@Deprecated public QBSettings setApplicationId(java.lang.String applicationId)
public java.lang.String getAuthorizationSecret()
@Deprecated public QBSettings setAuthorizationSecret(java.lang.String authSecret)
public LogLevel getLogLevel()
public QBSettings setLogLevel(LogLevel logLevel)
logLevel
- the log level to setpublic boolean isAutoCreateSession()
public void setAutoCreateSession(boolean autoCreateSession)
autoCreateSession
- the autoCreateSession to setpublic SubscribePushStrategy getSubscribePushStrategy()
public void setSubscribePushStrategy(SubscribePushStrategy subscribePushStrategy)
subscribePushStrategy
- to subscribe Pushes to setpublic boolean isEnablePushNotification()
public void setEnablePushNotification(boolean enablePushNotification)
enablePushNotification
- to show Push to setpublic void setStoringMehanism(StoringMechanism mechanism)
public StoringMechanism getStoringMehanism()
public java.lang.String getApiVersion()
public QBSettings setApiVersion(java.lang.String restApiVersion)
restApiVersion
- the server API domain to setpublic java.lang.String getVersionName()
public java.lang.String getAccountKey()
public QBSettings setAccountKey(java.lang.String accountKey)
accountKey
- the account key to setpublic void checkInit()
public java.lang.String getChatDefaultResource()
public java.lang.String toString()
toString
in class java.lang.Object
public QBSettings.AutoUpdateMode getUpdateMode()