@@ -28,6 +28,8 @@ enum class TetherType(@DrawableRes val icon: Int) {
|
||||
else -> false
|
||||
}
|
||||
|
||||
fun isA(other: TetherType) = this == other || other == USB && this == NCM
|
||||
|
||||
companion object : TetheringManager.TetheringEventCallback {
|
||||
private lateinit var usbRegexs: List<Pattern>
|
||||
private lateinit var wifiRegexs: List<Pattern>
|
||||
|
||||
@@ -151,13 +151,6 @@ object TetheringManager {
|
||||
*/
|
||||
@RequiresApi(24)
|
||||
const val TETHERING_BLUETOOTH = 2
|
||||
/**
|
||||
* Ncm local tethering type.
|
||||
*
|
||||
* @see startTethering
|
||||
*/
|
||||
@RequiresApi(30)
|
||||
const val TETHERING_NCM = 4
|
||||
/**
|
||||
* Ethernet tethering type.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user