ShareDeviceRequest.Builder

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.