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  | 
| 
        abstract
        
        
        
        
        boolean | 
      removeDumpable(Dumpable dumpable)
      Removes the given  | 
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 benull. | 
| Returns | |
|---|---|
| boolean | trueif the dumpable was added,falseif the call was ignored. | 
| Throws | |
|---|---|
| IllegalArgumentException | if the dumpable nameisnull. | 
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 benull. | 
| Returns | |
|---|---|
| boolean | trueif the dumpable was removed,falseif it was not previouslyaddedwith the same identify (object reference) andname. | 
