# Status.TextPart

# Status.TextPart

Artifact:[androidx.wear:wear-ongoing](https://developer.android.com/jetpack/androidx/releases/wear)  
[View Source](https://cs.android.com/search?q=file:androidx/wear/ongoing/Status.java+class:androidx.wear.ongoing.Status.TextPart)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear#1.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/ongoing/Status.TextPart "View this page in Java")

<br />

```
class Status.TextPart : Status.Part
```

<br />

|---|---|-------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)                                                  |||
| ↳ | [androidx.wear.ongoing.Status.Part](https://developer.android.com/reference/kotlin/androidx/wear/ongoing/Status.Part)            ||
|   | ↳ | [androidx.wear.ongoing.Status.TextPart](https://developer.android.com/reference/kotlin/androidx/wear/ongoing/Status.TextPart) |

*** ** * ** ***

An Ongoing activity status (or part of it) representing a plain, static text.

Available since wear-ongoing:1.0.0

## Summary

|                                                                                                                      ### Public constructors                                                                                                                      |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [TextPart](https://developer.android.com/reference/kotlin/androidx/wear/ongoing/Status.TextPart#TextPart(java.lang.String))`(str: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`)` Create a Part representing a static text. |

|                                      ### Public functions                                      |
|------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)            | [equals](https://developer.android.com/reference/kotlin/androidx/wear/ongoing/Status.TextPart#equals(java.lang.Object))`(obj: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)`                                                                                                                                                                                                                                                                 |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                  | [getNextChangeTimeMillis](https://developer.android.com/reference/kotlin/androidx/wear/ongoing/Status.TextPart#getNextChangeTimeMillis(long))`(fromTimeMillis: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` See[getNextChangeTimeMillis](https://developer.android.com/reference/kotlin/androidx/wear/ongoing/TimeDependentText#getNextChangeTimeMillis(long))                                                                            |
| [CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html) | [getText](https://developer.android.com/reference/kotlin/androidx/wear/ongoing/Status.TextPart#getText(android.content.Context,long))`(context: `[Context](https://developer.android.com/reference/android/content/Context.html)`, timeNowMillis: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` See[getText](https://developer.android.com/reference/kotlin/androidx/wear/ongoing/TimeDependentText#getText(android.content.Context,long)) |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                    | [hashCode](https://developer.android.com/reference/kotlin/androidx/wear/ongoing/Status.TextPart#hashCode())`()`                                                                                                                                                                                                                                                                                                                                                                |

## Public constructors

### TextPart

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear#1.0.0)  

```
TextPart(str: String)
```

Create a Part representing a static text.  

## Public functions

### equals

```
fun equals(obj: Any?): Boolean
```  

### getNextChangeTimeMillis

```
fun getNextChangeTimeMillis(fromTimeMillis: Long): Long
```

See[getNextChangeTimeMillis](https://developer.android.com/reference/kotlin/androidx/wear/ongoing/TimeDependentText#getNextChangeTimeMillis(long))  

### getText

```
fun getText(context: Context, timeNowMillis: Long): CharSequence
```

See[getText](https://developer.android.com/reference/kotlin/androidx/wear/ongoing/TimeDependentText#getText(android.content.Context,long))  

### hashCode

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