How do we change the screen orientation dynamically in compose?
@Adam Powell@Andrey Kulikov
Prashast Rastogi
07/11/2021, 4:08 AM
We can set the flag in requestOrientation by accessing it from LocalContext. But I wanted to know if there is any built-in function under compose for the same?
c
cb
07/12/2021, 9:42 AM
Orientation is something for the host window manager to handle, so calling out to the Activity is correct. There's no Compose API for this.