# TimelineBuilders.TimelineEntry

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

*** ** * ** ***


```
public final class TimelineBuilders.TimelineEntry
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> Deprecated in Java

One piece of renderable content along with the time that it is valid for.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/wear/tiles/TimelineBuilders.TimelineEntry.Builder` **This class is deprecated.** Deprecated in Java |

| ### Public methods |
|---|---|
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/TimelineBuilders.TimelineEntry` | `[fromLayoutElement](https://developer.android.com/reference/androidx/wear/tiles/TimelineBuilders.TimelineEntry#fromLayoutElement(androidx.wear.tiles.LayoutElementBuilders.LayoutElement))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement layoutElement )` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Layout` | `[getLayout](https://developer.android.com/reference/androidx/wear/tiles/TimelineBuilders.TimelineEntry#getLayout())()` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/tiles/TimelineBuilders.TimeInterval` | `[getValidity](https://developer.android.com/reference/androidx/wear/tiles/TimelineBuilders.TimelineEntry#getValidity())()` **This method is deprecated.** Deprecated in Java |

## Public methods

### fromLayoutElement

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
public static @NonNull TimelineBuilders.TimelineEntry [fromLayoutElement](https://developer.android.com/reference/androidx/wear/tiles/TimelineBuilders.TimelineEntry#fromLayoutElement(androidx.wear.tiles.LayoutElementBuilders.LayoutElement))(
    @NonNull LayoutElementBuilders.LayoutElement layoutElement
)
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

Returns the `https://developer.android.com/reference/androidx/wear/tiles/TimelineBuilders.TimelineEntry` object containing the given layout element.

### getLayout

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

```
public @Nullable LayoutElementBuilders.Layout [getLayout](https://developer.android.com/reference/androidx/wear/tiles/TimelineBuilders.TimelineEntry#getLayout())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

Gets the contents of this timeline entry. Intended for testing purposes only.

### getValidity

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

```
public @Nullable TimelineBuilders.TimeInterval [getValidity](https://developer.android.com/reference/androidx/wear/tiles/TimelineBuilders.TimelineEntry#getValidity())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

Gets the validity period for this timeline entry. Intended for testing purposes only.