Skip to content

Commit

Permalink
onFailure method is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
NoNews committed Nov 5, 2017
1 parent 33fb6dd commit 6fc38f6
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ public PermissionHelper onDenied(Runnable listener) {
return this;
}

/**
* @deprecated use method onFailure instead that
*
*/
@Deprecated
public PermissionHelper onFailure(Runnable listener) {
this.deniedListener = listener;
return this;
}

/**
* This method setup never ask again callback
Expand Down Expand Up @@ -142,6 +151,12 @@ private void checkPermissions() {
}
}


/**
* This method ask permission
* @param permissionsForRequest array of permissions which you want to ask
*/

@SuppressLint("NewApi")
private void askPermissions(String[] permissionsForRequest) {
if (activity != null) {
Expand Down

0 comments on commit 6fc38f6

Please sign in to comment.