integrate RMLUI library

This commit is contained in:
2026-01-03 12:17:19 +01:00
parent 784e054105
commit 1074a1e59a
90 changed files with 3939 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.Service
import android.content.Intent
import android.content.res.AssetManager
import android.os.IBinder
import androidx.core.app.NotificationCompat
@@ -16,10 +17,18 @@ class NativeService : Service() {
System.loadLibrary("mosis-service")
}
}
private external fun getBinderNative(): IBinder
external fun getBinderNative(): IBinder
external fun setAssetManager(assetManager: AssetManager)
override fun onBind(intent: Intent): IBinder {
return getBinderNative()
}
override fun onCreate() {
super.onCreate()
setAssetManager(assets)
}
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
createNotificationChannel()
// Create the notification required for the foreground service