SafetyNetApi.SafeBrowsingResponse

  • SafetyNetApi.SafeBrowsingResponse is used to handle the response from the lookupUri SafetyNet API call, which checks a URI for safety threats.

  • Before using the response data, ensure the call was successful by using getStatus() and isSuccess().

  • Potential error statuses include API unavailability, a missing API key, or unsupported threat types being requested.

  • getDetectedThreats() provides a list of identified threats from the SafeBrowsingThreat enum, if any were found for the given URI.

public static class SafetyNetApi.SafeBrowsingResponse extends Response<SafetyNetApi.SafeBrowsingResult>

Response for lookupUri(String, String, int...).

Use getStatus() to obtain the status and ensure isSuccess() is true before accessing any other fields. The other statuses are:

Public Constructor Summary

Public Method Summary

List<SafeBrowsingThreat>
getDetectedThreats()
Returns threats detected from the input URI.

Inherited Method Summary

Public Constructors

public SafetyNetApi.SafeBrowsingResponse ()

Public Methods

public List<SafeBrowsingThreat> getDetectedThreats ()

Returns threats detected from the input URI.

Returns