permissions-dispatcher / PermissionsDispatcher

A declarative API to handle Android runtime permissions.
https://github.com/permissions-dispatcher/PermissionsDispatcher
Apache License 2.0
11.22k stars 1.44k forks source link

[Question] Detect annotation kind if few defined for a methon #589

Closed neooleg closed 5 years ago

neooleg commented 5 years ago

Hi Team,

Thanks a lot to amazing product!

Does this possible to understand which action user did if the following solution implemented?

    @NeedsPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE)
    @OnPermissionDenied(Manifest.permission.WRITE_EXTERNAL_STORAGE)
    @OnNeverAskAgain(Manifest.permission.WRITE_EXTERNAL_STORAGE)
    public void writeStorage() {
        // Detect a kind of annotation to handle
    }

Thanks in advance!

hotchemi commented 5 years ago

@neooleg Hi there now we don't support as such and no plan to do that~. We recommend to separate definitions to make them declarative~.

neooleg commented 5 years ago

Got it, thanks for a quick answer