패키지, 저장소 및 앱 카테고리 검색

패키지 상세v13.0.2

permission_handler

Flutter용 권한 플러그인입니다. 이 플러그인은 iOS 및 Android를 포함한 크로스 플랫폼에서 권한 요청 및 확인을 위한 API를 제공합니다.

AndroidiOSWebWindows
30일 다운로드
393만
좋아요
6천
Pub 점수
160

패키지 설치

flutter pub add permission_handler

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

permission_handler 패키지는 안드로이드, iOS, 웹 및 윈도우에서 Flutter 애플리케이션의 장치 권한을 요청하고 확인하기 위한 크로스플랫폼 API를 제공합니다. 카메라, 마이크, 위치, 스토리지 접근과 같은 민감한 사용자 권한을 일관되고 플랫폼에 관계없이 처리할 수 있도록 간소화합니다. 이 플러그인은 다양한 운영 체제에서 안전하고 신뢰할 수 있는 권한 관리를 보장하며, 반복 코드를 줄이고 개발자 경험을 향상시킵니다. Flutter 생태계와 원활하게 통합되며 런타임 권한 요청과 상태 확인 모두를 지원합니다.

사용 사례

  • 사진 앱에서 카메라 접근 권한 요청
  • GPS 기능을 사용하기 전에 위치 권한 확인
  • 파일 업로드를 위한 스토리지 액세스 관리
  • 음성 녹음 앱에서 마이크 권한 다루기
  • 개인정보 보호 규정 준수 보장

주요 기능

  • 크로스 플랫폼 지원 (Android, iOS, Web, Windows)
  • 권한 요청 및 확인을 위한 간단한 API
  • 런타임 권한 처리를 지원합니다
  • 세부 권한 상태를 반환합니다
  • Flutter 워크플로우와 잘 통합됩니다

적합한 대상

  • 기기 하드웨어 접근이 필요한 앱
  • 개인정보 보호 중심 애플리케이션
  • 다중 플랫폼 Flutter 프로젝트
  • 일관된 권한 처리를 원하는 개발자
  • 플랫폼별 권한 정책 준수를 필요로 하는 프로젝트

고려 사항

  • 플랫폼별 파일(예: Info.plist, AndroidManifest.xml)에서 올바른 구성이 필요합니다
  • 권한 부여를 위해 사용자 상호작용이 필요할 수 있습니다
  • 모든 엣지 케이스를 자동으로 처리하지 않습니다
  • 표준 시스템 권한에 제한됨
  • async/await 패턴의 올바른 사용에 따라 달라짐

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Flutter permission_handler plugin

The Flutter permission_handler plugin is build following the federated plugin architecture. A detailed explanation of the federated plugin concept can be found in the Flutter documentation. This means the permission_handler plugin is separated into the following packages:

  1. permission_handler: the app facing package. This is the package users depend on to use the plugin in their project. For details on how to use the permission_handler plugin you can refer to its README.md file. At this moment the Android and iOS platform implementations are also part of this package. Additional platform support will be added in their own individual "platform package(s)".
  2. permission_handler_platform_interface: this packages declares the interface which all platform packages must implement to support the app-facing package. Instructions on how to implement a platform packages can be found in the README.md of the permission_handler_platform_interface package.

카테고리

의존성

의존성 목록 6 개

  • meta^1.7.0
  • permission_handler_android^14.1.0
  • permission_handler_apple^9.5.0
  • permission_handler_html^0.1.4+0
  • permission_handler_platform_interface^4.4.0
  • permission_handler_windows^0.2.2

소스 저장소

이 패키지를 사용하는 프로젝트

순위