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
    ): Boolean {
        return DefaultUrlHandler.interceptUrl(context, url, entrance, bringAppToFront)
    }

    override fun init(context: Context?) {
        // Do nothing
    }
}