Skip navigation links
B C D F G I M O P R S W 

B

build() - Method in class com.zhuinden.monarchy.Monarchy.Builder
 
Builder() - Constructor for class com.zhuinden.monarchy.Monarchy.Builder
 

C

closeManually() - Method in class com.zhuinden.monarchy.Monarchy
If the Monarchy thread was opened manually, then this method can be used to decrement the forced reference count increment.
com.zhuinden.monarchy - package com.zhuinden.monarchy
 
createQuery(Realm) - Method in interface com.zhuinden.monarchy.Monarchy.Query
 

D

doWithRealm(Monarchy.RealmBlock) - Method in class com.zhuinden.monarchy.Monarchy
Allows to manually use Realm instance and will automatically close it when done.
doWithRealm(Realm) - Method in interface com.zhuinden.monarchy.Monarchy.RealmBlock
 

F

fetchAllCopiedSync(Monarchy.Query<T>) - Method in class com.zhuinden.monarchy.Monarchy
Provides ability to synchronously fetch a copied RealmResults.
fetchAllManagedSync(Realm, Monarchy.Query<T>) - Method in class com.zhuinden.monarchy.Monarchy
Provides ability to synchronously obtain a managed RealmResults as a List, in a safe way.
fetchAllMappedSync(Monarchy.Query<T>, Monarchy.Mapper<U, T>) - Method in class com.zhuinden.monarchy.Monarchy
Provides ability to synchronously fetch a mapped RealmResults.
findAllCopiedWithChanges(Monarchy.Query<T>) - Method in class com.zhuinden.monarchy.Monarchy
Returns a LiveData that evaluates the new results on a background looper thread.
findAllCopiedWithChanges(int, Monarchy.Query<T>) - Method in class com.zhuinden.monarchy.Monarchy
Returns a LiveData that evaluates the new results on a background looper thread.
findAllFrozenWithChanges(Monarchy.Query<T>) - Method in class com.zhuinden.monarchy.Monarchy
Returns a LiveData that evaluates the new results on a background looper thread.
findAllManagedWithChanges(Monarchy.Query<T>) - Method in class com.zhuinden.monarchy.Monarchy
Returns a LiveData that evaluates the new results on the UI thread, using Realm's Async Query API.
findAllManagedWithChangesSync(Monarchy.Query<T>) - Method in class com.zhuinden.monarchy.Monarchy
Returns a LiveData that evaluates the new results on the UI thread, using Realm's Sync Query API.
findAllMappedWithChanges(Monarchy.Query<T>, Monarchy.Mapper<U, T>) - Method in class com.zhuinden.monarchy.Monarchy
Returns a LiveData that evaluates the new results on a background looper thread.

G

getDefaultConfiguration() - Static method in class com.zhuinden.monarchy.Monarchy
Returns the default configuration.
getOrderedCollectionChangeSet() - Method in class com.zhuinden.monarchy.Monarchy.ManagedChangeSet
Gets the ordered collection change set.
getRealmConfiguration() - Method in class com.zhuinden.monarchy.Monarchy
 
getRealmResults() - Method in class com.zhuinden.monarchy.Monarchy.ManagedChangeSet
Gets the RealmResults.

I

init(Context) - Static method in class com.zhuinden.monarchy.Monarchy
Initializes Realm as usual, except sets a default configuration to detect if a custom default is properly set.
isMonarchyThreadOpen() - Method in class com.zhuinden.monarchy.Monarchy
Returns if the Monarchy thread is open.

M

map(T) - Method in interface com.zhuinden.monarchy.Monarchy.Mapper
 
Monarchy - Class in com.zhuinden.monarchy
Monarchy is a wrapper around Realm that simplifies its lifecycle management, and leverages the power of LiveData.
Monarchy.Builder - Class in com.zhuinden.monarchy
Builder class used to build a Monarchy instance.
Monarchy.ManagedChangeSet<T extends RealmModel> - Class in com.zhuinden.monarchy
A class that contains the RealmResults and the OrderedCollectionChangeSet.
Monarchy.Mapper<R,T> - Interface in com.zhuinden.monarchy
A mapper interface that can be used in Monarchy.findAllMappedWithChanges(Query, Mapper) to map out instances on the background looper thread.
Monarchy.Query<T extends RealmModel> - Interface in com.zhuinden.monarchy
An interface used to define Realm queries, therefore bypassing the thread-local aspect of RealmQuery.
Monarchy.RealmBlock - Interface in com.zhuinden.monarchy
Interface to define what to do with the Realm instance.

O

openManually() - Method in class com.zhuinden.monarchy.Monarchy
Forcefully opens the Monarchy thread, keeping it alive until Monarchy.closeManually() is called.

P

postToMonarchyThread(Monarchy.RealmBlock) - Method in class com.zhuinden.monarchy.Monarchy
Posts the RealmBlock to the Monarchy thread, and executes it there.

R

runTransactionSync(Realm.Transaction) - Method in class com.zhuinden.monarchy.Monarchy
 

S

setDefaultConfiguration(RealmConfiguration) - Static method in class com.zhuinden.monarchy.Monarchy
Calls Realm.setDefaultConfiguration(config).
setRealmConfiguration(RealmConfiguration) - Method in class com.zhuinden.monarchy.Monarchy.Builder
 
setWriteAsyncExecutor(Executor) - Method in class com.zhuinden.monarchy.Monarchy.Builder
 

W

writeAsync(Realm.Transaction) - Method in class com.zhuinden.monarchy.Monarchy
Writes asynchronously on a single-threaded execution pool.
B C D F G I M O P R S W 
Skip navigation links