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.
Utilização
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 componentPropriedades e métodos 1
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
valuesó de leitura | string | Sim | — |
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.