ReportSystemUsageRequest.Builder.SetUsageTimestampMillis(Int64) Method

Definition

Sets the timestamp in milliseconds of the usage report (the time at which the document was used).

[Android.Runtime.Register("setUsageTimestampMillis", "(J)Landroid/app/appsearch/ReportSystemUsageRequest$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.ReportSystemUsageRequest.Builder SetUsageTimestampMillis(long usageTimestampMillis);
[<Android.Runtime.Register("setUsageTimestampMillis", "(J)Landroid/app/appsearch/ReportSystemUsageRequest$Builder;", "", ApiSince=31)>]
member this.SetUsageTimestampMillis : int64 -> Android.App.AppSearch.ReportSystemUsageRequest.Builder

Parameters

usageTimestampMillis
Int64

Value is a non-negative timestamp measured as the number of milliseconds since 1970-01-01T00:00:00Z.

Returns

Attributes

Remarks

Sets the timestamp in milliseconds of the usage report (the time at which the document was used). The value is in the System.currentTimeMillis time base. If unset, this defaults to the current timestamp at the time that the ReportSystemUsageRequest is constructed.

Android reference for android.app.appsearch.ReportSystemUsageRequest.Builder.setUsageTimestampMillis.

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