LifecycleService



A Service that is also a LifecycleOwner.

Summary

Public constructors

android

Public functions

open IBinder?
android
open Unit
android
open Unit
android
open Unit
@CallSuper
onStart(intent: Intent?, startId: Int)

This function is deprecated. Deprecated in Java

android
open Int
@CallSuper
onStartCommand(intent: Intent?, flags: Int, startId: Int)
android

Public properties

open Lifecycle
android

Inherited functions

From android.content.Context
open Boolean
bindIsolatedService(
    p0: Intent,
    p1: Context.BindServiceFlags,
    p2: String,
    p3: Executor,
    p4: ServiceConnection
)
android
Int
android
ColorStateList
android
Drawable?
android
String
android
String
getString(p0: Int, vararg p1: Any)
android
T
<T : Any> getSystemService(p0: Class<T>)
android
CharSequence
getText(p0: Int)
android
TypedArray
android
TypedArray
android
TypedArray
android
TypedArray
obtainStyledAttributes(p0: AttributeSet?, p1: IntArray, p2: Int, p3: Int)
android
open Unit
android
open Unit
android
From android.content.ContextWrapper
open Boolean
bindIsolatedService(
    p0: Intent,
    p1: Int,
    p2: String,
    p3: Executor,
    p4: ServiceConnection
)
android
open Boolean
bindService(
    p0: Intent,
    p1: ServiceConnection,
    p2: Context.BindServiceFlags
)
android
open Boolean
android
open Boolean
bindService(
    p0: Intent,
    p1: Context.BindServiceFlags,
    p2: Executor,
    p3: ServiceConnection
)
android
open Boolean
bindService(p0: Intent, p1: Int, p2: Executor, p3: ServiceConnection)
android
open Boolean
bindServiceAsUser(
    p0: Intent,
    p1: ServiceConnection,
    p2: Context.BindServiceFlags,
    p3: UserHandle
)
android
open Boolean
android
open Int
android
open Int
android
open IntArray
android
open Int
android
open Int
android
open IntArray
android
open Int
checkPermission(p0: String, p1: Int, p2: Int)
android
open Int
android
open Int
checkUriPermission(p0: Uri, p1: Int, p2: Int, p3: Int)
android
open Int
checkUriPermission(p0: Uri?, p1: String?, p2: String?, p3: Int, p4: Int, p5: Int)
android
open IntArray
checkUriPermissions(p0: MutableList<Uri>, p1: Int, p2: Int, p3: Int)
android
open Unit

This function is deprecated. Deprecated in Java

android
open Context
android
open Context
android
open Context
android
open Context
android
open Context
android
open Context
android
open Context
android
open Context
android
open Context
android
open Context
createWindowContext(p0: Display, p1: Int, p2: Bundle?)
android
open Array<String>
android
open Boolean
android
open Boolean
android
open Boolean
android
open Unit
android
open Unit
android
open Unit
android
open Unit
android
open Unit
enforcePermission(p0: String, p1: Int, p2: Int, p3: String?)
android
open Unit
enforceUriPermission(p0: Uri, p1: Int, p2: Int, p3: Int, p4: String)
android
open Unit
enforceUriPermission(
    p0: Uri?,
    p1: String?,
    p2: String?,
    p3: Int,
    p4: Int,
    p5: Int,
    p6: String?
)
android
open Array<String>
android
open Context
android
open ApplicationInfo
android
open AssetManager
android
open AttributionSource
android
open String?
android
open Context
android
open File
android
open ClassLoader
android
open File
android
open ContentResolver
android
open File
android
open File
android
open Int
android
open File
getDir(p0: String, p1: Int)
android
open Display?
android
open File?
android
open Array<File>
android
open File?
android
open Array<File>
android
open Array<File>
android
open File
android
open File
android
open Executor
android
open Looper
android
open File
android
open File
android
open Array<File>
android
open String
android
open String
android
open PackageManager
android
open String
android
open String
android
open ContextParams?
android
open Resources
android
open SharedPreferences
android
open Any
android
open String?
android
open Resources.Theme
android
open Drawable

This function is deprecated. Deprecated in Java

android
open Int

This function is deprecated. Deprecated in Java

android
open Int

This function is deprecated. Deprecated in Java

android
open Unit
grantUriPermission(p0: String, p1: Uri, p2: Int)
android
open Boolean
android
open Boolean
android
open Boolean
android
open Boolean
android
open Boolean
android
open FileInputStream
android
open FileOutputStream
android
open SQLiteDatabase
android
open SQLiteDatabase
openOrCreateDatabase(
    p0: String,
    p1: Int,
    p2: SQLiteDatabase.CursorFactory,
    p3: DatabaseErrorHandler?
)
android
open Drawable

