Skip to content

Match official requestPermissions interface #1704

Closed
@AndreMiras

Description

@AndreMiras

The Android API for requesting runtime permission has the following signature:

void requestPermissions (Activity activity,
                String[] permissions,
                int requestCode)

Currently via our PythonActivity.java class, we're providing:

public void requestNewPermission(String permission)

See https://github.com/kivy/python-for-android/blob/02519cc/pythonforandroid/bootstraps/sdl2/build/src/main/java/org/kivy/android/PythonActivity.java#L608
It would be great if our interface was also somewhat matching the official name/signature.

This would be a non-breaking change since we can keep our current requestNewPermission() method and just add the new requestPermissions() one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions