InputMerger

public abstract class InputMerger
extends Object

java.lang.Object
   ↳ androidx.work.InputMerger


An abstract class that allows the user to define how to merge a list of inputs to a Worker.

Summary

Public constructors

InputMerger()

Public methods

abstract Data merge(List<Data> inputs)

Merges a list of Data and outputs a single Data object.

Inherited methods

Public constructors

InputMerger

InputMerger ()

Public methods

merge

Data merge (List<Data> inputs)

Merges a list of Data and outputs a single Data object.

Parameters
inputs List: A list of Data from previous Workers or the WorkRequest.Builder

Returns
Data The merged output