FieldValue

public abstract class FieldValue extends Object

Sentinel values that can be used when writing document fields with setData() or updateData().

Public Method Summary

static FieldValue
delete()
Returns a sentinel for use with update() to mark a field for deletion.
static FieldValue
serverTimestamp()
Returns a sentinel for use with set() or update() to include a server-generated timestamp in the written data.

Inherited Method Summary

Public Methods

public static FieldValue delete ()

Returns a sentinel for use with update() to mark a field for deletion.

public static FieldValue serverTimestamp ()

Returns a sentinel for use with set() or update() to include a server-generated timestamp in the written data.

Send feedback about...

Need help? Visit our support page.