-
public final class FirebaseListOptions.Builder<T>Builder for FirebaseListOptions.
-
-
Method Summary
Modifier and Type Method Description FirebaseListOptions.Builder<T>setSnapshotArray(@NonNull() ObservableSnapshotArray<T> snapshots)Directly set the ObservableSnapshotArray to observe. FirebaseListOptions.Builder<T>setQuery(@NonNull() Query query, @NonNull() SnapshotParser<T> parser)Set the query to listen on and a SnapshotParser to parse data snapshots. FirebaseListOptions.Builder<T>setQuery(@NonNull() Query query, @NonNull() Class<T> modelClass)Set the query to listen on and a Class to which data snapshots should beconverted. FirebaseListOptions.Builder<T>setIndexedQuery(@NonNull() Query keyQuery, @NonNull() DatabaseReference dataRef, @NonNull() SnapshotParser<T> parser)Set an indexed query to listen on and a SnapshotParser to parse data snapshots.The keyQuery is used to find a list of IDs, which are then queried at the dataRef. FirebaseListOptions.Builder<T>setIndexedQuery(@NonNull() Query keyQuery, @NonNull() DatabaseReference dataRef, @NonNull() Class<T> modelClass)Set an indexed query to listen on and a Class to which data snapshots should beconverted. FirebaseListOptions.Builder<T>setLayout(@LayoutRes() int layout)Set the resource ID for the item layout. FirebaseListOptions.Builder<T>setLifecycleOwner(@Nullable() LifecycleOwner owner)Set the optional LifecycleOwner. FirebaseListOptions<T>build()Build a FirebaseListOptions from the provided arguments. -
-
Method Detail
-
setSnapshotArray
@NonNull() FirebaseListOptions.Builder<T> setSnapshotArray(@NonNull() ObservableSnapshotArray<T> snapshots)
Directly set the ObservableSnapshotArray to observe.
Do not call this method after calling
{@code setQuery}.
-
setQuery
@NonNull() FirebaseListOptions.Builder<T> setQuery(@NonNull() Query query, @NonNull() SnapshotParser<T> parser)
Set the query to listen on and a SnapshotParser to parse data snapshots.
Do not call this method after calling setSnapshotArray.
-
setQuery
@NonNull() FirebaseListOptions.Builder<T> setQuery(@NonNull() Query query, @NonNull() Class<T> modelClass)
Set the query to listen on and a Class to which data snapshots should beconverted. Do not call this method after calling setSnapshotArray.
-
setIndexedQuery
@NonNull() FirebaseListOptions.Builder<T> setIndexedQuery(@NonNull() Query keyQuery, @NonNull() DatabaseReference dataRef, @NonNull() SnapshotParser<T> parser)
Set an indexed query to listen on and a SnapshotParser to parse data snapshots.The keyQuery is used to find a list of IDs, which are then queried at the dataRef.
Do not call this method after calling setSnapshotArray.
-
setIndexedQuery
@NonNull() FirebaseListOptions.Builder<T> setIndexedQuery(@NonNull() Query keyQuery, @NonNull() DatabaseReference dataRef, @NonNull() Class<T> modelClass)
Set an indexed query to listen on and a Class to which data snapshots should beconverted. The keyQuery is used to find a list of keys, which are then queried at thedataRef.
Do not call this method after calling setSnapshotArray.
-
setLayout
@NonNull() FirebaseListOptions.Builder<T> setLayout(@LayoutRes() int layout)
Set the resource ID for the item layout.
-
setLifecycleOwner
@NonNull() FirebaseListOptions.Builder<T> setLifecycleOwner(@Nullable() LifecycleOwner owner)
Set the optional LifecycleOwner. Listening will stop/start after the appropriatelifecycle events.
-
build
@NonNull() FirebaseListOptions<T> build()
Build a FirebaseListOptions from the provided arguments.
-
-
-
-