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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.