This function is deprecated. Deprecated in Java

android
open Unit
android
open Unit
android
open Intent?
android
open Intent?
android
open Intent?
registerReceiver(
    p0: BroadcastReceiver?,
    p1: IntentFilter,
    p2: String?,
    p3: Handler?
)
android
open Intent?
registerReceiver(
    p0: BroadcastReceiver?,
    p1: IntentFilter,
    p2: String?,
    p3: Handler?,
    p4: Int
)
android
open Unit

This function is deprecated. Deprecated in Java

android
open Unit

This function is deprecated. Deprecated in Java

android
open Unit
android
open Unit
android
open Unit
revokeUriPermission(p0: String, p1: Uri, p2: Int)
android
open Unit
android
open Unit
android
open Unit
sendBroadcast(p0: Intent, p1: String?, p2: Bundle?)
android
open Unit
android
open Unit
android
open Unit
android
open Unit
android
open Unit
sendOrderedBroadcast(
    p0: Intent,
    p1: String?,
    p2: BroadcastReceiver?,
    p3: Handler?,
    p4: Int,
    p5: String?,
    p6: Bundle?
)
android
open Unit
sendOrderedBroadcast(
    p0: Intent,
    p1: String?,
    p2: Bundle?,
    p3: BroadcastReceiver?,
    p4: Handler?,
    p5: Int,
    p6: String?,
    p7: Bundle?
)
android
open Unit
sendOrderedBroadcast(
    p0: Intent,
    p1: String?,
    p2: String?,
    p3: BroadcastReceiver?,
    p4: Handler?,
    p5: Int,
    p6: String?,
    p7: Bundle?
)
android
open Unit
sendOrderedBroadcast(
    p0: Intent,
    p1: Int,
    p2: String?,
    p3: String?,
    p4: BroadcastReceiver?,
    p5: Handler?,
    p6: String?,
    p7: Bundle?,
    p8: Bundle?
)
android
open Unit
sendOrderedBroadcastAsUser(
    p0: Intent,
    p1: UserHandle,
    p2: String?,
    p3: BroadcastReceiver?,
    p4: Handler?,
    p5: Int,
    p6: String?,
    p7: Bundle?
)
android
open Unit

This function is deprecated. Deprecated in Java

android
open Unit

This function is deprecated. Deprecated in Java

android
open Unit

This function is deprecated. Deprecated in Java

android
open Unit
sendStickyOrderedBroadcast(
    p0: Intent,
    p1: BroadcastReceiver?,
    p2: Handler?,
    p3: Int,
    p4: String?,
    p5: Bundle?
)

This function is deprecated. Deprecated in Java

android
open Unit
sendStickyOrderedBroadcastAsUser(
    p0: Intent,
    p1: UserHandle,
    p2: BroadcastReceiver?,
    p3: Handler?,
    p4: Int,
    p5: String?,
    p6: Bundle?
)

This function is deprecated. Deprecated in Java

android
open Unit
android
open Unit

This function is deprecated. Deprecated in Java

android
open Unit

This function is deprecated. Deprecated in Java

android
open Unit
android
open Unit
android
open Unit
android
open Unit
android
open ComponentName?
android
open Boolean
android
open Unit
startIntentSender(p0: IntentSender, p1: Intent?, p2: Int, p3: Int, p4: Int)
android
open Unit
startIntentSender(
    p0: IntentSender,
    p1: Intent?,
    p2: Int,
    p3: Int,
    p4: Int,
    p5: Bundle?
)
android
open ComponentName?
android
open Boolean
android
open Unit
android
open Unit
android
open Unit
android
open Unit
android
open Unit
android
From android.app.Service
open Unit
android
open Unit
android
Application
android
Int
android
open Unit
android
open Unit
android
open Unit
android
open Unit
android
open Unit
android
open Unit
android
open Boolean
android
Unit
android
Unit
startForeground(p0: Int, p1: Notification, p2: Int)
android
Unit

This function is deprecated. Deprecated in Java

android
Unit
android
Unit
android
Unit
android
Boolean
android

Public constructors

LifecycleService

LifecycleService()

Public functions

onBind

@CallSuper
open fun onBind(intent: Intent): IBinder?

onCreate

@CallSuper
open fun onCreate(): Unit

onDestroy

@CallSuper
open fun onDestroy(): Unit

onStart

@CallSuper
open fun onStart(intent: Intent?, startId: Int): Unit

onStartCommand

@CallSuper
open fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int

Public properties

lifecycle

open val lifecycleLifecycle