ProviderInstaller.ProviderInstallListener

interface ProviderInstaller.ProviderInstallListener


Callback for notification of the result of provider installation.

Summary

Public functions

Unit
onProviderInstallFailed(errorCode: Int, recoveryIntent: Intent?)

Called when installing the provider fails.

Unit

Called when installing the provider succeeds.

Public functions

onProviderInstallFailed

fun onProviderInstallFailed(errorCode: Int, recoveryIntent: Intent?): Unit

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 ; or recoveryIntent to implement custom UI.

Parameters
errorCode: Int

error code for the failure, for use with showErrorDialogFragment or showErrorNotification

recoveryIntent: Intent?

if non-null, an intent that can be used to install or update Google Play Services such that the provider can be installed

onProviderInstalled

fun onProviderInstalled(): Unit

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