System.Permissions.TRequestPermissionsResultProc

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TRequestPermissionsResultProc = reference to procedure(const APermissions: TClassicStringDynArray;
const AGrantResults: TClassicPermissionStatusDynArray);

C++

__interface TRequestPermissionsResultProc  : public System::IInterface

Properties

Type Visibility Source Unit Parent
anonMethod
class
public
System.Permissions.pas
System.Permissions.hpp
System.Permissions System.Permissions

Description

Callback type for providing an explanation to the user for the need for a permission.

For previously denied permissions with a pre-loaded rationale string, this callback provides the opportunity to display it, but it has to be done asynchronously. When the rationale display is over, be sure to call the APostRationalProc routine, which will then request the required permissions. This type is compatible with an event handler method.

For each requested permission in APermissions, there is a Boolean in AGrantResults indicating if the permission was granted. This type is compatible with an anonymous procedure.

See Also