Added in API level 33

DumpableContainer


public interface DumpableContainer

android.util.DumpableContainer


Represents a container that manages dumpables.

Summary

Public methods

abstract boolean addDumpable(Dumpable dumpable)

Adds the given dumpable to the container.

abstract boolean removeDumpable(Dumpable dumpable)

Removes the given dumpable from the container.

Public methods

addDumpable

Added in API level 33
public abstract boolean addDumpable (Dumpable dumpable)

Adds the given dumpable to the container.

If a dumpable with the same name was added before, this call is ignored.

Parameters
dumpable Dumpable: dumpable to be added. This value cannot be null.

Returns
boolean true if the dumpable was added, false if the call was ignored.

Throws
IllegalArgumentException if the dumpable name is null.

removeDumpable

Added in API level 33
public abstract boolean removeDumpable (Dumpable dumpable)

Removes the given dumpable from the container.

Parameters
dumpable Dumpable: dumpable to be removed. This value cannot be null.

Returns
boolean true if the dumpable was removed, false if it was not previously added with the same identify (object reference) and name.