-
public abstract class MultiplePermissionsLauncherA permission launcher for multiples permissions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMultiplePermissionsLauncher.ContractInternal usage or for Java users. Kotlin users should always use allOf or anyOf instead.
public interfaceMultiplePermissionsLauncher.Launcher
-
Field Summary
Fields Modifier and Type Field Description private final <ERROR CLASS>permissions
-
Constructor Summary
Constructors Constructor Description MultiplePermissionsLauncher(MultiplePermissionsLauncher.Contract contract)
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>getPermissions()final Unitlaunch(Function2<Set<String>, RationalePermissionLauncher, Unit> rationaleCallback, Function2<Set<String>, Boolean, Unit> deniedCallback, Function1<Set<String>, Unit> grantedCallback)Start permission request with optional specified callbacks. -
-
Constructor Detail
-
MultiplePermissionsLauncher
MultiplePermissionsLauncher(MultiplePermissionsLauncher.Contract contract)
-
-
Method Detail
-
getPermissions
final <ERROR CLASS> getPermissions()
-
launch
final Unit launch(Function2<Set<String>, RationalePermissionLauncher, Unit> rationaleCallback, Function2<Set<String>, Boolean, Unit> deniedCallback, Function1<Set<String>, Unit> grantedCallback)
Start permission request with optional specified callbacks.
- Parameters:
rationaleCallback- A optional rationale callback called for this specific launch when this launcher is launched and a rationale should be present to user.deniedCallback- A optional denied callback called for this specific launch when this launcher failed.grantedCallback- A success callback called for this specific launch when this launcher succeeded.
-
-
-
-