Dtdi
class Dtdi
kotlin.Any | |
↳ | com.google.android.gms.dtdi.Dtdi |
Entry point for the DTDI API.
Summary
Companion functions |
|
---|---|
DtdiClient |
Creates a new instance of DtdiClient. |
DtdiClient |
Creates a new instance of DtdiClient. |
Companion functions
getClient
@JvmStatic fun getClient(context: Context): DtdiClient
Creates a new instance of DtdiClient. System notifications may be generated if the calling app goes into the background when this method is used and the system needs to prompt the user to resolve some user recoverable errors (for example, if Google Play services needs to be updated).
Parameters | |
---|---|
context: Context | the Context that is using this client |
getClient
@JvmStatic fun getClient(activity: Activity): DtdiClient
Creates a new instance of DtdiClient. A dialog may appear when the provided activity is in the foreground and the system needs to prompt the user to resolve some user recoverable errors (for example, if Google Play services needs to be updated).
Parameters | |
---|---|
activity: Activity | the Activity that is using this client |