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
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.