public abstract class Host
extends ViewGroup
Constructor and Description |
---|
Host(Context context,
AttributeSet attrs) |
Modifier and Type | Method and Description |
---|---|
boolean |
getClipChildren() |
java.lang.String |
getDescriptionOfMountedItems() |
abstract MountItem |
getMountItemAt(int index) |
abstract int |
getMountItemCount() |
abstract void |
mount(int index,
MountItem mountItem)
Mounts the given
MountItem with unique index. |
abstract void |
moveItem(MountItem item,
int oldIndex,
int newIndex)
Moves the MountItem associated to oldIndex in the newIndex position.
|
void |
safelyUnmountAll()
Use this API to remove all mounted items from the Host to recover from errors.
|
void |
setClipChildren(boolean clipChildren) |
void |
setInLayout() |
abstract void |
unmount(int index,
MountItem mountItem)
Unmounts the given
MountItem with unique index. |
abstract void |
unmount(MountItem mountItem)
Unmounts the given
MountItem |
void |
unsetInLayout() |
public abstract void mount(int index, MountItem mountItem)
MountItem
with unique index.index
- index of the MountItem
. Guaranteed to be the same index as is passed for
the corresponding unmount(index, mountItem)
call.mountItem
- item to be mounted into the host.public abstract void unmount(MountItem mountItem)
MountItem
mountItem
- item to be unmounted from the host.public abstract void unmount(int index, MountItem mountItem)
MountItem
with unique index.index
- index of the MountItem
. Guaranteed to be the same index as was passed for
the corresponding mount(index, mountItem)
call.mountItem
- item to be unmounted from the host.public abstract int getMountItemCount()
MountItem
s that are currently mounted in the host.public abstract MountItem getMountItemAt(int index)
MountItem
that was mounted with the given index.public abstract void moveItem(MountItem item, int oldIndex, int newIndex)
unmount(int, MountItem)
or moveItem(MountItem, int,
int)
.item
- The item that has been moved.oldIndex
- The current index of the MountItem.newIndex
- The new index of the MountItem.public boolean getClipChildren()
public void setClipChildren(boolean clipChildren)
public java.lang.String getDescriptionOfMountedItems()
public void safelyUnmountAll()
public void setInLayout()
public void unsetInLayout()