public class Logger extends Object implements SectionsDebugLogger
Modifier and Type | Field and Description |
---|---|
protected Set<SectionsDebugLogger> |
mSectionsDebugLoggers |
Constructor and Description |
---|
Logger(Collection<SectionsDebugLogger> sectionsDebugLoggers) |
Modifier and Type | Method and Description |
---|---|
void |
logDelete(String tag,
int index,
String thread)
fired when a component is being deleted
|
void |
logInsert(String tag,
int index,
RenderInfo renderInfo,
String thread)
fired when a component is being inserted
|
void |
logMove(String tag,
int fromPosition,
int toPosition,
String thread)
fired when a component is being moved
|
void |
logRequestFocus(String tag,
int index,
RenderInfo renderInfo,
String thread)
fired when a component is being focused
|
void |
logRequestFocusWithOffset(String tag,
int index,
int offset,
RenderInfo renderInfo,
String thread)
fired when a component is being focused
|
void |
logShouldUpdate(String tag,
Object previous,
Object next,
String previousPrefix,
String nextPrefix,
Boolean shouldUpdate,
String thread)
fired when determining if a section should re-compute changesets
|
void |
logUpdate(String tag,
int index,
RenderInfo renderInfo,
String thread)
fired when a component is being updated
|
protected Set<SectionsDebugLogger> mSectionsDebugLoggers
public Logger(Collection<SectionsDebugLogger> sectionsDebugLoggers)
public void logInsert(String tag, int index, RenderInfo renderInfo, 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(String tag, int index, RenderInfo renderInfo, 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(String tag, int index, 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(String tag, int index, RenderInfo renderInfo, 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(String tag, int index, int offset, RenderInfo renderInfo, 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(String tag, int fromPosition, int toPosition, 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(String tag, Object previous, Object next, String previousPrefix, String nextPrefix, Boolean shouldUpdate, 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