[android-components](../../index.md) / [mozilla.components.browser.toolbar](../index.md) / [BrowserToolbar](index.md) / [setTrackingProtectionIcons](./set-tracking-protection-icons.md)

# setTrackingProtectionIcons

`fun setTrackingProtectionIcons(iconOnNoTrackersBlocked: <ERROR CLASS> = requireNotNull(
            context.getDrawable(
                TrackingProtectionIconView.DEFAULT_ICON_ON_NO_TRACKERS_BLOCKED
            )
        ), iconOnTrackersBlocked: <ERROR CLASS> = requireNotNull(
            context.getDrawable(
                TrackingProtectionIconView.DEFAULT_ICON_ON_TRACKERS_BLOCKED
            )
        ), iconDisabledForSite: <ERROR CLASS> = requireNotNull(
            context.getDrawable(
                TrackingProtectionIconView.DEFAULT_ICON_OFF_FOR_A_SITE
            )
        )): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/toolbar/src/main/java/mozilla/components/browser/toolbar/BrowserToolbar.kt#L253)

Sets the different icons that the tracking protection icon could has depending of its
[Toolbar.siteTrackingProtection](../../mozilla.components.concept.toolbar/-toolbar/site-tracking-protection.md)

### Parameters

`iconOnNoTrackersBlocked` - icon for when the site is on the state
[Toolbar.SiteTrackingProtection.ON_NO_TRACKERS_BLOCKED](../../mozilla.components.concept.toolbar/-toolbar/-site-tracking-protection/-o-n_-n-o_-t-r-a-c-k-e-r-s_-b-l-o-c-k-e-d.md)

`iconOnTrackersBlocked` - icon for when the site is on the state
[Toolbar.SiteTrackingProtection.ON_TRACKERS_BLOCKED](../../mozilla.components.concept.toolbar/-toolbar/-site-tracking-protection/-o-n_-t-r-a-c-k-e-r-s_-b-l-o-c-k-e-d.md)

`iconDisabledForSite` - icon for when the site is on the state
[Toolbar.SiteTrackingProtection.OFF_FOR_A_SITE](../../mozilla.components.concept.toolbar/-toolbar/-site-tracking-protection/-o-f-f_-f-o-r_-a_-s-i-t-e.md)