AI-generated Key Takeaways
-
SafeBrowsingResponse is a Response object for the lookupUri method and extends Response
-
You should use getStatus() and ensure isSuccess() is true before accessing other fields.
-
The getDetectedThreats() method returns a list of detected threats from the input URI.
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:
SAFE_BROWSING_API_NOT_AVAILABLE: the API is not available for use;SAFE_BROWSING_MISSING_API_KEY: an API key (generated in the developer console) was not added to the application's manifest;SAFE_BROWSING_UNSUPPORTED_THREAT_TYPES: all the threat types specified inlookupUri(String, String, int...)are currently not supported.
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
Listof threat types fromSafeBrowsingThreatfor the input URI tolookupUri(String, String, int...).