Java Code Examples for pub.devrel.easypermissions.EasyPermissions#onRequestPermissionsResult()

The following examples show how to use pub.devrel.easypermissions.EasyPermissions#onRequestPermissionsResult() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MainActivity.java    From apps-script-mobile-addons with Apache License 2.0 5 votes vote down vote up
/**
 * Respond to requests for permissions at runtime for SDK 23 and above.
 * @param requestCode The request code passed in
 *     requestPermissions(android.app.Activity, String, int, String[])
 * @param permissions The requested permissions. Never null.
 * @param grantResults The grant results for the corresponding permissions
 *     which is either PERMISSION_GRANTED or PERMISSION_DENIED. Never null.
 */
@Override
public void onRequestPermissionsResult(int requestCode,
                                       @NonNull String[] permissions,
                                       @NonNull int[] grantResults) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);
    EasyPermissions.onRequestPermissionsResult(
            requestCode, permissions, grantResults, MainActivity.this);
}
 
Example 2
Source File: WiFiActivity.java    From android_connectionbuddy with Apache License 2.0 5 votes vote down vote up
@Override
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);

    // Forward results to EasyPermissions
    EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
}
 
Example 3
Source File: MainFragment.java    From easypermissions with Apache License 2.0 5 votes vote down vote up
@Override
public void onRequestPermissionsResult(int requestCode,
                                       @NonNull String[] permissions,
                                       @NonNull int[] grantResults) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);

    // EasyPermissions handles the request result.
    EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
}
 
Example 4
Source File: ImageActivity.java    From FirebaseUI-Android with Apache License 2.0 5 votes vote down vote up
@Override
public void onRequestPermissionsResult(int requestCode,
                                       @NonNull String[] permissions,
                                       @NonNull int[] grantResults) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);
    EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
}
 
Example 5
Source File: FeedManageActivity.java    From Focus with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);

    /**
     * 2. easyPermission 接管权限管理
     * {@link OPMLReadHelper#run}
     */
    EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
}
 
Example 6
Source File: ImagesFragment.java    From android-storage-permissions with Apache License 2.0 5 votes vote down vote up
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
                                       @NonNull int[] grantResults) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);

    // Forward results to EasyPermissions
    EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
}
 
Example 7
Source File: FileViewDemoMainActivity.java    From AndroidDocumentViewer with MIT License 4 votes vote down vote up
@Override
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);
    // Forward results to EasyPermissions
    EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
}
 
Example 8
Source File: MainActivity.java    From blinkreceipt-android with MIT License 4 votes vote down vote up
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults ) {
    super.onRequestPermissionsResult( requestCode, permissions, grantResults );

    EasyPermissions.onRequestPermissionsResult( requestCode, permissions, grantResults, this );
}
 
Example 9
Source File: AppDetailsFragment.java    From android-permission-checker-app with Apache License 2.0 4 votes vote down vote up
@Override public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
    @NonNull int[] grantResults) {
  EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
}
 
Example 10
Source File: SystemGalleryActivity.java    From SmallGdufe-Android with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);
    EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
}
 
Example 11
Source File: SettingsFragmentView.java    From FastAccess with GNU General Public License v3.0 4 votes vote down vote up
@Override public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);
    EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
}
 
Example 12
Source File: AuthActivity.java    From mvvm-starter with MIT License 4 votes vote down vote up
@Override
public void onRequestPermissionsResult (int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)
{
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);
    EasyPermissions.onRequestPermissionsResult(I.LOCATION_REQUEST_CODE, permissions, grantResults, this);
}
 
Example 13
Source File: TestActivity.java    From JD-Test with Apache License 2.0 4 votes vote down vote up
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);
    EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
}
 
Example 14
Source File: StartUI.java    From Pix-Art-Messenger with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);
    // Forward results to EasyPermissions
    EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
}
 
Example 15
Source File: WelcomeFragment2.java    From OneText_For_Android with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);
    //把申请权限的回调交由EasyPermissions处理
    EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, activity);
}
 
Example 16
Source File: ReactChatInputManager.java    From aurora-imui with MIT License 4 votes vote down vote up
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
                                       @NonNull int[] grantResults) {
    EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
}
 
Example 17
Source File: MainActivity.java    From AndroidSamples with Apache License 2.0 4 votes vote down vote up
@Override
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);

    EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
}
 
Example 18
Source File: MainActivity.java    From SocialSDKAndroid with Apache License 2.0 4 votes vote down vote up
@Override
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);
    EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
}
 
Example 19
Source File: WalletActivity.java    From Walrus with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
        @NonNull int[] grantResults) {
    EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
}
 
Example 20
Source File: WelcomeActivity.java    From OneText_For_Android with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);
    //把申请权限的回调交由EasyPermissions处理
    EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
}