# Companion

public class Companion

## Properties

INSTANCE
Link copied to clipboard
public final static DeviceType.Companion INSTANCE

## Functions

findByAdvertisingName
Link copied to clipboard
public final DeviceType findByAdvertisingName(String name)

Helper method to find the DeviceType enum that corresponds to the name found during device advertisement. If an unknown name is provided, DeviceType.UNKNOWN is returned.

findByByte
Link copied to clipboard
public final DeviceType findByByte(Byte byte)

Helper method to find the DeviceType enum that corresponds to a byte value. If an unknown byte value is provided, DeviceType.UNKNOWN is returned.

findByInt
Link copied to clipboard
public final DeviceType findByInt(Integer value)

Helper method to find the DeviceType enum that corresponds to an integer value. If an unknown integer value is provided, DeviceType.UNKNOWN is returned.

findByShortName
Link copied to clipboard
public final DeviceType findByShortName(String name)

Helper method to find the DeviceType enum that corresponds to the device short name. If an unknown name is provided, DeviceType.UNKNOWN is returned.

findByUsbPid
Link copied to clipboard
public final DeviceType findByUsbPid(UsbDevice device)

Helper method to find the DeviceType enum that corresponds to the USB VID and PID of a USB device. If an unknown VID and PID combination is provided, DeviceType.UNKNOWN is returned