---
metadata:
  - name: generator
    content: Diplodoc Platform v5.39.1
alternate:
  - https://yandex.com/dev/contentblocker/doc/en/examples/index.md
  - https://yandex.com/dev/contentblocker/doc/ru/examples/index.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/contentblocker/doc/ru/llms.txt

# Пример настройки дополнения

Ниже приведен пример настройки дополнения [Adguard.ContentBlocker](https://play.google.com/apps/testing/com.adguard.android.contentblocker):

1. Блок провайдера контента в файле [AndroidManifest.xml](https://developer.android.com/guide/topics/manifest/manifest-intro.html):

    ```text
   <[provider](*provider)
       android:name="com.adguard.android.contentblocker.FiltersContentProvider"
       android:authorities="com.adguard.android.contentblocker.contentBlocker.contentProvider"
       android:exported="true">
   </provider>
    ```
    
1. Версия API Блокировки контента в файле [AndroidManifest.xml](https://developer.android.com/guide/topics/manifest/manifest-intro.html):

    ```text
    <[meta-data](*meta-data) android:name="com.samsung.android.sbrowser.contentBlocker.interfaceVersion" android:value="API_1.0" />
    ```
    
1. [Intent](https://developer.android.com/reference/android/content/Intent.html#Intent) на обновление фильтров:

    ```
    Intent intent = new Intent();
        intent.setAction("com.samsung.android.sbrowser.contentBlocker.ACTION_UPDATE");
        intent.setData(Uri.parse("package:com.adguard.android.contentblocker"));
        sendBroadcast(intent);
    ```
    
1. [Intent](https://developer.android.com/reference/android/content/Intent.html#Intent) для перехода в настройки после установки дополнения:

    ```
    Intent intent = new Intent();
        intent.setAction("com.samsung.android.sbrowser.contentBlocker.ACTION_SETTING");
        startActivity(intent);
    ```
    

[*provider]:[Оболочка](https://developer.android.com/guide/topics/manifest/provider-element.html), предоставляющая другим приложениям доступ к вашим данным.

[*meta-data]:[Мета-данные](https://developer.android.com/guide/topics/manifest/meta-data-element.html) дополнения.
