I'm a bit confused about the new modifier mechanis...
# compose
l
I'm a bit confused about the new modifier mechanism. For example if I create my own LayoutModifierNode how can I get a Node? Do I just extend Node?
l
Even I’m not sure completely regarding the implementation. I guess we have to wait for an actual implementation by the Android team like they’re currently working on one https://android-review.googlesource.com/c/platform/frameworks/support/+/2233287
l
True, all I know is that those articles about modifier under the hood are gonna be a history. 😂
c
heres a video from android dev summit (5 days ago) about modifiers from no other than leland richardson

https://www.youtube.com/watch?v=BjGX2RftXsU&list=PLWz5rJ2EKKc_L3n1j4ajHjJ6QccFUvW1u&index=25

z
Yes
Modifier.Node
is a class you subclass, and then your subclass can implement whichever node interfaces you need & delegate to other nodes.