LauncherExtensions.CanOpenAsync(ILauncher, String) Method

Definition

Queries if the device supports opening the given URI scheme.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<bool> ^ CanOpenAsync(Microsoft::Maui::ApplicationModel::ILauncher ^ launcher, System::String ^ uri);
public static System.Threading.Tasks.Task<bool> CanOpenAsync (this Microsoft.Maui.ApplicationModel.ILauncher launcher, string uri);
static member CanOpenAsync : Microsoft.Maui.ApplicationModel.ILauncher * string -> System.Threading.Tasks.Task<bool>
<Extension()>
Public Function CanOpenAsync (launcher As ILauncher, uri As String) As Task(Of Boolean)

Parameters

launcher
ILauncher

The object this method is invoked on.

uri
String

URI scheme to query.

Returns

true if opening is supported, otherwise false.

Exceptions

Thrown when uri is malformed.

Applies to