ContactKey


object ContactKey


Entry point for developers to instantiate the Contact Key API client.

Summary

Public functions

ContactKeyClient
getClient(activity: Activity)

Creates a new instance of ContactKeyClient.

ContactKeyClient
getClient(context: Context)

Creates a new instance of ContactKeyClient.

Public functions

getClient

fun getClient(activity: Activity): ContactKeyClient

Creates a new instance of ContactKeyClient. A dialog may appear when the provided activity is in the foreground and system services need to be updated.

Parameters
activity: Activity

the activity that is using this client

getClient

fun getClient(context: Context): ContactKeyClient

Creates a new instance of ContactKeyClient.

Parameters
context: Context

the context that is using this client