DeviceDescriptor

public final class DeviceDescriptor extends Object
implements Parcelable

Minimal representation of information about a Matter device, to recognize the product and its purpose.

Nested Class Summary

class DeviceDescriptor.Builder Builder class to generate DeviceDescriptor instances. 

Inherited Constant Summary

int CONTENTS_FILE_DESCRIPTOR
int PARCELABLE_STABILITY_LOCAL
int PARCELABLE_STABILITY_VINTF
int PARCELABLE_WRITE_RETURN_VALUE

Public Method Summary

static DeviceDescriptor.Builder
builder()
Returns an empty DeviceDescriptor.Builder instance.
boolean
equals(Object other)
int
getDeviceType()
This method is deprecated. this field is not expected to be populated; the vendor ID and product ID can be used to map to a device type
int
getProductId()
Returns the product ID of the device, or zero if the product is unspecified or the vendor is unknown.
int
getVendorId()
Returns the vendor ID of the device, or zero if the vendor is unknown.
int
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
abstract int
describeContents()
abstract void
writeToParcel(Parcel arg0, int arg1)

Public Methods

public static DeviceDescriptor.Builder builder ()

Returns an empty DeviceDescriptor.Builder instance.

public boolean equals (Object other)

public int getDeviceType ()

This method is deprecated.
this field is not expected to be populated; the vendor ID and product ID can be used to map to a device type

Returns the Matter device type value of the device.

public int getProductId ()

Returns the product ID of the device, or zero if the product is unspecified or the vendor is unknown.

public int getVendorId ()

Returns the vendor ID of the device, or zero if the vendor is unknown.

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)