package com.gh.common.provider

import android.content.Context
import android.os.Build
import androidx.annotation.RequiresApi
import com.therouter.router.Route
import com.gh.common.util.UsageStatsHelper
import com.gh.gamecenter.common.constant.RouteConsts
import com.gh.gamecenter.core.provider.IUsageStatsHelperProvider

@com.therouter.inject.ServiceProvider
class UsageStatsHelperProviderImpl : IUsageStatsHelperProvider {
    @RequiresApi(Build.VERSION_CODES.LOLLIPOP_MR1)
    override fun checkForPermission(): Boolean = UsageStatsHelper.checkForPermission()
    override fun skipToUsageStats(context: Context, requestCode: Int) {
        UsageStatsHelper.skipToUsageStats(context, requestCode)
    }
}