Use case example for copyToRealm() in Realm
<p>Could someone give a simple <strong>use case</strong> example <strong>why</strong> someone would use <code>copyToRealm()</code> instead of <code>createObject()</code> ?</p>

<p>It is not clear to me <strong>why</strong> and <strong>when</strong> would anyone use <code>copyToRealm()</code> if there is <code>createObject()</code>.</p>

<p>In the example here they seem pretty much the same <a href="https://realm.io/docs/java/latest/" rel="noreferrer">https://realm.io/docs/java/latest/</a> . </p>

<p><code>copyToRealm()</code> takes an unmanaged object and connects it to a Realm, while <code>createObject()</code> creates an object directly in a Realm.</p>