-
public final class FragmentKt
-
-
Method Summary
Modifier and Type Method Description final static PermissionLaunchercreatePermissionLauncher(Fragment $self, String permission)Convenient way to create a PermissionLauncher from current Fragment. final static MultiplePermissionsLaunchercreateMultiplePermissionsLauncher(Fragment $self, MultiplePermissionsLauncher.Contract multiplePermissionsContract)Convenient way to create a MultiplePermissionsLauncher from current Fragment. final static BooleanhasPermission(Fragment $self, String permission)Convenient way to get if a permission is granted from a Fragment. final static <ERROR CLASS>hasAllPermissions(Fragment $self, String permissions)Convenient way to get if a set of permissions are granted from a Fragment. final static <ERROR CLASS>hasAnyPermissions(Fragment $self, String permissions)Convenient way to get if a set of permissions are granted from a Fragment. -
-
Method Detail
-
createPermissionLauncher
final static PermissionLauncher createPermissionLauncher(Fragment $self, String permission)
Convenient way to create a PermissionLauncher from current Fragment.
-
createMultiplePermissionsLauncher
final static MultiplePermissionsLauncher createMultiplePermissionsLauncher(Fragment $self, MultiplePermissionsLauncher.Contract multiplePermissionsContract)
Convenient way to create a MultiplePermissionsLauncher from current Fragment.
-
hasPermission
final static Boolean hasPermission(Fragment $self, String permission)
Convenient way to get if a permission is granted from a Fragment.
-
hasAllPermissions
final static <ERROR CLASS> hasAllPermissions(Fragment $self, String permissions)
Convenient way to get if a set of permissions are granted from a Fragment.
-
hasAnyPermissions
final static <ERROR CLASS> hasAnyPermissions(Fragment $self, String permissions)
Convenient way to get if a set of permissions are granted from a Fragment.
-
-
-
-