ProviderInstaller.ProviderInstallListener | 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
  - Tools & Reference
  - Developer Stories

## Results

Loading...
public static interface

# ProviderInstaller.ProviderInstallListener

com.google.android.gms.security.ProviderInstaller.ProviderInstallListener

## Class Overview

Callback for notification of the result of provider installation.

## Summary

Public Methods
abstract void | onProviderInstallFailed(int errorCode, Intent recoveryIntent) Called when installing the provider fails.
abstract void | onProviderInstalled() Called when installing the provider succeeds.

## Public Methods

#### public abstract void onProviderInstallFailed (int errorCode, Intent recoveryIntent)

Called when installing the provider fails. This method is always called on the UI thread.

Implementers may use `errorCode` with the standard UI elements provided by `GooglePlayServicesUtil`; or `recoveryIntent` to implement custom UI.

##### Parameters

errorCode | error code for the failure, for use with `showErrorDialogFragment(int, Activity, int)` or `showErrorNotification(int, Context)`
recoveryIntent | if non-null, an intent that can be used to install or update Google Play Services such that the provider can be installed

#### public abstract void onProviderInstalled ()

Called when installing the provider succeeds. This method is always called on the UI thread.