@Override public void onPermissionRationaleShouldBeShown( PermissionRequest permission, PermissionToken token) { for (PermissionListener listener : listeners) { listener.onPermissionRationaleShouldBeShown(permission, token); } }
public void onEvent(TedPermissionEvent event) { if (event.hasPermission()) { listener.onPermissionGranted(); } else { listener.onPermissionDenied(event.getDeniedPermissions()); } EventBus.getDefault().unregister(this); }
@Override public void onPermissionDenied(PermissionDeniedResponse response) { for (PermissionListener listener : listeners) { listener.onPermissionDenied(response); } }