Docs Menu

Docs HomeRealm

Interface RealmModel

On this page

  • io.realm

Interface for marking classes as RealmObjects, it can be used instead of extending RealmObject .

All helper methods available to classes that extend RealmObject are instead available as static methods:

Person p = realm.createObject(Person.class);
// With the RealmModel interface
// With the RealmObject base class

Note: Object implementing this interface needs also to be annotated with RealmClass , so the annotation processor can generate the underlining proxy class.


See also:

←  Interface RealmMigrationClass RealmObject →

On this page

Share Feedback
© 2023 MongoDB, Inc.


  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2023 MongoDB, Inc.