All Projects → warting → permissions-ui

warting / permissions-ui

Licence: MIT license
Background location permissions request helper

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to permissions-ui

easypermissions-ktx
🔓 Kotlin version of the popular google/easypermissions wrapper library to simplify basic system permissions logic on Android M or higher.
Stars: ✭ 324 (+511.32%)
Mutual labels:  permissions
iam-policies
Iam policies implementation for create roles and manage permissions
Stars: ✭ 20 (-62.26%)
Mutual labels:  permissions
Kuberam
Kuberam is built on jetpack compose + Auth0 during Hashnode Hackathon.
Stars: ✭ 33 (-37.74%)
Mutual labels:  jetpack-compose
ASoulZhiWang
ASOUL评论区小作文助手
Stars: ✭ 64 (+20.75%)
Mutual labels:  jetpack-compose
ComposeNotes
Notes app with full jetpack compose architecture (UI + navigation). Uses MVVM, Room, Kotlin Flows & LiveData
Stars: ✭ 32 (-39.62%)
Mutual labels:  jetpack-compose
django-cancan
🔓Authorization library for Django
Stars: ✭ 36 (-32.08%)
Mutual labels:  permissions
django-hats
Role-based permissions system for Django. Everyone wears a different hat, some people wear multiple.
Stars: ✭ 21 (-60.38%)
Mutual labels:  permissions
podcast-app
Podcast App
Stars: ✭ 291 (+449.06%)
Mutual labels:  jetpack-compose
PexWallpapers
Android application following best practices: Jetpack, Jetpack Compose, Modularity, Clean Architecture, Kotlin Coroutines, Tests, MVVM, DI, Static Analysis
Stars: ✭ 86 (+62.26%)
Mutual labels:  jetpack-compose
Tachidesk-JUI
A Tachidesk Client built in Compose Multiplatform
Stars: ✭ 203 (+283.02%)
Mutual labels:  jetpack-compose
GitReposCompose
GitReposCompose is an Android application 📱 for showcasing Jetpack Compose for building declarative UI in Android. This demo app uses Github public API for fetching public repositories.
Stars: ✭ 32 (-39.62%)
Mutual labels:  jetpack-compose
JetpackCompose.app
🚀 The best source on the interwebs for all things Jetpack Compose!
Stars: ✭ 72 (+35.85%)
Mutual labels:  jetpack-compose
sentry
A lightweight (23KB) wrapper for inline Android permission checks/requests.
Stars: ✭ 22 (-58.49%)
Mutual labels:  permissions
compose-tetris
🧱 A tetris game fully built using Jetpack Compose
Stars: ✭ 575 (+984.91%)
Mutual labels:  jetpack-compose
Biometric-Authentication-Android
A sample implementation of AndroidX biometrics API using Kotlin. Authenticate using biometrics or PIN/Password if biometrics isn't available on device. Fully implemented in Jetpack compose using Material 3 dynamic theming and also has a separate implementation in xml with MDC 3.
Stars: ✭ 29 (-45.28%)
Mutual labels:  jetpack-compose
go-acl
Go library for manipulating ACLs on Windows
Stars: ✭ 97 (+83.02%)
Mutual labels:  permissions
Notflix
Kotlin Multiplatform playground
Stars: ✭ 272 (+413.21%)
Mutual labels:  jetpack-compose
spree admin roles and access
Admin Roles And Access for Spree
Stars: ✭ 45 (-15.09%)
Mutual labels:  permissions
MusicX
MusicX is a music player 🎵 android app built using Kotlin and Jetpack Compose. It follows M.A.D. practices and hence is a good learning resource for beginners
Stars: ✭ 85 (+60.38%)
Mutual labels:  jetpack-compose
neon
Provides Jetpack Compose support for different image loading libraries.
Stars: ✭ 13 (-75.47%)
Mutual labels:  jetpack-compose

Maven Central Crowdin

Permission UI

A set of Android-UI components to make it easier to request permission in a user friendly way.

Access background location

A jetpack compose module to easy request background location permission in a intuitive way.

happy case gif

How to include in your project

The library is available via MavenCentral:

allprojects {
    repositories {
        // ...
        mavenCentral()
    }
}

Add it to your module dependencies:

dependencies {
    implementation("se.warting.permissionsui:permissionsui:<latest_version>")
}
Snapshots of the development version are available in Sonatype's snapshots repository.

Sonatype Nexus (Snapshots)

allprojects {
    repositories {
        // ...
        maven {
            url 'https://oss.sonatype.org/content/repositories/snapshots/'
        }
    }
}

How to use

All you need to do is to call LocationInBackgroundTutorialView:

LocationInBackgroundTutorialView() {
    // Permissions granted 
}

Example:

import se.warting.permissionsui.backgroundlocation.LocationInBackgroundTutorialView

class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContent {
            BackgroundLocationPermissionRationaleTheme {
                Surface(color = MaterialTheme.colors.background) {
                    LocationInBackgroundTutorialView() {
                        // Permissions granted 
                    }
                }
            }
        }
    }
}

If you are not using compose in your app you can use PermissionsUiContracts.RequestBackgroundLocation See: kotlin sample or java sample

For a full implementation see: Full sample

Notes

This Library adds the following permissions to your app:

  • android.permission.ACCESS_COARSE_LOCATION
  • android.permission.ACCESS_FINE_LOCATION
  • android.permission.ACCESS_BACKGROUND_LOCATION

Samples

SDK Happy case Rationale case Worst case
10 happy case gif rationale case gif worst case gif
12 happy case gif rationale case gif worst case gif
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].