# QRCodeSignInMethod

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/car/app/model/signin/QRCodeSignInMethod "View this page in Java")

<br />

```
@RequiresCarApi(value = 4)
@CarProtocol
class QRCodeSignInMethod : SignInTemplate.SignInMethod
```

<br />

*** ** * ** ***

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

## Summary

|                                                                                                                                                                             ### Public constructors                                                                                                                                                                             |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [QRCodeSignInMethod](https://developer.android.com/reference/kotlin/androidx/car/app/model/signin/QRCodeSignInMethod#QRCodeSignInMethod(android.net.Uri))`(uri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`)` Returns a[QRCodeSignInMethod](https://developer.android.com/reference/kotlin/androidx/car/app/model/signin/QRCodeSignInMethod)instance. |

|                                ### Public functions                                 |
|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/car/app/model/signin/QRCodeSignInMethod#equals(java.lang.Object))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`!)`                             |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                 | [getUri](https://developer.android.com/reference/kotlin/androidx/car/app/model/signin/QRCodeSignInMethod#getUri())`()` Returns the[Uri](https://developer.android.com/reference/android/net/Uri.html)to use to create a QR Code to present to the user. |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | [hashCode](https://developer.android.com/reference/kotlin/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)  

```
QRCodeSignInMethod(uri: Uri)
```

Returns a[QRCodeSignInMethod](https://developer.android.com/reference/kotlin/androidx/car/app/model/signin/QRCodeSignInMethod)instance.  

|                                 Parameters                                 |
|----------------------------------------------------------------------------|-------------------------------------------|
| `uri: `[Uri](https://developer.android.com/reference/android/net/Uri.html) | the URL to be used in creating a QR Code. |

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

## Public functions

### equals

```
fun equals(other: Any!): Boolean
```  

### getUri

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

```
fun getUri(): Uri
```

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

### hashCode

```
fun hashCode(): Int
```