commonMain.dev.gitlive.firebase.firestore.FieldValue.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of firebase-firestore Show documentation
Show all versions of firebase-firestore Show documentation
The Firebase Kotlin SDK is a Kotlin-first SDK for Firebase. It's API is similar to the Firebase Android SDK Kotlin Extensions but also supports multiplatform projects, enabling you to use Firebase directly from your common source targeting iOS, Android or JS.
package dev.gitlive.firebase.firestore
import kotlinx.serialization.Serializable
/** Represents a Firebase FieldValue. */
@Serializable(with = FieldValueSerializer::class)
public expect class FieldValue internal constructor(nativeValue: Any) {
internal val nativeValue: Any
public companion object {
public val serverTimestamp: FieldValue
public val delete: FieldValue
public fun increment(value: Int): FieldValue
public fun arrayUnion(vararg elements: Any): FieldValue
public fun arrayRemove(vararg elements: Any): FieldValue
}
}