25 lines
817 B
Kotlin
25 lines
817 B
Kotlin
package com.gh.common.provider
|
|
|
|
import android.content.Context
|
|
import com.alibaba.android.arouter.facade.annotation.Route
|
|
import com.gh.common.DefaultUrlHandler
|
|
import com.gh.gamecenter.common.constant.RouteConsts
|
|
import com.gh.gamecenter.core.provider.IDefaultUrlHandlerProvider
|
|
|
|
@Route(path = RouteConsts.provider.defaultUrlHandler, name = "DefaultUrlHandler暴露服务")
|
|
class DefaultUrlHandlerProviderImpl : IDefaultUrlHandlerProvider {
|
|
|
|
override fun interceptUrl(
|
|
context: Context,
|
|
url: String,
|
|
entrance: String,
|
|
bringAppToFront: Boolean,
|
|
sourceEntrance: String
|
|
): Boolean {
|
|
return DefaultUrlHandler.interceptUrl(context, url, null, entrance, bringAppToFront, sourceEntrance)
|
|
}
|
|
|
|
override fun init(context: Context?) {
|
|
// Do nothing
|
|
}
|
|
} |