<divclass="content sourceset-depenent-content"data-active=""data-togglable=":micro_utils.dokka:dokkaHtml/androidMain"><divclass="symbol monospace"><spanclass="token keyword">open </span><spanclass="token keyword">override </span><spanclass="token keyword">fun </span><ahref="on-child-view-added.html"><spanclass="token function">onChildViewAdded</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">parent<spanclass="token operator">: </span><ahref="https://developer.android.com/reference/kotlin/android/view/View.html">View</a><spanclass="token punctuation">, </span></span><spanclass="parameter ">child<spanclass="token operator">: </span><ahref="https://developer.android.com/reference/kotlin/android/view/View.html">View</a></span></span><spanclass="token punctuation">)</span><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><pclass="paragraph">Will emit data into <ahref="on-child-view-added.html">onChildViewAdded</a> flow. If <spandata-unresolved-link="dev.inmo.micro_utils.coroutines/FlowOnHierarchyChangeListener/recursive/#/PointingToDeclaration/">recursive</span> is true and <ahref="on-child-view-added.html">child</a> is <ahref="https://developer.android.com/reference/kotlin/android/view/ViewGroup.html">ViewGroup</a> will also subscribe to <ahref="on-child-view-added.html">child</a> hierarchy changes.</p><pclass="paragraph">Due to the fact that this method is not suspendable, <ahref="index.html">FlowOnHierarchyChangeListener</a> will use <spandata-unresolved-link="kotlinx.coroutines.flow/MutableSharedFlow/tryEmit/#TypeParam(bounds=[kotlin.Any?])/PointingToDeclaration/">MutableSharedFlow.tryEmit</span> to send data into <spandata-unresolved-link="dev.inmo.micro_utils.coroutines/FlowOnHierarchyChangeListener/_onChildViewAdded/#/PointingToDeclaration/">_onChildViewAdded</span>. That is why its default extraBufferCapacity is <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/-m-a-x_-v-a-l-u-e.html">Int.MAX_VALUE</a></p><br><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">val </span><ahref="on-child-view-added.html">onChildViewAdded</a><spanclass="token operator">: </span><spandata-unresolved-link="kotlinx.coroutines.flow/SharedFlow///PointingToDeclaration/">SharedFlow</span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html">Pair</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="https://developer.android.com/reference/kotlin/android/view/View.html">View</a><spanclass="token punctuation">, </span><spanclass="token keyword"></span><ahref="https://developer.android.com/reference/kotlin/android/view/View.html">View</a><spanclass="token operator">></span><spanclass="token operator">></span><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>