Skip to content

Library to request permission in Delphi for Android easily

Notifications You must be signed in to change notification settings

angelosobreira/EasyPermission

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

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);

About

Library to request permission in Delphi for Android easily

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages