integrate RMLUI library
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user