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.

ShareDeviceRequest.Builder

Stay organized with collections Save and categorize content based on your preferences.
public static interface ShareDeviceRequest.Builder

Builder class to generate ShareDeviceRequest instances.

Public Method Summary

abstract ShareDeviceRequest
build()
Builds a new instance of ShareDeviceRequest
abstract ShareDeviceRequest.Builder
setCommissioningWindow(CommissioningWindow commissioningWindow)
Sets the CommissioningWindow opened for the device being shared.
abstract ShareDeviceRequest.Builder
setDeviceDescriptor(DeviceDescriptor deviceDescriptor)
Sets the DeviceDescriptor of the device being shared.
abstract ShareDeviceRequest.Builder
setDeviceName(String deviceName)
Sets the device name of the device being shared.
abstract ShareDeviceRequest.Builder
setNetworkLocation(NetworkLocation networkLocation)
Sets the network location of the device being shared.
abstract ShareDeviceRequest.Builder
setRoomName(String roomName)
Sets the room name of the device being shared.

Public Methods

public abstract ShareDeviceRequest build ()

Builds a new instance of ShareDeviceRequest

Throws
IllegalStateException if any of CommissioningWindow, DeviceDescriptor, or DeviceName are not specified.

public abstract ShareDeviceRequest.Builder setCommissioningWindow (CommissioningWindow commissioningWindow)

Sets the CommissioningWindow opened for the device being shared.

public abstract ShareDeviceRequest.Builder setDeviceDescriptor (DeviceDescriptor deviceDescriptor)

Sets the DeviceDescriptor of the device being shared.

public abstract ShareDeviceRequest.Builder setDeviceName (String deviceName)

Sets the device name of the device being shared.

public abstract ShareDeviceRequest.Builder setNetworkLocation (NetworkLocation networkLocation)

Sets the network location of the device being shared.

public abstract ShareDeviceRequest.Builder setRoomName (String roomName)

Sets the room name of the device being shared.