-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PermissionModelBuilder in ActivityMain? #24
Comments
SimplePagerActivity extends PermissionHelper base activity which in return it handle that for you. You must extend that activity to accomplish the guide through pagination. Please follow that class and you should be good to go. |
Does it match automatically based on permission name? |
if you actually wants to have it totally customized then you should check the base activity and then see how does it work and use it as you wish, however i suggest that you extend that activity as it handle all the stuff for you. please let me know what use case you trying to achieve without extending the base activity |
I am trying to do something like this: https://gist.github.com/digitalprecision/dce876fb3a2d0c444e9f883b0d15bf35 |
well, you shouldn't not use PermissionModelBuilder in this case as its redundant, it does not but construct a model class that is used by the BasePermissionAcitivity, if you like to request permissions by yourself then you should follow the SampleActivity without caring about Pagination, if you do case about having like some sort of education kind of UI and requesting an individual permissions separately then you should follow SimplePagerActivity |
well, im kinda sorry if my comment does not make sense as im using phone to reply you. |
Np, I appreciate you responding. It sort of makes sense. If I got the SampleActivity route, how would I add the explanation? The alert dialog code in the SampleActivity file only passes in the permission, no explanation message. Should I just do a switch case on permission string? |
In this case permissions explanation are required when only the permission On Oct 8, 2016 12:06 AM, "Mike Purcell" notifications@github.com wrote:
|
Gotcha. Ok, thanks. Working on implementing the pager to add styling. |
good luck, anything please do ask back here and if im available i will try my best to help. meantime i will be closing this issue. |
Awesome, thanks! Appreciate the api. |
Can you post an example of how to reference an array element from SamplePagerActivity in SampleActivity? I am trying to customize the boxes, but when I call
permissionHelper .setForceAccepting(false) .request(MULTI_PERMISSIONS);
No customizations appear. Just the default alerts.
The text was updated successfully, but these errors were encountered: