# MdocField

Artifact: [androidx.credentials.registry:registry-digitalcredentials-mdoc](https://developer.android.com/jetpack/androidx/releases/credentials-registry) [View Source](https://cs.android.com/search?q=file:androidx/credentials/registry/digitalcredentials/mdoc/MdocField.kt+class:androidx.credentials.registry.digitalcredentials.mdoc.MdocField) Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

*** ** * ** ***


```
class MdocField : DigitalCredentialField
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.credentials.registry.provider.digitalcredentials.DigitalCredentialField](https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialField) ||
|   | ↳ | [androidx.credentials.registry.digitalcredentials.mdoc.MdocField](https://developer.android.com/reference/kotlin/androidx/credentials/registry/digitalcredentials/mdoc/MdocField) |

*** ** * ** ***

A property of a `https://developer.android.com/reference/kotlin/androidx/credentials/registry/digitalcredentials/mdoc/MdocEntry`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/credentials/registry/digitalcredentials/mdoc/MdocField#MdocField(kotlin.String,kotlin.String,kotlin.Any,kotlin.collections.Set)( namespace: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, identifier: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, fieldValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, fieldDisplayPropertySet: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/digitalcredentials/FieldDisplayProperties> )` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/digitalcredentials/mdoc/MdocField#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/digitalcredentials/mdoc/MdocField#hashCode()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/digitalcredentials/mdoc/MdocField#fieldValue()` the field value, used for matching purpose; for example, the field value of an ISO mDL age-over-twenty-one property may be `true`; a null value means that the exact value of this field cannot be used for matching (e.g. a user photo), or in other words, attempt to do value matching on this field will automatically fail |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/digitalcredentials/mdoc/MdocField#identifier()` the identifier of this field within the `namespace`, used for matching purpose; for example, the field name of an ISO mDL age-over-twenty-one property is "age_over_21" |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/digitalcredentials/mdoc/MdocField#namespace()` the name space of this field, used for matching purpose; for example, the namespace of an ISO mDL age-over-twenty-one property is "org.iso.18013.5.1" |

| ### Inherited properties |
|---|
| From [androidx.credentials.registry.provider.digitalcredentials.DigitalCredentialField](https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialField) |---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/digitalcredentials/FieldDisplayProperties>` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialField#fieldDisplayPropertySet()` | |

## Public constructors

### MdocField

```
MdocField(
    namespace: String,
    identifier: String,
    fieldValue: Any?,
    fieldDisplayPropertySet: Set<FieldDisplayProperties>
)
```

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

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

## Public properties

### fieldValue

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
val fieldValue: Any?
```

the field value, used for matching purpose; for example, the field value of an ISO mDL age-over-twenty-one property may be `true`; a null value means that the exact value of this field cannot be used for matching (e.g. a user photo), or in other words, attempt to do value matching on this field will automatically fail

### identifier

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
val identifier: String
```

the identifier of this field within the `namespace`, used for matching purpose; for example, the field name of an ISO mDL age-over-twenty-one property is "age_over_21"

### namespace

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
val namespace: String
```

the name space of this field, used for matching purpose; for example, the namespace of an ISO mDL age-over-twenty-one property is "org.iso.18013.5.1"