# QRCodeSignInMethod

Artifact: [androidx.car.app:app](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/model/signin/QRCodeSignInMethod.java+class:androidx.car.app.model.signin.QRCodeSignInMethod) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.1.0)

*** ** * ** ***


```
@RequiresCarApi(value = 4)
@CarProtocol
public final class QRCodeSignInMethod implements SignInTemplate.SignInMethod
```

<br />

*** ** * ** ***

A `https://developer.android.com/reference/androidx/car/app/model/signin/SignInTemplate.SignInMethod` that presents a QR Code that the user can use to sign-in.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/car/app/model/signin/QRCodeSignInMethod#QRCodeSignInMethod(android.net.Uri)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/net/Uri.html uri)` Returns a `https://developer.android.com/reference/androidx/car/app/model/signin/QRCodeSignInMethod` instance. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/car/app/model/signin/QRCodeSignInMethod#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/net/Uri.html` | `https://developer.android.com/reference/androidx/car/app/model/signin/QRCodeSignInMethod#getUri()()` Returns the `https://developer.android.com/reference/android/net/Uri.html` to use to create a QR Code to present to the user. |
| `int` | `https://developer.android.com/reference/androidx/car/app/model/signin/QRCodeSignInMethod#hashCode()()` |

## Public constructors

### QRCodeSignInMethod

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.1.0)

```
public QRCodeSignInMethod(@NonNull Uri uri)
```

Returns a `https://developer.android.com/reference/androidx/car/app/model/signin/QRCodeSignInMethod` instance.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/net/Uri.html uri` | the URL to be used in creating a QR Code. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/NullPointerException.html` | if `url` is `null` |

## Public methods

### equals

```
public boolean equals(Object other)
```

### getUri

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.1.0)

```
public @NonNull Uri getUri()
```

Returns the `https://developer.android.com/reference/android/net/Uri.html` to use to create a QR Code to present to the user.

### hashCode

```
public int hashCode()
```