LocalTimeRangeFilter.Builder


public static final class LocalTimeRangeFilter.Builder
extends Object

java.lang.Object
   ↳ android.health.connect.LocalTimeRangeFilter.Builder


Builder class for LocalTimeRangeFilter

Summary

Public constructors

Builder()

Public methods

LocalTimeRangeFilter build()

Builds TimeRangeFilter

LocalTimeRangeFilter.Builder setEndTime(LocalDateTime localEndTime)
LocalTimeRangeFilter.Builder setStartTime(LocalDateTime localStartTime)

Inherited methods

Public constructors

Builder

Added in API level 34
public Builder ()

Public methods

build

Added in API level 34
public LocalTimeRangeFilter build ()

Builds TimeRangeFilter

Returns
LocalTimeRangeFilter This value cannot be null.

setEndTime

Added in API level 34
public LocalTimeRangeFilter.Builder setEndTime (LocalDateTime localEndTime)

Parameters
localEndTime LocalDateTime: represents local end time of this filter This value may be null.

Returns
LocalTimeRangeFilter.Builder This value cannot be null.

setStartTime

Added in API level 34
public LocalTimeRangeFilter.Builder setStartTime (LocalDateTime localStartTime)

Parameters
localStartTime LocalDateTime: represents local start time of this filter This value may be null.

Returns
LocalTimeRangeFilter.Builder This value cannot be null.