ParsingLoadable.Builder


class ParsingLoadable.Builder<T>


Builder for ParsingLoadable.

Summary

Public constructors

Builder(
    dataSource: DataSource!,
    dataSpec: DataSpec!,
    @C.DataType type: Int,
    parser: ParsingLoadable.Parser<T!>!
)

Creates a builder.

Builder(
    dataSource: DataSource!,
    uri: Uri!,
    @C.DataType type: Int,
    parser: ParsingLoadable.Parser<T!>!
)

Creates a builder.

Public functions

ParsingLoadable<T!>!

Builds the ParsingLoadable.

ParsingLoadable.Builder<T!>!

Sets the steeredPathwayId, the default is null.

Public constructors

Builder

Builder(
    dataSource: DataSource!,
    dataSpec: DataSpec!,
    @C.DataType type: Int,
    parser: ParsingLoadable.Parser<T!>!
)

Creates a builder.

Parameters
dataSource: DataSource!

A DataSource to use when loading the data.

dataSpec: DataSpec!

The DataSpec from which the object should be loaded.

@C.DataType type: Int

The type of the data.

parser: ParsingLoadable.Parser<T!>!

Parses the object from the response.

Builder

Builder(
    dataSource: DataSource!,
    uri: Uri!,
    @C.DataType type: Int,
    parser: ParsingLoadable.Parser<T!>!
)

Creates a builder.

Parameters
dataSource: DataSource!

A DataSource to use when loading the data.

uri: Uri!

The Uri from which the object should be loaded.

@C.DataType type: Int

The type of the data.

parser: ParsingLoadable.Parser<T!>!

Parses the object from the response.

Public functions

build

fun build(): ParsingLoadable<T!>!

Builds the ParsingLoadable.

setSteeredPathwayId

@CanIgnoreReturnValue
fun setSteeredPathwayId(steeredPathwayId: String?): ParsingLoadable.Builder<T!>!

Sets the steeredPathwayId, the default is null.

Parameters
steeredPathwayId: String?

See steeredPathwayId.

Returns
ParsingLoadable.Builder<T!>!

This builder.