public class AppProps extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getAppApiKey()
Gets the value of "appkey" in the fh.properties file.
|
String |
getAppId()
Gets the value of "appid" in the fh.properties file.
|
String |
getAppMode()
Deprecated.
|
String |
getConnectionTag()
Gets the value of "connectiontag" in the fh.properties file.
|
String |
getHost()
Gets the value of "host" in the fh.properties file.
|
static AppProps |
getInstance()
A method to retrieve the singleton instance of AppProps.
|
String |
getProjectId()
Gets the value of "projectid" in the fh.properties file.
|
String |
getPushSecret()
Gets the value of the variant secret in the fhconfig.properties file.
|
String |
getPushSenderId()
Gets the value of the Sender ID in the fhconfig.properties file.
|
String |
getPushServerUrl()
Gets the value of the UnifiedPush server URL in the fhconfig.properties file.
|
String |
getPushVariant()
Gets the value of the UnifiedPush variant in the fhconfig.properties file.
|
boolean |
isLocalDevelopment()
Return if the app is running in local dev mode
(i.e., if fhconfig.local.properties file is found in the assets directory).
|
static AppProps |
load(android.content.Context context)
Loads the fh.properties file.
|
public String getHost()
public String getProjectId()
public String getAppId()
public String getAppApiKey()
public String getConnectionTag()
@Deprecated public String getAppMode()
public boolean isLocalDevelopment()
public String getPushServerUrl()
public String getPushSenderId()
public String getPushVariant()
public String getPushSecret()
public static AppProps getInstance()
IllegalStateException - if the application is not initialized.public static AppProps load(android.content.Context context) throws IOException
context - Application contextIOExceptionCopyright © 2016 Red Hat. All rights reserved.