Sign in Go Pro

Realm & Android Architecture Components

Using Kotlin Extensions for Realm Dao Creation

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next



Kotlin Extensions allow you to add new functionality to existing, final classes, such as a Realm instance. This lesson will teach you how to use Kotlin Extensions to create your Realm Application DAOs from any realm instance.

Summary of Content (what you will learn):

  • How to create a DAO via a simple realm.createYourDao() invocation.
  • You'll see how this feels very natural in your Kotlin code and why this makes sense semantically to tie the creation method to a Realm instance.


There are no comments on this lesson, start the conversation below ...


Lessons in Realm & Android Architecture Components