linking.url
The URL that last opened the app, starting with the one it launched with; null when no link opened it. Watched, it follows each link that opens the app while it runs.
Utilisation
Open a URL and inspect incoming links
import { watch, linking } from 'kuito';
await linking.open('https://www.tvmaze.com');
if (await linking.canOpen('mailto:hi@example.com')) await linking.open('mailto:hi@example.com');
linking.url.value; // 'kuito://show/42', or null
watch(linking.url, (url) => console.log(url)); // in a componentPropriétés et méthodes 1
| Nom | Type | Requis | Description |
|---|---|---|---|
valuelecture seule | string | Oui | — |
Généré depuis les déclarations TypeScript publiques : signatures, props et valeurs par défaut viennent de la source vérifiée, les descriptions de sa JSDoc. Aucune valeur par défaut n'est inventée.