ConnectionService.kt 334 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package com.github.antweb.donkey

import android.bluetooth.BluetoothDevice

object ConnectionService {
    var device: BluetoothDevice? = null

    val deviceName: String?
        get() = device?.name

    val deviceAddress: String?
        get() = device?.address

    fun hasDevice(): Boolean {
        return device != null
    }
}