Package com.cometchat.pro.core
Class AppSettings
- java.lang.Object
-
- com.cometchat.pro.core.AppSettings
-
- All Implemented Interfaces:
java.io.Serializable
public class AppSettings extends java.lang.Object implements java.io.Serializable
The AppSettings class helps the developers to provide the required details and set various parameters based on which the SDK is supposed to function.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AppSettings.AppSettingsBuilder
static interface
AppSettings.SubscriptionType
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SUBSCRIPTION_TYPE_ALL_USERS
static java.lang.String
SUBSCRIPTION_TYPE_FRIENDS
static java.lang.String
SUBSCRIPTION_TYPE_NONE
static java.lang.String
SUBSCRIPTION_TYPE_ROLES
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getRegion()
method to get the region specifiedjava.util.List<java.lang.String>
getRoles()
method to get the list of roles specified for presence subscriptionjava.lang.String
getSubscriptionType()
boolean
isAutoJoinEnabled()
method to get if aut join groups settings is turned onboolean
shouldAutoEstablishSocketConnection()
method to get if the web socket connection is established automatically when init is called
-
-
-
Field Detail
-
SUBSCRIPTION_TYPE_NONE
public static final java.lang.String SUBSCRIPTION_TYPE_NONE
- See Also:
- Constant Field Values
-
SUBSCRIPTION_TYPE_ALL_USERS
public static final java.lang.String SUBSCRIPTION_TYPE_ALL_USERS
- See Also:
- Constant Field Values
-
SUBSCRIPTION_TYPE_ROLES
public static final java.lang.String SUBSCRIPTION_TYPE_ROLES
- See Also:
- Constant Field Values
-
SUBSCRIPTION_TYPE_FRIENDS
public static final java.lang.String SUBSCRIPTION_TYPE_FRIENDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSubscriptionType
public java.lang.String getSubscriptionType()
-
getRegion
public java.lang.String getRegion()
method to get the region specified- Returns:
- AppSettingsBuilder object when
is called
-
getRoles
public java.util.List<java.lang.String> getRoles()
method to get the list of roles specified for presence subscription- Returns:
- AppSettingsBuilder object when
is called
-
isAutoJoinEnabled
public boolean isAutoJoinEnabled()
method to get if aut join groups settings is turned on- Returns:
- AppSettingsBuilder object when
is called
-
shouldAutoEstablishSocketConnection
public boolean shouldAutoEstablishSocketConnection()
method to get if the web socket connection is established automatically when init is called- Returns:
- AppSettingsBuilder object when
is called
-
-