Hello, I am looking permission sample. I found two...
# compose
k
Hello, I am looking permission sample. I found two sample projects. I am little bit confused which one is correct and updated one to use. I have one inside permissions and another one is inside the samples. Anyone please help me which one we need to use and latest one. Thanks
@Manuel Vivo @Alex Vanyo.
a
Have you checked the documentation? That's where the samples are from: https://google.github.io/accompanist/permissions/
k
yes the sample is using inside sample directory.
a
Well, the first link doesn't go to samples, it goes to the implementation. You can see in the sample that it's importing
import com.google.accompanist.permissions.rememberPermissionState
and you'll find the implementation in your first link: https://github.com/google/accompanist/blob/main/permissions/src/main/java/com/google/accompanist/permissions/PermissionState.kt So they're both correct, but you should follow the actual sample when implementing your views.
k
Ok great
Thanks a million