# A2uiUrlOpener

Artifact: [androidx.a2ui:a2ui-model](https://developer.android.com/jetpack/androidx/releases/a2ui) [View Source](https://cs.android.com/search?q=file:androidx/a2ui/model/catalog/functions/A2uiOpenUrlFunction.kt+class:androidx.a2ui.model.catalog.functions.A2uiUrlOpener) Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

*** ** * ** ***


```
public fun interface A2uiUrlOpener
```

<br />

*** ** * ** ***

Interface to open a URL.

The implementation of this interface should be provided by the platform (e.g., using Android's Intent.ACTION_VIEW).

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/a2ui/model/catalog/functions/A2uiUrlOpener#openUrl(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html url)` Opens the specified URL. |

## Public methods

### openUrl

Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

```
abstract void openUrl(@NonNull String url)
```

Opens the specified URL.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html url` | the URL string to open |