ProviderInstaller.ProviderInstallListener

public static interfaceProviderInstaller.ProviderInstallListener

Callback for notification of the result of provider installation.

Public Method Summary

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 voidonProviderInstallFailed(int errorCode,Intent recoveryIntent)

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

Implementers may useerrorCodewith the standard UI elements provided byGoogleApiAvailability; orrecoveryIntentto implement custom UI.

Parameters
errorCode error code for the failure, for use with GoogleApiAvailability.showErrorDialogFragment(Activity, int, ActivityResultLauncher, DialogInterface.OnCancelListener)or GoogleApiAvailability.showErrorNotification(Context, ConnectionResult)
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 voidonProviderInstalled()

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