-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks,android.content.ComponentCallbacks2
public final class NIMMSTAService extends Service
NIMMSTAService is used to communicate with the NIMMSTA App It creates a broadcast receiver NIMMSTAIntentReceiver that handles the intents from the NIMMSTA App
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNIMMSTAService.Companionpublic final classNIMMSTAService.ServiceBinderClass for clients to access the service when bound
-
Field Summary
Fields Modifier and Type Field Description private NIMMSTAManagermanagerprivate NIMMSTADeviceEventHandlerdeviceEventHandlerprivate NIMMSTAManagerEventHandlermanagerEventHandlerprivate final <ERROR CLASS>idMutex
-
Constructor Summary
Constructors Constructor Description NIMMSTAService()
-
Method Summary
Modifier and Type Method Description final NIMMSTAManagergetManager()final UnitsetManager(NIMMSTAManager manager)final NIMMSTADeviceEventHandlergetDeviceEventHandler()final UnitsetDeviceEventHandler(NIMMSTADeviceEventHandler deviceEventHandler)final NIMMSTAManagerEventHandlergetManagerEventHandler()final UnitsetManagerEventHandler(NIMMSTAManagerEventHandler managerEventHandler)final <ERROR CLASS>getIdMutex()final Task<ActionResponse>sendAction(IAction action, NIMMSTADevice device)Sends given action to the NIMMSTA app final UnitcompletePromise(Integer id, ActionResponse response)Completes the waiting promise with the response from the NIMMSTA App IBinderonBind(Intent i)Returns the binder UnitonCreate()Get's called when the service is started Registers the NIMMSTAIntentReceiver to handle intents from the NIMMSTA App UnitonDestroy()Get's called when the service is stopped -
Methods inherited from class android.app.Service
bindIsolatedService, bindService, bindService, bindService, bindService, bindServiceAsUser, bindServiceAsUser, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingOrSelfUriPermissions, checkCallingPermission, checkCallingUriPermission, checkCallingUriPermissions, checkContentUriPermissionFull, checkPermission, checkSelfPermission, checkUriPermission, checkUriPermission, checkUriPermissions, clearWallpaper, createAttributionContext, createConfigurationContext, createContext, createContextForSplit, createDeviceContext, createDeviceProtectedStorageContext, createDisplayContext, createPackageContext, createWindowContext, createWindowContext, databaseList, deleteDatabase, deleteFile, deleteSharedPreferences, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getAttributionSource, getAttributionTag, getBaseContext, getCacheDir, getClassLoader, getCodeCacheDir, getContentResolver, getDataDir, getDatabasePath, getDeviceId, getDir, getDisplay, getExternalCacheDir, getExternalCacheDirs, getExternalFilesDir, getExternalFilesDirs, getExternalMediaDirs, getFileStreamPath, getFilesDir, getMainExecutor, getMainLooper, getNoBackupFilesDir, getObbDir, getObbDirs, getOpPackageName, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getParams, getResources, getSharedPreferences, getSystemService, getSystemServiceName, getTheme, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isDeviceProtectedStorage, isRestricted, isUiContext, moveDatabaseFrom, moveSharedPreferencesFrom, openFileInput, openFileOutput, openOrCreateDatabase, openOrCreateDatabase, peekWallpaper, registerComponentCallbacks, registerDeviceIdChangeListener, registerReceiver, registerReceiver, registerReceiver, registerReceiver, removeStickyBroadcast, removeStickyBroadcastAsUser, revokeSelfPermissionsOnKill, revokeUriPermission, revokeUriPermission, sendBroadcast, sendBroadcast, sendBroadcast, sendBroadcastAsUser, sendBroadcastAsUser, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcastAsUser, sendStickyBroadcast, sendStickyBroadcast, sendStickyBroadcastAsUser, sendStickyOrderedBroadcast, sendStickyOrderedBroadcastAsUser, setTheme, setWallpaper, setWallpaper, startActivities, startActivities, startActivity, startActivity, startForegroundService, startInstrumentation, startIntentSender, startIntentSender, startService, stopService, unbindService, unregisterComponentCallbacks, unregisterDeviceIdChangeListener, unregisterReceiver, updateServiceGroup -
Methods inherited from class android.content.ContextWrapper
bindIsolatedService, getColor, getColorStateList, getDrawable, getString, getString, getSystemService, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, revokeSelfPermissionOnKill, sendBroadcastWithMultiplePermissions -
Methods inherited from class com.nimmsta.intent_library.NIMMSTAService
attachBaseContext, dump, getApplication, getForegroundServiceType, onConfigurationChanged, onLowMemory, onRebind, onStart, onStartCommand, onTaskRemoved, onTimeout, onTimeout, onTrimMemory, onUnbind, startForeground, startForeground, stopForeground, stopForeground, stopSelf, stopSelf, stopSelfResult -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getManager
final NIMMSTAManager getManager()
-
setManager
final Unit setManager(NIMMSTAManager manager)
-
getDeviceEventHandler
final NIMMSTADeviceEventHandler getDeviceEventHandler()
-
setDeviceEventHandler
final Unit setDeviceEventHandler(NIMMSTADeviceEventHandler deviceEventHandler)
-
getManagerEventHandler
final NIMMSTAManagerEventHandler getManagerEventHandler()
-
setManagerEventHandler
final Unit setManagerEventHandler(NIMMSTAManagerEventHandler managerEventHandler)
-
getIdMutex
final <ERROR CLASS> getIdMutex()
-
sendAction
final Task<ActionResponse> sendAction(IAction action, NIMMSTADevice device)
Sends given action to the NIMMSTA app
-
completePromise
final Unit completePromise(Integer id, ActionResponse response)
Completes the waiting promise with the response from the NIMMSTA App
-
onCreate
Unit onCreate()
Get's called when the service is started Registers the NIMMSTAIntentReceiver to handle intents from the NIMMSTA App
-
-
-
-