fun BaseRealmObject.isManaged(): Boolean

Returns whether or not this object is managed by Realm.

Managed objects are only valid to use while the Realm is open, but also have access to all Realm API's like queries or change listeners. Unmanaged objects behave like normal Kotlin objects and are completely separate from Realm.