TextClassification.Request.Builder.SetReferenceTime(ZonedDateTime) Method

Definition

Sets the reference time used to interpret relative dates.

[Android.Runtime.Register("setReferenceTime", "(Ljava/time/ZonedDateTime;)Landroid/view/textclassifier/TextClassification$Request$Builder;", "", ApiSince=28)]
public Android.Views.TextClassifiers.TextClassification.Request.Builder SetReferenceTime(Java.Time.ZonedDateTime? referenceTime);
[<Android.Runtime.Register("setReferenceTime", "(Ljava/time/ZonedDateTime;)Landroid/view/textclassifier/TextClassification$Request$Builder;", "", ApiSince=28)>]
member this.SetReferenceTime : Java.Time.ZonedDateTime -> Android.Views.TextClassifiers.TextClassification.Request.Builder

Parameters

referenceTime
ZonedDateTime

The reference time used to interpret relative dates. This should usually be the time when the text was originally composed. If it is not set, the current time is used.

Returns

This builder.

Attributes

Remarks

Relative dates, such as "tomorrow," are interpreted using this reference time.

Android reference for android.view.textclassifier.TextClassification.Request.Builder.setReferenceTime.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to