Class EdsClientSdkTaskWrapper


  • public class EdsClientSdkTaskWrapper
    extends java.lang.Object
    Allow execution of Edge Discovery operations within Google Play Services Task See Google Tasks Documentation for more information
    • Constructor Detail

      • EdsClientSdkTaskWrapper

        public EdsClientSdkTaskWrapper​(@NonNull
                                       IEdsClientSdk edsClientSdk)
        Create task-wrapped SDK instance
        Parameters:
        edsClientSdk - EDS client SDK
    • Method Detail

      • discoverEdgeServices

        public com.google.android.gms.tasks.Task<EdgeDiscoveryResult> discoverEdgeServices​(@NonNull
                                                                                           android.content.Context context,
                                                                                           @NonNull
                                                                                           EdgeSvcsTargetingCriteria svcTargetCriteria,
                                                                                           @Nullable
                                                                                           IEdsSdkOptions operationOptions,
                                                                                           @Nullable
                                                                                           com.google.android.gms.tasks.CancellationToken cancellationToken)
        Execute edge discovery operation. On SDK error, EdsTaskException will be returned in failure handlers
        Parameters:
        context - context
        svcTargetCriteria - endpoint targeting criteria (required)
        operationOptions - operation options. Optional, if null SDK default operations are used.
        cancellationToken - task cancellation token, from caller created CancellationTokenSource. Optional, if null operaation cannot be cancelled
        Returns:
        Task associated with edge discovery operations.