-
Notifications
You must be signed in to change notification settings - Fork 208
RouterApi for RxJava
xiaojinzi123 edited this page Jun 17, 2021
·
1 revision
@HostAndPathAnno("user/detail")
fun go(
context: Context,
@ParameterAnno("userId") userId: String
): Completable
@NavigateAnno(forResult = true) // 注意这里要和返回值对应
@HostAndPathAnno("user/detail")
@RequestCodeAnno() // 表示随机使用一个 requestCode
fun go(
context: Context,
@ParameterAnno("userId") userId: String
): Single<ActivityResult>
@NavigateAnno(forIntent = true) // 注意这里要和返回值对应
@HostAndPathAnno("user/detail")
@RequestCodeAnno() // 表示随机使用一个 requestCode
fun go(
context: Context,
@ParameterAnno("userId") userId: String
): Single<Intent>
@NavigateAnno(forIntent = true, resultCodeMatch = Activity.RESULT_OK)
@HostAndPathAnno("user/detail")
@RequestCodeAnno() // 表示随机使用一个 requestCode
fun go(
context: Context,
@ParameterAnno("userId") userId: String
): Single<Intent>
@NavigateAnno(forResultCode = true)
@HostAndPathAnno("user/detail")
@RequestCodeAnno() // 表示随机使用一个 requestCode
fun go(
context: Context,
@ParameterAnno("userId") userId: String
): Single<Int>
@NavigateAnno(resultCodeMatch = Activity.RESULT_OK)
@HostAndPathAnno("user/detail")
@RequestCodeAnno() // 表示随机使用一个 requestCode
fun go(
context: Context,
@ParameterAnno("userId") userId: String
): Completable