Stay organized with collections Save and categorize content based on your preferences.

InputMergerFactory

public abstract class InputMergerFactory


A factory object that creates InputMerger instances. The factory is invoked every time a work runs. You can override the default implementation of this factory by manually initializing WorkManager (see initialize and specifying a new InputMergerFactory in setInputMergerFactory.

Summary

Public constructors

Public methods

abstract @Nullable InputMerger

Override this method to create an instance of a InputMerger given its fully qualified class name.

Public constructors

InputMergerFactory

public InputMergerFactory()

Public methods

createInputMerger

public abstract @Nullable InputMerger createInputMerger(@NonNull String className)

Override this method to create an instance of a InputMerger given its fully qualified class name.

Throwing an Exception here will crash the application. If an InputMergerFactory is unable to create an instance of a InputMerger, it should return null so it can delegate to the default InputMergerFactory.
Parameters
@NonNull String className

The fully qualified class name for the InputMerger

Returns
@Nullable InputMerger

an instance of InputMerger