PhoneBookSynchronizationStatusHelper

class PhoneBookSynchronizationStatusHelper

A helper class that monitors connection states of PBAP Client and other Bluetooth profiles to provide information about the status for PBAP synchronization.

onCreate shall be called before usage. onDestroy shall be called when no more usage needed.

Useful to observe the PBAP synchronization status:

private val phoneBookSynchronizationStatusHelper = PhoneBookSynchronizationStatusHelper()
phoneBookSynchronizationStatusHelper.phoneBookSynchronizationStatus.observe(this) {
// Here the code related to PBAP synchronization status
}

Constructors

Link copied to clipboard
fun PhoneBookSynchronizationStatusHelper()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val phoneBookSynchronizationStatus: LiveData<PhoneBookSynchronizationStatus>

Functions

Link copied to clipboard
fun onCreate(context: Context)
Link copied to clipboard
fun onDestroy()