realmAnyOf

fun realmAnyOf(value: Any?): RealmAny?

Create a RealmAny encapsulating the value argument.

This corresponds to calling RealmAny.create-variant with the specific typed non-null argument.

Return

a RealmAny wrapping the value argument, or null if value is null.

Parameters

value

the value that should be wrapped in a RealmAny.