allowAction

@NonNull
open fun allowAction(@NonNull action: @NonNull String): @NonNull IntentSanitizer.Builder

Add an action to the list of allowed actions. This method can be called multiple times and the result is additive. They will not overwrite each other.

Return

this builder.

Parameters

action

the name of an action.


@NonNull
open fun allowAction(@NonNull filter: @NonNull Predicate<String>): @NonNull IntentSanitizer.Builder

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

Return

this builder.

Parameters

filter

a filter that tests if an action is allowed.