ConcatAdapter.Config.Builder


class ConcatAdapter.Config.Builder


The builder for Config class.

Summary

Public constructors

Public functions

ConcatAdapter.Config
ConcatAdapter.Config.Builder
setIsolateViewTypes(isolateViewTypes: Boolean)

Sets whether ConcatAdapter should isolate view types of nested adapters from each other.

ConcatAdapter.Config.Builder

Sets how the ConcatAdapter should handle stable ids (hasStableIds).

Public constructors

Builder

Added in 1.2.0
Builder()

Public functions

build

Added in 1.2.0
fun build(): ConcatAdapter.Config
Returns
ConcatAdapter.Config

A new instance of Config with the given parameters.

setIsolateViewTypes

Added in 1.2.0
fun setIsolateViewTypes(isolateViewTypes: Boolean): ConcatAdapter.Config.Builder

Sets whether ConcatAdapter should isolate view types of nested adapters from each other.

Parameters
isolateViewTypes: Boolean

true if ConcatAdapter should override view types of nested adapters to avoid view type conflicts, false otherwise. Defaults to DEFAULT's isolateViewTypes value (true).

See also
isolateViewTypes

setStableIdMode

Added in 1.2.0
fun setStableIdMode(stableIdMode: ConcatAdapter.Config.StableIdMode): ConcatAdapter.Config.Builder

Sets how the ConcatAdapter should handle stable ids (hasStableIds). See documentation in stableIdMode for details.

Parameters
stableIdMode: ConcatAdapter.Config.StableIdMode

The stable id mode for the ConcatAdapter. Defaults to DEFAULT's stableIdMode value (NO_STABLE_IDS).

See also
stableIdMode