Merge pull request 'Menyesuaikan nama kelas dengan plugin' (#2) from pengembangan into main
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
@@ -31,7 +31,7 @@ class KirimArgs {
|
|||||||
)
|
)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
class BluetoothClassicPlugin(private val activity: Activity) : Plugin(activity) {
|
class BluclasPlugin(private val activity: Activity) : Plugin(activity) {
|
||||||
private val SPP_UUID: UUID = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB")
|
private val SPP_UUID: UUID = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB")
|
||||||
|
|
||||||
private val adapter: BluetoothAdapter? = this.activity.getSystemService(BluetoothManager::class.java).getAdapter()
|
private val adapter: BluetoothAdapter? = this.activity.getSystemService(BluetoothManager::class.java).getAdapter()
|
||||||
@@ -45,6 +45,7 @@ class BluetoothClassicPlugin(private val activity: Activity) : Plugin(activity)
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
println("KOTLIN")
|
||||||
val daftar_res = adapter.bondedDevices.map { i ->
|
val daftar_res = adapter.bondedDevices.map { i ->
|
||||||
mapOf(
|
mapOf(
|
||||||
"nama" to (i.name ?: "Unknown"),
|
"nama" to (i.name ?: "Unknown"),
|
||||||
|
|||||||
Reference in New Issue
Block a user