Added in API level 33
DumpableContainer
interface DumpableContainer
| android.util.DumpableContainer |
Represents a container that manages dumpables.
Summary
| Public methods | |
|---|---|
| abstract Boolean |
addDumpable(dumpable: Dumpable)Adds the given |
| abstract Boolean |
removeDumpable(dumpable: Dumpable)Removes the given |
Public methods
addDumpable
Added in API level 33
abstract fun addDumpable(dumpable: Dumpable): Boolean
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. |
| Return | |
|---|---|
Boolean |
true if the dumpable was added, false if the call was ignored. |
| Exceptions | |
|---|---|
java.lang.IllegalArgumentException |
if the dumpable name is null. |
removeDumpable
Added in API level 33
abstract fun removeDumpable(dumpable: Dumpable): Boolean
Removes the given dumpable from the container.
| Parameters | |
|---|---|
dumpable |
Dumpable: dumpable to be removed. This value cannot be null. |
| Return | |
|---|---|
Boolean |
true if the dumpable was removed, false if it was not previously added with the same identify (object reference) and name. |