Class EdsClientSdkFactory


  • public class EdsClientSdkFactory
    extends java.lang.Object
    Factory class for creation of EDS SDK instances and associated objects/configuration
    • Constructor Detail

      • EdsClientSdkFactory

        public EdsClientSdkFactory()
        Constructor
    • Method Detail

      • setDebugLogging

        public static void setDebugLogging​(boolean debugLoggingEnabled)
        Enable or Disable debug-level logging This is a global settings. Logging should not be enabled in consumer builds. Also see setLogger(ILog)
        Parameters:
        debugLoggingEnabled - true to enable debug logging, otherwise false.
      • isDebugLoggingEnabled

        public static boolean isDebugLoggingEnabled()
        Check whether debug-level logging is enabled.
        Returns:
        is debug-level logging enabled
      • setLogger

        public static void setLogger​(ILog logger)
        Supply custom logging implementation.
        Parameters:
        logger - logging implementation. If null all logs will be suppressed.
      • getSdkBuilder

        @NonNull
        public EdsClientSdkFactory.SdkBuilder getSdkBuilder​(@NonNull
                                                            android.content.Context context)
        Create new instance of SDK Builder
        Parameters:
        context - context
        Returns:
        SDK builder
      • getOperationOptions

        public IEdsSdkOptions getOperationOptions​(int opTimeoutMs,
                                                  boolean bypassCache,
                                                  android.net.Network transportNetwork)
        construct operation options object
        Parameters:
        opTimeoutMs - operation timeout
        bypassCache - skip local result cache, if available, and force server operation
        transportNetwork - network connection to use for server operations. Optional. If null, default data network is used.
        Returns:
        SDK operation options object with supplied parameters
      • getVersionInfo

        @NonNull
        public IEdsSdkVersionInfo getVersionInfo()
        Get version info for EDS SDK. Informational, for debugging/diagnostics
        Returns:
        version info object