Companion

object Companion

Functions

create
Link copied to clipboard
fun create(): ObjectId

Generates a new ObjectId using default values (current time)

from
Link copied to clipboard
fun from(date: RealmInstant): ObjectId

Generates a new ObjectId using the provided timestamp.

fun from(bytes: ByteArray): ObjectId

Generates a new ObjectId using the unique 12 bytes representation.

fun from(hexString: String): ObjectId

Generates a new ObjectId using the hexadecimal representation of the 12 bytes.