Package com.verizon.mec.edsclientsdk
Class EdsClientSdkFactory
- java.lang.Object
-
- com.verizon.mec.edsclientsdk.EdsClientSdkFactory
-
public class EdsClientSdkFactory extends java.lang.Object
Factory class for creation of EDS SDK instances and associated objects/configuration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EdsClientSdkFactory.SdkBuilder
EDS SDK Builder, used to construct instances ofIEdsClientSdk
.
-
Constructor Summary
Constructors Constructor Description EdsClientSdkFactory()
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IEdsSdkOptions
getDefaultOperationOptions()
Retrieve SDK default options.IEdsSdkOptions
getOperationOptions(int opTimeoutMs, boolean bypassCache, android.net.Network transportNetwork)
construct operation options objectEdsClientSdkFactory.SdkBuilder
getSdkBuilder(android.content.Context context)
Create new instance of SDK BuilderIEdsSdkVersionInfo
getVersionInfo()
Get version info for EDS SDK.static boolean
isDebugLoggingEnabled()
Check whether debug-level logging is enabled.static void
setDebugLogging(boolean debugLoggingEnabled)
Enable or Disable debug-level logging This is a global settings.static void
setLogger(ILog logger)
Supply custom logging implementation.
-
-
-
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 seesetLogger(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
-
getDefaultOperationOptions
public IEdsSdkOptions getDefaultOperationOptions()
Retrieve SDK default options. Useful for modifying subset of parameters and maintaining default for others. Also seeIEdsClientSdk.setDefaultOperationOptions(IEdsSdkOptions)
Also seegetOperationOptions(int, boolean, Network)
- Returns:
- options object with default values.
-
getOperationOptions
public IEdsSdkOptions getOperationOptions(int opTimeoutMs, boolean bypassCache, android.net.Network transportNetwork)
construct operation options object- Parameters:
opTimeoutMs
- operation timeoutbypassCache
- skip local result cache, if available, and force server operationtransportNetwork
- 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
-
-