public class Logger extends java.lang.Object implements SectionsDebugLogger
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<SectionsDebugLogger> |
mSectionsDebugLoggers |
Constructor and Description |
---|
Logger(java.util.Collection<SectionsDebugLogger> sectionsDebugLoggers) |
Modifier and Type | Method and Description |
---|---|
void |
logDelete(java.lang.String tag,
int index,
java.lang.String thread)
fired when a component is being deleted
|
void |
logInsert(java.lang.String tag,
int index,
RenderInfo renderInfo,
java.lang.String thread)
fired when a component is being inserted
|
void |
logMove(java.lang.String tag,
int fromPosition,
int toPosition,
java.lang.String thread)
fired when a component is being moved
|
void |
logRequestFocus(java.lang.String tag,
int index,
RenderInfo renderInfo,
java.lang.String thread)
fired when a component is being focused
|
void |
logRequestFocusWithOffset(java.lang.String tag,
int index,
int offset,
RenderInfo renderInfo,
java.lang.String thread)
fired when a component is being focused
|
void |
logShouldUpdate(java.lang.String tag,
java.lang.Object previous,
java.lang.Object next,
java.lang.String previousPrefix,
java.lang.String nextPrefix,
java.lang.Boolean shouldUpdate,
java.lang.String thread)
fired when determining if a section should re-compute changesets
|
void |
logUpdate(java.lang.String tag,
int index,
RenderInfo renderInfo,
java.lang.String thread)
fired when a component is being updated
|
protected java.util.Set<SectionsDebugLogger> mSectionsDebugLoggers
public Logger(java.util.Collection<SectionsDebugLogger> sectionsDebugLoggers)
public void logInsert(java.lang.String tag, int index, RenderInfo renderInfo, java.lang.String thread)
SectionsDebugLogger
logInsert
in interface SectionsDebugLogger
tag
- tag defining component's section treeindex
- position in the recyclerviewrenderInfo
- component type that is being operated onthread
- name of thread that wanted to make this changepublic void logUpdate(java.lang.String tag, int index, RenderInfo renderInfo, java.lang.String thread)
SectionsDebugLogger
logUpdate
in interface SectionsDebugLogger
tag
- tag defining component's section treeindex
- position in the reyclerviewrenderInfo
- component type that is being operated onthread
- name of thread that wanted to make this changepublic void logDelete(java.lang.String tag, int index, java.lang.String thread)
SectionsDebugLogger
logDelete
in interface SectionsDebugLogger
tag
- tag defining component's section treeindex
- position in the reyclerviewthread
- name of thread that wanted to make this changepublic void logRequestFocus(java.lang.String tag, int index, RenderInfo renderInfo, java.lang.String thread)
SectionsDebugLogger
logRequestFocus
in interface SectionsDebugLogger
tag
- tag defining component's section treeindex
- position in the reyclerviewrenderInfo
- component type that is being operated onthread
- name of thread that wanted to make this changepublic void logRequestFocusWithOffset(java.lang.String tag, int index, int offset, RenderInfo renderInfo, java.lang.String thread)
SectionsDebugLogger
logRequestFocusWithOffset
in interface SectionsDebugLogger
tag
- tag defining component's section treeindex
- position in the reyclerviewoffset
- offset from index to scroll torenderInfo
- component type that is being operated onthread
- name of thread that wanted to make this changepublic void logMove(java.lang.String tag, int fromPosition, int toPosition, java.lang.String thread)
SectionsDebugLogger
logMove
in interface SectionsDebugLogger
tag
- tag defining component's section treefromPosition
- source indextoPosition
- destination indexthread
- name of thread that wanted to make this changepublic void logShouldUpdate(java.lang.String tag, java.lang.Object previous, java.lang.Object next, java.lang.String previousPrefix, java.lang.String nextPrefix, java.lang.Boolean shouldUpdate, java.lang.String thread)
SectionsDebugLogger
logShouldUpdate
in interface SectionsDebugLogger
tag
- tag defining component's section treeprevious
- previous section that's already madenext
- next section being builtpreviousPrefix
- string of component's prefixnextPrefix
- string of component's prefixshouldUpdate
- boolean value describing if previous & next are the samethread
- name of thread that wanted to make this change