# Matter

public final class **Matter** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
Entry point for Matter APIs.

### Constant Summary

|---|---|---|
| [String](https://developer.android.com/reference/java/lang/String.html) | [ACTION_COMMISSION_DEVICE](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/Matter#ACTION_COMMISSION_DEVICE) | `https://developer.android.com/reference/android/content/Intent.html` action used to share `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/SharedDeviceData` when an application is chosen from `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningClient#shareDevice(com.google.android.gms.home.matter.commissioning.ShareDeviceRequest)`. |

### Public Method Summary

|---|---|
| static [CommissioningClient](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningClient) | [getCommissioningClient](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/Matter#getCommissioningClient(android.app.Activity))([Activity](https://developer.android.com/reference/android/app/Activity.html) activity) Returns a new `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningClient`. |
| static [CommissioningClient](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningClient) | [getCommissioningClient](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/Matter#getCommissioningClient(android.content.Context))([Context](https://developer.android.com/reference/android/content/Context.html) context) Returns a new `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningClient`. |
| static [DiscoveryClient](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/DiscoveryClient) | [getDiscoveryClient](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/Matter#getDiscoveryClient(android.content.Context))([Context](https://developer.android.com/reference/android/content/Context.html) context) Returns a new `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/DiscoveryClient`. |
| static [DiscoveryClient](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/DiscoveryClient) | [getDiscoveryClient](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/Matter#getDiscoveryClient(android.app.Activity))([Activity](https://developer.android.com/reference/android/app/Activity.html) activity) Returns a new `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/DiscoveryClient`. |
| static [SettingsClient](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/settings/SettingsClient) | [getSettingsClient](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/Matter#getSettingsClient(android.app.Activity,%20com.google.android.gms.auth.api.signin.GoogleSignInAccount))([Activity](https://developer.android.com/reference/android/app/Activity.html) activity, GoogleSignInAccount account) Returns a new `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/settings/SettingsClient`. |
| static [SettingsClient](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/settings/SettingsClient) | [getSettingsClient](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/Matter#getSettingsClient(android.content.Context,%20com.google.android.gms.auth.api.signin.GoogleSignInAccount))([Context](https://developer.android.com/reference/android/content/Context.html) context, GoogleSignInAccount account) Returns a new `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/settings/SettingsClient`. |

### 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() |

## Constants

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

`https://developer.android.com/reference/android/content/Intent.html`
action used to share `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/SharedDeviceData` when an application is chosen from `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningClient#shareDevice(com.google.android.gms.home.matter.commissioning.ShareDeviceRequest)`.

Upon receiving this `https://developer.android.com/reference/android/content/Intent.html` from
Google Play Services, you can retrieve the device information from the `https://developer.android.com/reference/android/content/Intent.html` using
`https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/SharedDeviceData#fromIntent(android.content.Intent)`.
Constant Value: "com.google.android.gms.home.matter.ACTION_COMMISSION_DEVICE"

## Public Methods

#### public static [CommissioningClient](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningClient) **getCommissioningClient** ([Activity](https://developer.android.com/reference/android/app/Activity.html) activity)

Returns a new `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningClient`.

#### public static [CommissioningClient](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningClient) **getCommissioningClient** ([Context](https://developer.android.com/reference/android/content/Context.html) context)

Returns a new `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/CommissioningClient`.

#### public static [DiscoveryClient](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/DiscoveryClient)
**getDiscoveryClient** ([Context](https://developer.android.com/reference/android/content/Context.html) context)

Returns a new `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/DiscoveryClient`.

#### public static [DiscoveryClient](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/DiscoveryClient)
**getDiscoveryClient** ([Activity](https://developer.android.com/reference/android/app/Activity.html) activity)

Returns a new `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/discovery/DiscoveryClient`.

#### public static [SettingsClient](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/settings/SettingsClient)
**getSettingsClient** ([Activity](https://developer.android.com/reference/android/app/Activity.html) activity, GoogleSignInAccount account)

Returns a new `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/settings/SettingsClient`.

#### public static [SettingsClient](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/settings/SettingsClient)
**getSettingsClient** ([Context](https://developer.android.com/reference/android/content/Context.html) context, GoogleSignInAccount account)

Returns a new `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/settings/SettingsClient`.