## uni.addInterceptor(name, interceptor) @addinterceptor

<!-- UTSAPIJSON.addInterceptor.description -->

<!-- UTSAPIJSON.addInterceptor.param -->

<!-- UTSAPIJSON.addInterceptor.returnValue -->

<!-- UTSAPIJSON.addInterceptor.compatibility -->

<!-- UTSAPIJSON.addInterceptor.tutorial -->

## uni.removeInterceptor(name, interceptor?) @removeinterceptor

<!-- UTSAPIJSON.removeInterceptor.description -->

<!-- UTSAPIJSON.removeInterceptor.param -->

<!-- UTSAPIJSON.removeInterceptor.returnValue -->

<!-- UTSAPIJSON.removeInterceptor.compatibility -->

<!-- UTSAPIJSON.removeInterceptor.tutorial -->

<!-- UTSAPIJSON.interceptor.example -->

<!-- UTSAPIJSON.general_type.name -->

<!-- UTSAPIJSON.general_type.param -->

## Tips@tips

* 目前仅以下接口支持拦截器：navigateTo、redirectTo、reLaunch、switchTab、navigateBack、loadFontFace、pageScrollTo、startPullDownRefresh、setNavigationBarColor、setNavigationBarTitle、setTabBarBadge、removeTabBarBadge、setTabBarItem、setTabBarStyle、hideTabBar、showTabBar、showTabBarRedDot、hideTabBarRedDot
* 如需拦截request，可在插件市场搜索[拦截器插件](https://ext.dcloud.net.cn/search?q=%E6%8B%A6%E6%88%AA%E5%99%A8&uni-appx=1)