Permissions.ShouldShowRationale<TPermission> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines if an educational UI should be displayed explaining to the user how the permission will be used in the application.
public:
generic <typename TPermission>
where TPermission : Microsoft::Maui::ApplicationModel::Permissions::BasePermissiongcnew() static bool ShouldShowRationale();
public static bool ShouldShowRationale<TPermission>() where TPermission : Microsoft.Maui.ApplicationModel.Permissions.BasePermission, new();
static member ShouldShowRationale : unit -> bool (requires 'Permission :> Microsoft.Maui.ApplicationModel.Permissions.BasePermission and 'Permission : (new : unit -> 'Permission))
Public Shared Function ShouldShowRationale(Of TPermission As {Permissions.BasePermissionNew}) () As Boolean
Type Parameters
- TPermission
The permission type to check.
Returns
true
if the user has denied or disabled the permission in the past, else false
.
Remarks
Only used on Android, other platforms will always return false
.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.