SafetyNetApi | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
public interface

# SafetyNetApi

com.google.android.gms.safetynet.SafetyNetApi

## Class Overview

The main entry point for interacting with SafetyNet.

## Summary

Nested Classes
interface | SafetyNetApi.AttestationResult | Result that contains an attestation result.

Public Methods
abstract PendingResult<SafetyNetApi.AttestationResult> | attest(GoogleApiClient client, byte[] nonce) Provides attestation results for the device.

## Public Methods

#### public abstract PendingResult<SafetyNetApi.AttestationResult> attest (GoogleApiClient client, byte[] nonce)

Provides attestation results for the device.

##### Parameters

client | The `GoogleApiClient` to service the call. The client must be connected using `connect()` before invoking this method.
nonce | A cryptographic nonce used for anti-replay and tracking of requests.