public static final class CommissioningService.Builder extends Object
A builder to create an implementation of
CommissioningService
.
Public Constructor Summary
Public Method Summary
CommissioningService |
build()
Constructs a new instance of
CommissioningService as specified in this builder.
|
CommissioningService.Builder |
setCallback(CommissioningService.Callback
callback)
Sets a callback to be notified when commissioning is ready.
|
CommissioningService.Builder |
setExecutor(Executor
executor)
Optionally sets an executor on which callback methods will be executed.
|
Inherited Method Summary
Public Constructors
Public Methods
public CommissioningService build ()
Constructs a new instance of
CommissioningService
as specified in this builder.
Throws
IllegalStateException | if no callback was specified via
setCallback(Callback) |
---|
public CommissioningService.Builder setCallback (CommissioningService.Callback callback)
Sets a callback to be notified when commissioning is ready.
Parameters
callback | a callback to be notified when a device is ready for commissioning |
---|
Returns
- this builder
public CommissioningService.Builder setExecutor (Executor executor)
Optionally sets an executor on which callback methods will be executed. If not specified, an executor will be created on your behalf.
Returns
- this builder