Action Required! Starting November 21st, 2022, Nest Hubs opted into the Preview Program are being updated to support Matter 1.0 in anticipation of Google's general availability (GA) of Matter. All Matter devices being used with the Preview Program will need to be updated. See the Release Notes for more details.

CommissioningService.Builder

Stay organized with collections Save and categorize content based on your preferences.
public static final class CommissioningService.Builder extends Object

A builder to create an implementation of CommissioningService.

Public Constructor Summary

Builder(Context context)
Creates a new builder.

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 Builder (Context context)

Creates a new builder.

Parameters
context the context of the Service to which this will be attached

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