# ShareDeviceRequest

public class **ShareDeviceRequest** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
implements [Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) Request to share a device which has a commissioning window opened for multi-administrator
commissioning.

### Nested Class Summary

|---|---|---|---|
| interface | [ShareDeviceRequest.Builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/ShareDeviceRequest.Builder) || Builder class to generate `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/ShareDeviceRequest` instances. |

### Inherited Constant Summary

From interface android.os.Parcelable

|---|---|---|
| int | CONTENTS_FILE_DESCRIPTOR |   |
| int | PARCELABLE_STABILITY_LOCAL |   |
| int | PARCELABLE_STABILITY_VINTF |   |
| int | PARCELABLE_WRITE_RETURN_VALUE |   |

### Public Method Summary

|---|---|
| static [ShareDeviceRequest.Builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/ShareDeviceRequest.Builder) | [builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/ShareDeviceRequest#builder())() Returns an empty `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/ShareDeviceRequest.Builder` instance. |
| boolean | [equals](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/ShareDeviceRequest#equals(java.lang.Object))([Object](https://developer.android.com/reference/java/lang/Object.html) obj) |
| [CommissioningWindow](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningWindow) | [getCommissioningWindow](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/ShareDeviceRequest#getCommissioningWindow())() Gets the `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningWindow` opened for the device being shared. |
| [DeviceDescriptor](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/DeviceDescriptor) | [getDeviceDescriptor](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/ShareDeviceRequest#getDeviceDescriptor())() Gets the `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/DeviceDescriptor` of the device being shared. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getDeviceName](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/ShareDeviceRequest#getDeviceName())() Gets the device name of the device being shared. |
| [NetworkLocation](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/NetworkLocation) | [getNetworkLocation](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/ShareDeviceRequest#getNetworkLocation())() Gets the network location of the device being shared. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getRoomName](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/ShareDeviceRequest#getRoomName())() Gets the room name of the device being shared. |
| int | [hashCode](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/ShareDeviceRequest#hashCode())() |
| void | [writeToParcel](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/ShareDeviceRequest#writeToParcel(android.os.Parcel,%20int))([Parcel](https://developer.android.com/reference/android/os/Parcel.html) dest, int flags) |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

From interface android.os.Parcelable

|---|---|
| abstract int | describeContents() |
| abstract void | writeToParcel([Parcel](https://developer.android.com/reference/android/os/Parcel.html) arg0, int arg1) |

## Public Methods

#### public static [ShareDeviceRequest.Builder](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/ShareDeviceRequest.Builder) **builder**
()

Returns an empty `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/ShareDeviceRequest.Builder` instance.

#### public boolean **equals** ([Object](https://developer.android.com/reference/java/lang/Object.html) obj)

#### public [CommissioningWindow](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningWindow) **getCommissioningWindow** ()

Gets the `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningWindow` opened for the device being shared.

#### public [DeviceDescriptor](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/DeviceDescriptor)
**getDeviceDescriptor** ()

Gets the `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/DeviceDescriptor`
of the device being shared.

#### public [String](https://developer.android.com/reference/java/lang/String.html) **getDeviceName** ()

Gets the device name of the device being shared.

#### public [NetworkLocation](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/common/NetworkLocation)
**getNetworkLocation** ()

Gets the network location of the device being shared.

#### public [String](https://developer.android.com/reference/java/lang/String.html) **getRoomName** ()

Gets the room name of the device being shared.

#### public int **hashCode** ()

#### public void **writeToParcel** ([Parcel](https://developer.android.com/reference/android/os/Parcel.html) dest, int flags)