add IPC mesh service for use by Signal

This commit is contained in:
geeksville 2020-01-22 21:25:31 -08:00
parent 593cfa3a7e
commit 9a61af82de
4 changed files with 89 additions and 7 deletions

View 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.
}
}
}