# DateTimePatternGenerator.PatternInfo

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# PatternInfo

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/icu/text/DateTimePatternGenerator.PatternInfo "View this page in Java")  

```
class PatternInfo
```

|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                 ||
| ↳ | [android.icu.text.DateTimePatternGenerator.PatternInfo](https://developer.android.com/reference/kotlin/android/icu/text/DateTimePatternGenerator.PatternInfo#) |

PatternInfo supplies output parameters for addPattern(...). It is used because Java doesn't have real output parameters. It is treated like a struct (eg Point), so all fields are public.

## Summary

|                                                                                                                Constants                                                                                                                ||
|----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [BASE_CONFLICT](https://developer.android.com/reference/kotlin/android/icu/text/DateTimePatternGenerator.PatternInfo#BASE_CONFLICT:kotlin.Int) <br /> |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CONFLICT](https://developer.android.com/reference/kotlin/android/icu/text/DateTimePatternGenerator.PatternInfo#CONFLICT:kotlin.Int) <br />           |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OK](https://developer.android.com/reference/kotlin/android/icu/text/DateTimePatternGenerator.PatternInfo#OK:kotlin.Int) <br />                       |

|                                                                                        Public constructors                                                                                        ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [PatternInfo](https://developer.android.com/reference/kotlin/android/icu/text/DateTimePatternGenerator.PatternInfo#PatternInfo())`()` Simple constructor, since this is treated like a struct. |

|                                                                                                                      Properties                                                                                                                       ||
|-----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [conflictingPattern](https://developer.android.com/reference/kotlin/android/icu/text/DateTimePatternGenerator.PatternInfo#conflictingPattern:kotlin.String) <br /> |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)        | [status](https://developer.android.com/reference/kotlin/android/icu/text/DateTimePatternGenerator.PatternInfo#status:kotlin.Int) <br />                            |

## Constants

### BASE_CONFLICT

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val BASE_CONFLICT: Int
```  

    Value: 1

### CONFLICT

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CONFLICT: Int
```  

    Value: 2

### OK

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OK: Int
```  

    Value: 0

## Public constructors

### PatternInfo

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
PatternInfo()
```

Simple constructor, since this is treated like a struct.

## Properties

### conflictingPattern

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var conflictingPattern: String!
```  

### status

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var status: Int
```