DeviceInfo

public final class DeviceInfo extends Object
implements Parcelable

Encapsulating information about an individual Matter device. Instances can be constructed via the DeviceInfo.Builder class, acquired by builder().

Nested Class Summary

class DeviceInfo.Builder Builder for constructing DeviceInfo 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 DeviceInfo.Builder
builder()
Returns a new DeviceInfo.Builder for constructing a DeviceInfo.
boolean
equals(Object other)
Discriminator
getDiscriminator()
The device's discriminator, if known, used to discriminate between Matter device beacons to identify the target device.
int
getProductId()
The Product ID (PID) of the Matter device, if present, or else zero.
int
getVendorId()
The Vendor ID (VID) of the Matter device, if present, or else zero.
int
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 DeviceInfo.Builder builder ()

Returns a new DeviceInfo.Builder for constructing a DeviceInfo.

public boolean equals (Object other)

public Discriminator getDiscriminator ()

The device's discriminator, if known, used to discriminate between Matter device beacons to identify the target device.

public int getProductId ()

The Product ID (PID) of the Matter device, if present, or else zero. The PID is not strictly required to be included in the advertisements of all devices. In conjunction with the VID, this ID uniquely identifies a particular product manufactured by the vendor.

public int getVendorId ()

The Vendor ID (VID) of the Matter device, if present, or else zero. The VID is not strictly required to be included in the advertisements of all devices. This ID uniquely identifies the manufacturer of the beaconing device.

public int hashCode ()

public void writeToParcel (Parcel dest, int flags)