diff options
Diffstat (limited to 'java/com/android/dialer/spam/Spam.java')
-rw-r--r-- | java/com/android/dialer/spam/Spam.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/java/com/android/dialer/spam/Spam.java b/java/com/android/dialer/spam/Spam.java index 028bda40a..b797ce3c4 100644 --- a/java/com/android/dialer/spam/Spam.java +++ b/java/com/android/dialer/spam/Spam.java @@ -61,6 +61,19 @@ public interface Spam { ListenableFuture<SpamStatus> checkSpamStatus(String number, @Nullable String defaultCountryIso); /** + * Checks if the given number is suspected of being spam, checking additional information as + * needed for the in-call ui. + * + * <p>See {@link #checkSpamStatus(String, String)}. + * + * @param number the phone number. + * @param defaultCountryIso the default country to use if it's not part of the number. + * @return the {@link SpamStatus} for the given number. + */ + ListenableFuture<SpamStatus> checkSpamStatusForInCallUi( + String number, @Nullable String defaultCountryIso); + + /** * Called as an indication that the Spam implementation should check whether downloading a spam * list needs to occur or not. * |