GithubHelp home page GithubHelp logo

Comments (6)

xiaojinzi123 avatar xiaojinzi123 commented on June 5, 2024

不行的 你这个是动作. 不是路由

Component 路由是必须 intent 为基础的. 以前有过这个功能 被删了 和设计不符

from component.

brandlee avatar brandlee commented on June 5, 2024

嗯嗯,我了解你设计的宗旨,是基于路由的,主要是现实的场景会有跳转到第三方的页面,但是只能通过SDK跳转,所以就想着能不能通过路由方法来实现。但是就像你说的,这是一个动作,不是路由。

from component.

xiaojinzi123 avatar xiaojinzi123 commented on June 5, 2024

你这种通过 sdk 的. 你可以用协程包装一个 suspend 等一个结果.
其他地方调用起来也很爽的呀.

from component.

brandlee avatar brandlee commented on June 5, 2024

你说的应该是RouterApi for Coroutine吧?但是有一个问题,跳转第三方sdk的,其实也是一个scheme,调用起来就还是需要特殊来判断吧

from component.

xiaojinzi123 avatar xiaojinzi123 commented on June 5, 2024

不是 ,我说的就是写一个简单正常的 suspend 的函数对 sdk 的跳转进行包装. 通常 sdk 的跳转都能回调结果的.

from component.

brandlee avatar brandlee commented on June 5, 2024

服务器下发的直接就是一个scheme,就得对scheme特殊判断,如果是指定SDK的,然后再进行跳转了

from component.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.