Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

LifecycleService

public class LifecycleService
extends Service implements LifecycleOwner

java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.app.Service
         ↳ androidx.lifecycle.LifecycleService


A Service that is also a LifecycleOwner.

Summary

Inherited constants

Public constructors

LifecycleService()

Public methods

Lifecycle getLifecycle()

Returns the Lifecycle of the provider.

IBinder onBind(Intent intent)
void onCreate()
void onDestroy()
void onStart(Intent intent, int startId)
int onStartCommand(Intent intent, int flags, int startId)

Inherited methods

Public constructors

LifecycleService

public LifecycleService ()

Public methods

getLifecycle

public Lifecycle getLifecycle ()

Returns the Lifecycle of the provider.

Returns
Lifecycle The lifecycle of the provider.

onBind

public IBinder onBind (Intent intent)

Parameters
intent Intent

Returns
IBinder

onCreate

public void onCreate ()

onDestroy

public void onDestroy ()

onStart

public void onStart (Intent intent, 
                int startId)

Parameters
intent Intent

startId int

onStartCommand

public int onStartCommand (Intent intent, 
                int flags, 
                int startId)

Parameters
intent Intent

flags int

startId int

Returns
int