public class ReactFindViewUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
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 |
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().
|
@Nullable 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 notifyViewRendered(android.view.View view)