GithubHelp home page GithubHelp logo

Comments (11)

k0shk0sh avatar k0shk0sh commented on June 23, 2024

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.

from permissionhelper.

digitalprecision avatar digitalprecision commented on June 23, 2024

Does it match automatically based on permission name?

from permissionhelper.

k0shk0sh avatar k0shk0sh commented on June 23, 2024

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

from permissionhelper.

digitalprecision avatar digitalprecision commented on June 23, 2024

I am trying to do something like this: https://gist.github.com/digitalprecision/dce876fb3a2d0c444e9f883b0d15bf35

from permissionhelper.

k0shk0sh avatar k0shk0sh commented on June 23, 2024

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

from permissionhelper.

k0shk0sh avatar k0shk0sh commented on June 23, 2024

well, im kinda sorry if my comment does not make sense as im using phone to reply you.

from permissionhelper.

digitalprecision avatar digitalprecision commented on June 23, 2024

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?

from permissionhelper.

k0shk0sh avatar k0shk0sh commented on June 23, 2024

In this case permissions explanation are required when only the permission
is being declined and then you asked for the permission again, in thise you
should show the explanation, if you had like to show an explanation before
promoting for accepting the permission, maybe you better go with an
AlerDialog with an explanation message and upon clicking on a button within
the dialog, you actually ask permissionHelper to request the permission for
you.

On Oct 8, 2016 12:06 AM, "Mike Purcell" [email protected] wrote:

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?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#24 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA6o_3A_Sr_pOJG-xp4smGb4GQCkPElvks5qxm3zgaJpZM4KRLie
.

from permissionhelper.

digitalprecision avatar digitalprecision commented on June 23, 2024

Gotcha. Ok, thanks. Working on implementing the pager to add styling.

from permissionhelper.

k0shk0sh avatar k0shk0sh commented on June 23, 2024

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.

from permissionhelper.

digitalprecision avatar digitalprecision commented on June 23, 2024

Awesome, thanks! Appreciate the api.

from permissionhelper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.