lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

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

public InputMerger ()

Public methods

merge

public abstract 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