GenericDocument.Builder.SetCreationTimestampMillis(Int64) Method

Definition

Sets the creation timestamp of the GenericDocument, in milliseconds.

[Android.Runtime.Register("setCreationTimestampMillis", "(J)Landroid/app/appsearch/GenericDocument$Builder;", "GetSetCreationTimestampMillis_JHandler", ApiSince=31)]
public virtual Java.Lang.Object SetCreationTimestampMillis(long creationTimestampMillis);
[<Android.Runtime.Register("setCreationTimestampMillis", "(J)Landroid/app/appsearch/GenericDocument$Builder;", "GetSetCreationTimestampMillis_JHandler", ApiSince=31)>]
abstract member SetCreationTimestampMillis : int64 -> Java.Lang.Object
override this.SetCreationTimestampMillis : int64 -> Java.Lang.Object

Parameters

creationTimestampMillis
Int64

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

Returns

Attributes

Remarks

Sets the creation timestamp of the GenericDocument, in milliseconds. This should be set using a value obtained from the System.currentTimeMillis time base. If this method is not called, this will be set to the time the object is built.

Android reference for android.app.appsearch.GenericDocument.Builder.setCreationTimestampMillis.

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