add mlkit barcode scanner

This commit is contained in:
andrekir 2022-05-17 17:29:21 -03:00
parent 7e8b7bc833
commit a4e1f0de77
5 changed files with 100 additions and 34 deletions

View file

@ -107,6 +107,20 @@ class UIViewModel @Inject constructor(
private val _channels = MutableLiveData<ChannelSet?>()
val channels: LiveData<ChannelSet?> get() = _channels
private val _requestChannelUrl = MutableLiveData<Uri?>(null)
val requestChannelUrl: LiveData<Uri?> get() = _requestChannelUrl
fun setRequestChannelUrl(channelUrl: Uri) {
_requestChannelUrl.value = channelUrl
}
/**
* Called immediately after activity observes requestChannelUrl
*/
fun clearRequestChannelUrl() {
_requestChannelUrl.value = null
}
var positionBroadcastSecs: Int?
get() {
_radioConfig.value?.preferences?.let {