Package 

Interface OnLaunchConfiguration

    • 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

      • 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 packageName parameter, 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 packageName parameter, 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

      • getLocale

         abstract String getLocale()

        The locale of the app. Used by server-side rule evaluation.

      • setLocale

         abstract Unit setLocale(String locale)

        The locale of the app. 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.