Class HybridOptions

  • All Implemented Interfaces:
    com.dynatrace.tools.android.api.HybridOptions, Serializable

    public class HybridOptions
    extends Object
    implements Serializable, com.dynatrace.tools.android.api.HybridOptions
    DSL object for configuring hybrid web view objects
    See Also:
    Serialized Form
    • Constructor Detail

      • HybridOptions

        public HybridOptions()
    • Method Detail

      • enabled

        public void enabled​(boolean enabled)
        Specifies if the hybrid feature is enabled

        The default value is false.

        Parameters:
        enabled - true, if the hybrid feature is enabled
      • domains

        public void domains​(String domain)
        Specifies instrumented domains used by the web part of your hybrid application

        For hybrid applications using the JavaScript library, cookies need to be set for each instrumented domain or server the application communicates with. You can specify domains, host or IP addresses. Domains or sub-domains must start with a dot.

        Parameters:
        domain - a domain that should be instrumented
      • domains

        public void domains​(String... domains)
        Specifies instrumented domains used by the web part of your hybrid application

        For hybrid applications using the JavaScript library, cookies need to be set for each instrumented domain or server the application communicates with. You can specify domains, host or IP addresses. Domains or sub-domains must start with a dot.

        Parameters:
        domains - domains that should be instrumented
      • httpsDomains

        public void httpsDomains​(String httpsDomain)
        Specifies instrumented https domains used by the web part of your hybrid application

        For hybrid applications using the JavaScript library, cookies need to be set for each instrumented domain or server the application communicates with. You can specify domains, host or IP addresses. Https Domains always need to start with https://. Domains or sub-domains must start with a dot.

        Parameters:
        httpsDomain - a domain that should be instrumented
        Since:
        8.237
      • httpsDomains

        public void httpsDomains​(String... httpsDomains)
        Specifies instrumented https domains used by the web part of your hybrid application

        For hybrid applications using the JavaScript library, cookies need to be set for each instrumented domain or server the application communicates with. You can specify domains, host or IP addresses. Https Domains always need to start with https://. Domains or sub-domains must start with a dot.

        Parameters:
        httpsDomains - domains that should be instrumented
        Since:
        8.237
      • isEnabled

        public boolean isEnabled()
        Specifies if the hybrid feature is enabled

        The default value is false.

        Specified by:
        isEnabled in interface com.dynatrace.tools.android.api.HybridOptions
        Returns:
        true, if the hybrid feature is enabled
      • getDomains

        public List<String> getDomains()
        Specifies instrumented domains used by the web part of your hybrid application

        For hybrid applications using the JavaScript library, cookies need to be set for each instrumented domain or server the application communicates with. You can specify domains, host or IP addresses. Domains or sub-domains must start with a dot.

        Specified by:
        getDomains in interface com.dynatrace.tools.android.api.HybridOptions
        Returns:
        domains that should be instrumented
      • getHttpsDomains

        public List<String> getHttpsDomains()
        Specifies instrumented https domains used by the web part of your hybrid application

        For hybrid applications using the JavaScript library, cookies need to be set for each instrumented domain or server the application communicates with. You can specify domains, host or IP addresses. Https Domains always need to start with https://. Domains or sub-domains must start with a dot.

        Specified by:
        getHttpsDomains in interface com.dynatrace.tools.android.api.HybridOptions
        Returns:
        https domains that should be instrumented
        Since:
        8.237