public static class

SafetyNetApi.HarmfulAppsResponse

extends Response<SafetyNetApi.HarmfulAppsResult>
java.lang.Object
   ↳ com.google.android.gms.common.api.Response<com.google.android.gms.safetynet.SafetyNetApi.HarmfulAppsResult>
     ↳ com.google.android.gms.safetynet.SafetyNetApi.HarmfulAppsResponse

Class Overview

A Response returned from listHarmfulApps().

Summary

Public Constructors
SafetyNetApi.HarmfulAppsResponse()
Public Methods
List<HarmfulAppsData> getHarmfulAppsList()
Returns a list of HarmfulAppsData that contains information on potentially harmful apps installed.
int getHoursSinceLastScanWithHarmfulApp()
Gets the number of hours since the last scan on other profiles that detected a harmful app.
long getLastScanTimeMs()
[Expand]
Inherited Methods
From class com.google.android.gms.common.api.Response
From class java.lang.Object

Public Constructors

public SafetyNetApi.HarmfulAppsResponse ()

Public Methods

public List<HarmfulAppsData> getHarmfulAppsList ()

Returns a list of HarmfulAppsData that contains information on potentially harmful apps installed.

If there are no known potentially harmful apps installed, the List returned is empty.

Returns
List<HarmfulAppsData>

public int getHoursSinceLastScanWithHarmfulApp ()

Gets the number of hours since the last scan on other profiles that detected a harmful app.

This is meant to be called by apps that are typically installed in the work profile and are concerned of harmful apps installed in other profiles. If the calling app is not in the work profile, -1 is always returned. If called from the work profile, and no harmful apps (that could pose a potential threat to the work profile) were detected in other profiles, -1 is returned.

Returns
int

public long getLastScanTimeMs ()

Returns
long