Realm Kotlin SDK
/
io.realm.kotlin.types
/
ObjectId
/
Companion
Companion
object
Companion
Content copied to clipboard
Functions
Functions
create
Link copied to clipboard
fun
create
():
ObjectId
Content copied to clipboard
Generates a new
ObjectId
using default values (current time)
from
Link copied to clipboard
fun
from
(date:
RealmInstant
):
ObjectId
Content copied to clipboard
Generates a new
ObjectId
using the provided timestamp.
fun
from
(bytes:
ByteArray
):
ObjectId
Content copied to clipboard
Generates a new
ObjectId
using the unique 12 bytes representation.
fun
from
(hexString:
String
):
ObjectId
Content copied to clipboard
Generates a new
ObjectId
using the hexadecimal representation of the 12 bytes.