Skip to content

Commit

Permalink
RxPermission: Fix return type of request & requestEach. Always non-nu…
Browse files Browse the repository at this point in the history
…ll. (#106)
  • Loading branch information
vanniktech authored Aug 19, 2022
1 parent 6f9698c commit 8f49db3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import io.reactivex.annotations.CheckReturnValue

interface RxPermission {
/** Requests a single permission. */
@CheckReturnValue fun request(permission: String): Single<Permission?>
@CheckReturnValue fun request(permission: String): Single<Permission>

/** Requests multiple permissions. */
@CheckReturnValue fun requestEach(vararg permissions: String): Observable<Permission?>
@CheckReturnValue fun requestEach(vararg permissions: String): Observable<Permission>

/** Returns true when the given permission is granted. */
@CheckReturnValue fun isGranted(permission: String): Boolean
Expand Down

0 comments on commit 8f49db3

Please sign in to comment.