Package com.verizon.mec.edsclientsdk.api
Interface IEdsClientSdk
-
- All Known Implementing Classes:
EdsClientSdkLogWrapper
public interface IEdsClientSdkEDS Client SDK Interface. obtain viaEdsClientSdkFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearCache()Clear SDK operation data cache, ensuring MEC server sync on next discovery operation.IAsyncOpHandlediscoverEdgeServices(android.content.Context context, IEdgeDiscoveryCallback callback, EdgeSvcsTargetingCriteria svcTargetCriteria, IEdsSdkOptions operationOptions)Perform Edge Service discovery using supplied targeting criteria.IAsyncOpHandlediscoverEdgeServices(android.content.Context context, IEdgeDiscoveryCallback callback, java.lang.String svcEndpointsId, android.net.Network targetNetwork, IEdsSdkOptions options)Perform Edge Service discovery using default targeting criteria (device IP for default data SIM) and operation options defaults from the SDK.MecAuthenticatorgetAuthenticator()Retrieve current authenticator.IEdsSdkOptionsgetDefaultOperationOptions()Get default operation options.voidsetAuthenticator(MecAuthenticator authenticator)Replace current Authenticator with new instance, to be used on all operations going forward.voidsetDefaultOperationOptions(IEdsSdkOptions defaultOptions)Set default operation options, used when null options are passed to API operation.
-
-
-
Method Detail
-
discoverEdgeServices
IAsyncOpHandle discoverEdgeServices(@NonNull android.content.Context context, @NonNull IEdgeDiscoveryCallback callback, @NonNull java.lang.String svcEndpointsId, @Nullable android.net.Network targetNetwork, @Nullable IEdsSdkOptions options)
Perform Edge Service discovery using default targeting criteria (device IP for default data SIM) and operation options defaults from the SDK. This is an asynchronous operation, with callbacks guaranteed to the supplied callback handler.- Parameters:
context- contextcallback- operation callbacksvcEndpointsId- MEC service endpoints IDtargetNetwork- cellular network used to obtain UE Identity. Likely also network used to communicate with with edge service endpoint. If default INTERNET network is used.options- SDK operation options. If NULL SDK default options will be used.- Returns:
- operation handle for cancel
-
discoverEdgeServices
IAsyncOpHandle discoverEdgeServices(@NonNull android.content.Context context, @NonNull IEdgeDiscoveryCallback callback, @NonNull EdgeSvcsTargetingCriteria svcTargetCriteria, @Nullable IEdsSdkOptions operationOptions)
Perform Edge Service discovery using supplied targeting criteria. This is an asynchronous operation with callbacks guaranteed to the supplied callback handler.- Parameters:
context- contextcallback- callback handlersvcTargetCriteria- edge service targeting criteriaoperationOptions- operation options. If null SDK default options will be used..- Returns:
- operation handle for cancel
-
setAuthenticator
void setAuthenticator(@NonNull MecAuthenticator authenticator)Replace current Authenticator with new instance, to be used on all operations going forward. Note: MEC authenticator is a 'live' op- Parameters:
authenticator- MEC authenticator.
-
getAuthenticator
@NonNull MecAuthenticator getAuthenticator()
Retrieve current authenticator.- Returns:
- current authenticator, set via constructor or
setAuthenticator(MecAuthenticator)
-
setDefaultOperationOptions
void setDefaultOperationOptions(@NonNull IEdsSdkOptions defaultOptions)Set default operation options, used when null options are passed to API operation. SeeEdsClientSdkFactory.getDefaultOperationOptions()SeeEdsClientSdkFactory.getOperationOptions(int, boolean, Network)- Parameters:
defaultOptions- default options
-
getDefaultOperationOptions
@NonNull IEdsSdkOptions getDefaultOperationOptions()
Get default operation options.- Returns:
- current default options, never null. Will be hard-coded SDK defaults if
setDefaultOperationOptions(IEdsSdkOptions)has never been called.
-
clearCache
void clearCache()
Clear SDK operation data cache, ensuring MEC server sync on next discovery operation.
-
-