airbnb / DeepLinkDispatch

A simple, annotation-based library for making deep link handling better on Android
http://nerds.airbnb.com/deeplinkdispatch/
4.38k stars 407 forks source link

customized method for deep link handler #207

Open JeckChou opened 6 years ago

JeckChou commented 6 years ago

the deeplinkdispatch is a good library and I was used it in my project. in my case , I want to do something before intent submit via startactivity, but I have find no method for my case. I have to return a intent immediate. eg. I want to request data from network and start different activity with network data. can this library support this case on next plan.

@WebLink("/site/page")
public static void linkAppPage(Content aContent,Bundle aExtras){
 //do something here
//request data any where
    request.callback(){ data ->
         if (data is caseA){
            startactivity(A)
         }else{
           startactivity(B)
        }
       } 
}
Hiwensen commented 5 years ago

I also met this case in our project, have you solved this yet or something new? @JeckChou