public class AppInfo
extends java.lang.Object
Constructor and Description |
---|
AppInfo() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getApplicationName(android.content.Context context)
Gets the host application name from android:name label in activity
|
static java.lang.String |
getApplicationStage(android.content.Context context)
Gets the application build stage.
|
static java.lang.String |
getApplicationVersionName(android.content.Context context)
Gets the version of the host application as defined in the host app
|
static java.lang.String |
getChatSdkName()
Gets default Chat SDK application name as defined in build.gradle in the SDK project
|
static java.lang.String |
getChatSdkVersionName()
Gets the version of the SDK as defined in build.gradle
|
public static java.lang.String getApplicationName(@Nullable android.content.Context context)
If name can no be resolved a getChatSdkName()
user will be returned.
context
- from which to get the application namepublic static java.lang.String getChatSdkName()
public static java.lang.String getApplicationVersionName(@Nullable android.content.Context context)
If name can no be resolved an empty string will be returned.
context
- from which to get the application version namepublic static java.lang.String getChatSdkVersionName()
public static java.lang.String getApplicationStage(android.content.Context context)
context
- of the application