andrew
07/20/2022, 6:34 PMZach Klippenstein (he/him) [MOD]
07/20/2022, 6:52 PMonPlaced
should give you the coordinates before the drawing phase of the current frame. I think it might even do so before the placement phase of your children., but I'm not sure.andrew
07/20/2022, 6:53 PMZach Klippenstein (he/him) [MOD]
07/20/2022, 7:00 PMandrew
07/20/2022, 7:08 PMZach Klippenstein (he/him) [MOD]
07/20/2022, 7:09 PMandrew
07/20/2022, 7:09 PMZach Klippenstein (he/him) [MOD]
07/20/2022, 7:10 PMandrew
07/20/2022, 7:14 PMZach Klippenstein (he/him) [MOD]
07/20/2022, 7:18 PMonSizeChanged
for that and get the result even sooner (measurement happens before placement)Casey Brooks
07/20/2022, 7:19 PMBoxWithConstraints
to get how big the parent layout is without dealing with callbacksZach Klippenstein (he/him) [MOD]
07/20/2022, 7:20 PMandrew
07/20/2022, 7:20 PMZach Klippenstein (he/him) [MOD]
07/20/2022, 7:22 PMComposeVisibility
class interacts with everything else. But because `AndroidView`’s update
function runs before layout, you could probably store the view somewhere then tell it what size to use from the onSizeChanged
callback. Or, subclass the view and just make that call directly inside the view’s measurement callback.Because it sets the dimensions of the video feed to displayI assumed you just needed a size since “dimensions” usually implies size, not location.
andrew
07/20/2022, 7:23 PMonGloballyPositioned
in that screenshot is what gets called with onGloballyPositioned
modifierZach Klippenstein (he/him) [MOD]
07/20/2022, 7:24 PMandrew
07/20/2022, 7:24 PMViewVisibility
for the view system, so if that works, I’ll do it upon updateZach Klippenstein (he/him) [MOD]
07/20/2022, 7:25 PMViewVisibility
? andrew
07/20/2022, 7:26 PMonSizeChanged
also runs next composition as well, btwZach Klippenstein (he/him) [MOD]
07/20/2022, 7:34 PMandrew
07/20/2022, 7:37 PMZach Klippenstein (he/him) [MOD]
07/20/2022, 7:39 PMandrew
07/20/2022, 7:40 PMZach Klippenstein (he/him) [MOD]
07/20/2022, 7:40 PMandrew
07/20/2022, 7:41 PMZach Klippenstein (he/him) [MOD]
07/20/2022, 7:42 PMandrew
07/20/2022, 7:44 PMZach Klippenstein (he/him) [MOD]
07/20/2022, 7:59 PMsize
method on VideoSinkVisibility? When does it do that?andrew
07/20/2022, 8:01 PMnotifyChanged
should trigger an updateonGloballyPositioned
, both kinds, the modifier, and the method from the libraryChris Fillmore
07/20/2022, 11:07 PMorg.webrtc.SurfaceViewRenderer
? (making this change would have other implications but I’m curious if it would solve your problem)andrew
07/20/2022, 11:24 PMChris Fillmore
07/20/2022, 11:42 PMandrew
07/21/2022, 12:48 PM