allowComponent

@NonNull
open fun allowComponent(@NonNull component: @NonNull ComponentName): @NonNull IntentSanitizer.Builder

Add a component to the allowed components list. This method can be called multiple times and the result is additive. They will not overwrite each other.

Return

this builder.

Parameters

component

the allowed component.


@NonNull
open fun allowComponent(@NonNull filter: @NonNull Predicate<ComponentName>): @NonNull IntentSanitizer.Builder

Add a filter for allowed components. This method can be called multiple times and the result is additive. They will not overwrite each other.

Return

this builder.

Parameters

filter

the component filter.