DeviceLauncher
Namespace: Wisej.Hybrid
Assembly: Wisej.Hybrid
Provides methods to interact with app launching and external file opening on the device.
- C#
- VB.NET
public class DeviceLauncher
Public Class DeviceLauncher
Access this class through the Device singleton.
Constructors
DeviceLauncher()
Initializes a new instance of DeviceLauncher.
Methods
CanOpen(url)
Checks whether a given app link can be opened on the device.
| Parameter | Type | Description |
|---|---|---|
| url | String | The app link (e.g., "lyft://") to check for availability. |
Returns: Boolean. true if the app link can be opened; otherwise, false.
Open(url)
Attempts to open the given application link on the device.
| Parameter | Type | Description |
|---|---|---|
| url | String | The application link (e.g., "lyft://ridetype?id=lyft_line") to open. |
Open(popoverTitle, fileName, fileData)
Opens the given file using the default app associated with its file type.
| Parameter | Type | Description |
|---|---|---|
| popoverTitle | String | The title for the file picker popover (iOS only). |
| fileName | String | The name of the file to open. |
| fileData | Byte[] | The byte array containing the file's data. |
See: https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/appmodel/launcher. Throws:
- NotImplementedException Thrown if the file opening operation is not supported.