Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

EasyPermission

Library to request permission in Delphi for Android easily

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

Easy Permisson Library

A small library to request permission in Android with Embarcadero Delphi Development.

To use in your project, add EasyPermission.Permission.pas in your project.

To request camera permission, just do it:

pascal
TEasyPermission.GetInstance.RequestPermission([TEasyPermissionType.PermissionCamera],
                                                 procedure(PermissionGranted : Boolean)                                                 
                                                 begin
                                                   if PermissionGranted then
                                                   begin
                                                     CameraComponent1.Active := True;
                                                   end
                                                   else
                                                   begin
                                                     ShowMessage('You need do allow to permission to open camera')
                                                   end;
                                                 end);