public class ReactFindViewUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ReactFindViewUtil.OnMultipleViewsFoundListener
Callback to be invoked when all react native views with geiven NativeIds have been found
|
static interface |
ReactFindViewUtil.OnViewFoundListener
Callback to be invoked when a react native view has been found
|
Constructor and Description |
---|
ReactFindViewUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addViewListener(ReactFindViewUtil.OnViewFoundListener onViewFoundListener)
Registers an OnViewFoundListener to be invoked when a view with a matching nativeID is found.
|
static void |
addViewsListener(ReactFindViewUtil.OnMultipleViewsFoundListener listener,
java.util.Set<java.lang.String> ids) |
static void |
findView(android.view.View root,
ReactFindViewUtil.OnViewFoundListener onViewFoundListener)
Finds a view tagged with 's nativeID in the given
view hierarchy.
|
static android.view.View |
findView(android.view.View root,
java.lang.String nativeId)
Finds a view that is tagged with as its nativeID prop
under the view hierarchy.
|
static void |
notifyViewRendered(android.view.View view)
Invokes any listeners that are listening on this 's native id
|
static void |
removeViewListener(ReactFindViewUtil.OnViewFoundListener onViewFoundListener)
Removes an OnViewFoundListener previously registered with addViewListener().
|
static void |
removeViewsListener(ReactFindViewUtil.OnMultipleViewsFoundListener listener) |
public static android.view.View findView(android.view.View root, java.lang.String nativeId)
root
- root of the view hierarchy from which to find the viewpublic static void findView(android.view.View root, ReactFindViewUtil.OnViewFoundListener onViewFoundListener)
root
- root of the view hierarchy from which to find the viewpublic static void addViewListener(ReactFindViewUtil.OnViewFoundListener onViewFoundListener)
public static void removeViewListener(ReactFindViewUtil.OnViewFoundListener onViewFoundListener)
public static void addViewsListener(ReactFindViewUtil.OnMultipleViewsFoundListener listener, java.util.Set<java.lang.String> ids)
public static void removeViewsListener(ReactFindViewUtil.OnMultipleViewsFoundListener listener)
public static void notifyViewRendered(android.view.View view)