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

*** ** * ** ***


```
public final class Status.TextPart extends Status.Part
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.wear.ongoing.Status.Part](https://developer.android.com/reference/androidx/wear/ongoing/Status.Part) ||
|   | ↳ | [androidx.wear.ongoing.Status.TextPart](https://developer.android.com/reference/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 |
|---|
| `https://developer.android.com/reference/androidx/wear/ongoing/Status.TextPart#TextPart(java.lang.String)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html str)` Create a Part representing a static text. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/wear/ongoing/Status.TextPart#equals(java.lang.Object)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/Object.html obj)` |
| `long` | `https://developer.android.com/reference/androidx/wear/ongoing/Status.TextPart#getNextChangeTimeMillis(long)(long fromTimeMillis)` See `https://developer.android.com/reference/androidx/wear/ongoing/TimeDependentText#getNextChangeTimeMillis(long)` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/wear/ongoing/Status.TextPart#getText(android.content.Context,long)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context, long timeNowMillis)` See `https://developer.android.com/reference/androidx/wear/ongoing/TimeDependentText#getText(android.content.Context,long)` |
| `int` | `https://developer.android.com/reference/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)

```
public TextPart(@NonNull String str)
```

Create a Part representing a static text.

## Public methods

### equals

```
public boolean equals(@Nullable Object obj)
```

### getNextChangeTimeMillis

```
public long getNextChangeTimeMillis(long fromTimeMillis)
```

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

### getText

```
public @NonNull CharSequence getText(@NonNull Context context, long timeNowMillis)
```

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

### hashCode

```
public int hashCode()
```