public final class

TimelineProto.Timeline.Builder

extends <any>

implements TimelineProto.TimelineOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.TimelineProto.Timeline.Builder

Overview

 A collection of TimelineEntry items.

 TimelineEntry items can be used to update a layout on-screen at known times,
 without having to explicitly update a layout. This allows for cases where,
 say, a calendar can be used to show the next event, and automatically switch
 to showing the next event when one has passed.

 The active TimelineEntry is switched, at most, once a minute. In the case
 where the validity periods of TimelineEntry items overlap, the item with the
 *shortest* validity period will be shown. This allows a layout provider to
 show a "default" layout, and override it at set points without having to
 explicitly insert the default layout between the "override" layout.
 
Protobuf type androidx.wear.protolayout.proto.Timeline

Summary

Methods
public TimelineProto.Timeline.BuilderaddAllTimelineEntries(java.lang.Iterable<TimelineProto.TimelineEntry> values)

 The entries in a timeline.

public TimelineProto.Timeline.BuilderaddTimelineEntries(int index, TimelineProto.TimelineEntry.Builder builderForValue)

 The entries in a timeline.

public TimelineProto.Timeline.BuilderaddTimelineEntries(int index, TimelineProto.TimelineEntry value)

 The entries in a timeline.

public TimelineProto.Timeline.BuilderaddTimelineEntries(TimelineProto.TimelineEntry.Builder builderForValue)

 The entries in a timeline.

public TimelineProto.Timeline.BuilderaddTimelineEntries(TimelineProto.TimelineEntry value)

 The entries in a timeline.

public TimelineProto.Timeline.BuilderclearTimelineEntries()

 The entries in a timeline.

public TimelineProto.TimelineEntrygetTimelineEntries(int index)

 The entries in a timeline.

public intgetTimelineEntriesCount()

 The entries in a timeline.

public java.util.List<TimelineProto.TimelineEntry>getTimelineEntriesList()

 The entries in a timeline.

public TimelineProto.Timeline.BuilderremoveTimelineEntries(int index)

 The entries in a timeline.

public TimelineProto.Timeline.BuildersetTimelineEntries(int index, TimelineProto.TimelineEntry.Builder builderForValue)

 The entries in a timeline.

public TimelineProto.Timeline.BuildersetTimelineEntries(int index, TimelineProto.TimelineEntry value)

 The entries in a timeline.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public java.util.List<TimelineProto.TimelineEntry> getTimelineEntriesList()

 The entries in a timeline.
 
repeated .androidx.wear.protolayout.proto.TimelineEntry timeline_entries = 1;

public int getTimelineEntriesCount()

 The entries in a timeline.
 
repeated .androidx.wear.protolayout.proto.TimelineEntry timeline_entries = 1;

public TimelineProto.TimelineEntry getTimelineEntries(int index)

 The entries in a timeline.
 
repeated .androidx.wear.protolayout.proto.TimelineEntry timeline_entries = 1;

public TimelineProto.Timeline.Builder setTimelineEntries(int index, TimelineProto.TimelineEntry value)

 The entries in a timeline.
 
repeated .androidx.wear.protolayout.proto.TimelineEntry timeline_entries = 1;

public TimelineProto.Timeline.Builder setTimelineEntries(int index, TimelineProto.TimelineEntry.Builder builderForValue)

 The entries in a timeline.
 
repeated .androidx.wear.protolayout.proto.TimelineEntry timeline_entries = 1;

 The entries in a timeline.
 
repeated .androidx.wear.protolayout.proto.TimelineEntry timeline_entries = 1;

public TimelineProto.Timeline.Builder addTimelineEntries(int index, TimelineProto.TimelineEntry value)

 The entries in a timeline.
 
repeated .androidx.wear.protolayout.proto.TimelineEntry timeline_entries = 1;

public TimelineProto.Timeline.Builder addTimelineEntries(TimelineProto.TimelineEntry.Builder builderForValue)

 The entries in a timeline.
 
repeated .androidx.wear.protolayout.proto.TimelineEntry timeline_entries = 1;

public TimelineProto.Timeline.Builder addTimelineEntries(int index, TimelineProto.TimelineEntry.Builder builderForValue)

 The entries in a timeline.
 
repeated .androidx.wear.protolayout.proto.TimelineEntry timeline_entries = 1;

public TimelineProto.Timeline.Builder addAllTimelineEntries(java.lang.Iterable<TimelineProto.TimelineEntry> values)

 The entries in a timeline.
 
repeated .androidx.wear.protolayout.proto.TimelineEntry timeline_entries = 1;

public TimelineProto.Timeline.Builder clearTimelineEntries()

 The entries in a timeline.
 
repeated .androidx.wear.protolayout.proto.TimelineEntry timeline_entries = 1;

public TimelineProto.Timeline.Builder removeTimelineEntries(int index)

 The entries in a timeline.
 
repeated .androidx.wear.protolayout.proto.TimelineEntry timeline_entries = 1;