[Feature]: Overriding WebViewDelegationHandler

オープン
#8,036 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
swift
領域
mobile

調査の方向性

ios/Capacitor/Capacitor/CAPBridgeViewController.swift から始め、private な WebViewDelegationHandler のインスタンス化と、PR 6894 で追加された router() 関数を確認してください。コンテキストとして issue 6605 を確認し、その後、サブクラス向けに handler の生成を拡張可能にする方法を判断してください。標準の controller の動作を変更せずにカスタム WebViewDelegationHandler を提供できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

triage
Description

I can't seem to find a way to override the standard WebViewDelegationHandler

Platforms
  • iOS
  • Android
  • Web
Request or proposed solution

I was trying to find a way to use my own "WebViewDelegationHandler" and looking at this issue https://github.com/ionic-team/capacitor/issues/6605

In this PR https://github.com/ionic-team/capacitor/pull/6894 I see that someone correctly abstracted the instantiation of certain object (e.g. the new "func router()" that can be found here.

However, the instantiation of "WebViewDelegationHandler" is in a private function here basically making it extremely hard to subclass.

Would a PR to move this into an extensible function (like "Router") be welcome?

Alternatives

No response

Additional Information

No response

主要言語
TypeScript
スター
17.1k
フォーク
1.3k
平均マージ
1日 22時間
マージ済み PR(30日)
26

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ionic-team/capacitor のほかの issue

ionic-team/capacitor の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。