mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
add IPC mesh service for use by Signal
This commit is contained in:
parent
593cfa3a7e
commit
9a61af82de
4 changed files with 89 additions and 7 deletions
31
app/src/main/java/com/geeksville/meshutil/MeshService.kt
Normal file
31
app/src/main/java/com/geeksville/meshutil/MeshService.kt
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
package com.geeksville.meshutil
|
||||
|
||||
import android.app.Service
|
||||
import android.content.Intent
|
||||
import android.os.IBinder
|
||||
|
||||
class MeshService : Service() {
|
||||
|
||||
override fun onBind(intent: Intent): IBinder {
|
||||
// Return the interface
|
||||
return binder
|
||||
}
|
||||
|
||||
private val binder = object : IMeshService.Stub() {
|
||||
override fun setOwner(myId: String?, longName: String?, shortName: String?) {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
override fun sendOpaque(destId: String?, payload: ByteArray?) {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
override fun getOnline(ids: Array<out String>?) {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
override fun isConnected(): Boolean {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue