java.lang.Object | |
↳ | com.google.android.gms.safetynet.SafetyNet |
The SafetyNet API provides access to Google services that help you assess the health and safety of an Android device.
To use SafetyNet, call getClient(Context)
or getClient(Activity)
.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
API |
This field is deprecated.
use getClient(Context) or getClient(Activity) .
|
||||||||||
SafetyNetApi |
This field is deprecated.
use getClient(Context) or getClient(Activity) .
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a
SafetyNetClient that is used to access all APIs that are called when the
app has a foreground Activity . | |||||||||||
Returns a
SafetyNetClient that is used to access all APIs that are called without
access to a foreground Activity . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
This field is deprecated.
use getClient(Context)
or getClient(Activity)
.
The API necessary to use SafetyNet.
This field is deprecated.
use getClient(Context)
or getClient(Activity)
.
The entry point for interacting with the SafetyNet APIs which help assess the health and safety of an Android device.
Returns a SafetyNetClient
that is used to access all APIs that are called when the
app has a foreground Activity
.
Use this method over getClient(Context)
if your app has a foreground
Activity
and you will be making multiple API calls to improve performance.
Parameters | |
---|---|
activity |
Activity
|
Returns | |
---|---|
SafetyNetClient |
Returns a SafetyNetClient
that is used to access all APIs that are called without
access to a foreground Activity
.
Parameters | |
---|---|
context |
Context
|
Returns | |
---|---|
SafetyNetClient |