Is it possible to determine if my Compose Preview ...
# compose
m
Is it possible to determine if my Compose Preview is being run in Android Studio vs on a device/emulator?
c
LocalInspectionMode.current
- if it is true you are in the preview.
m
That doesn’t answer if the preview is being rendered in Android Studio or on a device. I know I’m in a preview.
c
Sorry I misunderstood your question
y
On device, that inspection mode is false
m
On device, that inspection mode is false
Oh that’s it then! Thanks