-
public interface OnLaunchConfiguration
-
-
Method Summary
Modifier and Type Method Description abstract StringgetBaseUrl()Base URL where the OnLaunch API is hosted at. abstract UnitsetBaseUrl(String baseUrl)Base URL where the OnLaunch API is hosted at. abstract StringgetPublicKey()Public key used to authenticate with the API abstract UnitsetPublicKey(String publicKey)Public key used to authenticate with the API abstract BooleangetShouldCheckOnInit()If set to true, OnLaunch will check for messages on initialization. abstract UnitsetShouldCheckOnInit(Boolean shouldCheckOnInit)If set to true, OnLaunch will check for messages on initialization. abstract StringgetPackageName()The package name of the app. abstract UnitsetPackageName(String packageName)The package name of the app. abstract LonggetVersionCode()The version code of the app. abstract UnitsetVersionCode(Long versionCode)The version code of the app. abstract StringgetVersionName()The version name of the app. abstract UnitsetVersionName(String versionName)The version name of the app. abstract StringgetAppStoreUrl()URL to the app store where the app can be updated. abstract UnitsetAppStoreUrl(String appStoreUrl)URL to the app store where the app can be updated. abstract BooleangetUseInAppUpdates()Set to true to use Google Play In-App Updates to check for available updates. abstract UnitsetUseInAppUpdates(Boolean useInAppUpdates)Set to true to use Google Play In-App Updates to check for available updates. abstract StringgetLocale()The locale of the app. abstract UnitsetLocale(String locale)The locale of the app. abstract StringgetLocaleLanguageCode()The language code of the locale. abstract UnitsetLocaleLanguageCode(String localeLanguageCode)The language code of the locale. abstract StringgetLocaleRegionCode()The region code of the locale. abstract UnitsetLocaleRegionCode(String localeRegionCode)The region code of the locale. -
-
Method Detail
-
getBaseUrl
abstract String getBaseUrl()
Base URL where the OnLaunch API is hosted at. Change this to point to your self-hosted instance of the OnLaunch server.
Defaults to
https://onlaunch.kula.app/api/
-
setBaseUrl
abstract Unit setBaseUrl(String baseUrl)
Base URL where the OnLaunch API is hosted at. Change this to point to your self-hosted instance of the OnLaunch server.
Defaults to
https://onlaunch.kula.app/api/
-
getPublicKey
abstract String getPublicKey()
Public key used to authenticate with the API
-
setPublicKey
abstract Unit setPublicKey(String publicKey)
Public key used to authenticate with the API
-
getShouldCheckOnInit
abstract Boolean getShouldCheckOnInit()
If set to true, OnLaunch will check for messages on initialization.
Defaults to
true
-
setShouldCheckOnInit
abstract Unit setShouldCheckOnInit(Boolean shouldCheckOnInit)
If set to true, OnLaunch will check for messages on initialization.
Defaults to
true
-
getPackageName
abstract String getPackageName()
The package name of the app. Used by server-side rule evaluation.
-
setPackageName
abstract Unit setPackageName(String packageName)
The package name of the app. Used by server-side rule evaluation.
-
getVersionCode
abstract Long getVersionCode()
The version code of the app. Used by server-side rule evaluation.
-
setVersionCode
abstract Unit setVersionCode(Long versionCode)
The version code of the app. Used by server-side rule evaluation.
-
getVersionName
abstract String getVersionName()
The version name of the app. Used by server-side rule evaluation.
-
setVersionName
abstract Unit setVersionName(String versionName)
The version name of the app. Used by server-side rule evaluation.
-
getAppStoreUrl
abstract String getAppStoreUrl()
URL to the app store where the app can be updated. Used to open the app store. The package name in the default value is NOT the
packageNameparameter, but the package name provided by the Context.Defaults to
https://play.google.com/store/apps/details?id=<PACKAGE_NAME>
-
setAppStoreUrl
abstract Unit setAppStoreUrl(String appStoreUrl)
URL to the app store where the app can be updated. Used to open the app store. The package name in the default value is NOT the
packageNameparameter, but the package name provided by the Context.Defaults to
https://play.google.com/store/apps/details?id=<PACKAGE_NAME>
-
getUseInAppUpdates
abstract Boolean getUseInAppUpdates()
Set to true to use Google Play In-App Updates to check for available updates. When using Google Play In-App Updates you have to accept the Google Play Terms of Service.
Defaults to
false
-
setUseInAppUpdates
abstract Unit setUseInAppUpdates(Boolean useInAppUpdates)
Set to true to use Google Play In-App Updates to check for available updates. When using Google Play In-App Updates you have to accept the Google Play Terms of Service.
Defaults to
false
-
setLocale
abstract Unit setLocale(String locale)
The locale of the app. Used by server-side rule evaluation.
-
getLocaleLanguageCode
abstract String getLocaleLanguageCode()
The language code of the locale. Used by server-side rule evaluation.
-
setLocaleLanguageCode
abstract Unit setLocaleLanguageCode(String localeLanguageCode)
The language code of the locale. Used by server-side rule evaluation.
-
getLocaleRegionCode
abstract String getLocaleRegionCode()
The region code of the locale. Used by server-side rule evaluation.
-
setLocaleRegionCode
abstract Unit setLocaleRegionCode(String localeRegionCode)
The region code of the locale. Used by server-side rule evaluation.
-
-
-
-