permission_handler_tizen 1.1.0 copy "permission_handler_tizen: ^1.1.0" to clipboard
permission_handler_tizen: ^1.1.0 copied to clipboard

outdated

Tizen implementation of the permission_handler plugin

permisson_handler_tizen #

The Tizen implementation of permisson_handler.

You can use this plugin to ask the user for runtime permissions if your app performs security-sensitive operations or access restricted data.

Usage #

  1. Declare privileges in your tizen-manifest.xml file. For example, if you want to access the device's media library in your Flutter app:

    <manifest>
      ...
      <privileges>
        <privilege>http://tizen.org/privilege/mediastorage</privilege>
      </privileges>
    </manifest>
    
    Permission Tizen permission Privileges
    Permission.accessMediaLocation Android-only
    Permission.activityRecognition Android-only
    Permission.bluetooth iOS-only
    Permission.calendar Calendar http://tizen.org/privilege/calendar.read
    http://tizen.org/privilege/calendar.write
    Permission.camera Camera http://tizen.org/privilege/camera
    Permission.contact Contacts http://tizen.org/privilege/contact.read
    http://tizen.org/privilege/contact.write
    Permission.location
    Permission.locationAlways
    Permission.locationWhenInUse
    Location http://tizen.org/privilege/location
    http://tizen.org/privilege/location.coarse
    Permission.mediaLibrary Storage http://tizen.org/privilege/mediastorage
    Permission.microphone Microphone http://tizen.org/privilege/recorder
    Permission.phone Call http://tizen.org/privilege/call
    Permission.photos
    Permission.photosAddOnly
    iOS-only
    Permission.reminders iOS-only
    Permission.sensors Sensor http://tizen.org/privilege/healthinfo
    Permission.sms Message http://tizen.org/privilege/message.read
    http://tizen.org/privilege/message.write
    Permission.speech iOS-only
    Permission.storage Storage http://tizen.org/privilege/externalstorage

    For more information on Tizen privileges, see Security and API Privileges.

  2. Add permission_handler and permission_handler_tizen as dependencies in your pubspec.yaml file.

    dependencies:
      permission_handler: ^6.1.1
      permission_handler_tizen: ^1.1.0
    

    Then you can import permission_handler in your Dart code:

    import 'package:permission_handler/permission_handler.dart';
    

    For detailed usage of the plugin, see https://github.com/Baseflow/flutter-permission-handler#how-to-use.

Notes #

This plugin is intended for Galaxy Watch devices only. On TVs, you don't need to request permissions since they are already granted to apps by default.