OngoingPhoneCallDataSource

A data source for managing ongoing phone calls.

Functions

Link copied to clipboard
abstract suspend fun get(): OngoingPhoneCallDataModel?

Returns OngoingPhoneCallDataModel representing information about the ongoing phone call, if there is one, or null if no ongoing call is available.

Link copied to clipboard
abstract suspend fun setEnded()

Sets the status of an ongoing phone call as ended.

Link copied to clipboard
abstract suspend fun setStarted(model: OngoingPhoneCallDataModel)

Sets the status of an ongoing phone call as started with model representing the details of the started call.