diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/IViewGroupManager.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/IViewGroupManager.java new file mode 100644 index 00000000000..95b2531de41 --- /dev/null +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/IViewGroupManager.java @@ -0,0 +1,26 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +package com.facebook.react.uimanager; + +import android.view.View; + +/** Interface providing children management API for view managers of classes extending ViewGroup. */ +public interface IViewGroupManager extends IViewManagerWithChildren { + + /** Adds a child view into the parent at the index specified as a parameter */ + void addView(T parent, View child, int index); + + /** @return child of the parent view at the index specified as a parameter. */ + View getChildAt(T parent, int index); + + /** Removes View from the parent View at the index specified as a parameter. */ + void removeViewAt(T parent, int index); + + /** Return the amount of children contained by the view specified as a parameter. */ + int getChildCount(T parent); +}