Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added shouldNavigateToLink on NavigatorDelegate #331

Conversation

chrfalch
Copy link
Contributor

To be able to implement alternative ways of internal links, like presenting it in a separate view, this commit adds a NavigatorDelegate method called shouldNavigateToLink that by default returns true - but can be overridden to signal to the caller that we've handled the resource outside of the regular flow.

This can be used to catch things like links to non-linear resources (Impossible to open resource with linear=no #330).

chrfalch and others added 2 commits August 22, 2023 13:49
To be able to implement alternative ways of internal links, like presenting it in a separate view, this commit adds a NavigatorDelegate method called `shouldNavigateToLink` that by default returns true - but can be overridden to signal to the caller that we've handled the resource outside of the regular flow.

This can be used to catch things like links to non-linear resources (Impossible to open resource with linear=no readium#330).
@chrfalch chrfalch temporarily deployed to LCP August 29, 2023 07:21 — with GitHub Actions Inactive
@chrfalch chrfalch temporarily deployed to LCP August 29, 2023 07:22 — with GitHub Actions Inactive
@chrfalch chrfalch temporarily deployed to LCP August 29, 2023 07:30 — with GitHub Actions Inactive
@chrfalch chrfalch temporarily deployed to LCP August 29, 2023 07:30 — with GitHub Actions Inactive
@mickael-menu mickael-menu temporarily deployed to LCP August 29, 2023 11:12 — with GitHub Actions Inactive
@mickael-menu mickael-menu temporarily deployed to LCP August 29, 2023 11:12 — with GitHub Actions Inactive
@mickael-menu mickael-menu temporarily deployed to LCP August 29, 2023 11:39 — with GitHub Actions Inactive
@mickael-menu mickael-menu temporarily deployed to LCP August 29, 2023 11:39 — with GitHub Actions Inactive
@mickael-menu mickael-menu merged commit 192fd36 into readium:develop Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants