Share via


Permissions.ShouldShowRationale<TPermission> Method

Definition

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