The methods of Android.App.Service are listed below. For a list of all members, see the Service Members list.
See Also: Inherited members from Android.Content.ContextWrapper
abstract | OnBind(Android.Content.Intent)Return the communication channel to the service. | |
OnConfigurationChanged(Android.Content.Res.Configuration)Called by the system when the device configuration changes while your component is running. | ||
OnCreate()Called by the system when the service is first created. | ||
OnDestroy()Called by the system to notify a Service that it is no longer used and is being removed. | ||
OnLowMemory()This is called when the overall system is running low on memory, and actively running processes should trim their memory usage. | ||
OnRebind(Android.Content.Intent)Called when new clients have connected to the service, after it had previously been notified that all had disconnected in its Service.OnUnbind(Android.Content.Intent). | ||
OnStart(Android.Content.Intent, int) | ||
OnStartCommand(Android.Content.Intent, StartCommandFlags, int)Called by the system every time a client explicitly starts the service by calling Android.Content.Context.StartService(Android.Content.Intent), providing the arguments it supplied and a unique integer token representing the start request. | ||
OnTaskRemoved(Android.Content.Intent)This is called if the service is currently running and the user has removed a task that comes from the service's application. | ||
OnTrimMemory(Android.Content.TrimMemory)Called when the operating system has determined that it is a good time for a process to trim unneeded memory from its process. | ||
OnUnbind(Android.Content.Intent)Called when all clients have disconnected from a particular interface published by the service. | ||
SetForeground(bool)Documentation for this section has not yet been entered. | ||
StartForeground(int, Notification)Make this service run in the foreground, supplying the ongoing notification to be shown to the user while in this state. | ||
StopForeground(bool)Remove this service from foreground state, allowing it to be killed if more memory is needed. | ||
StopSelf()Stop the service, if it was previously started. | ||
StopSelf(int)Old version of Service.StopSelfResult(int) that doesn't return a result. | ||
StopSelfResult(int)Stop the service if the most recent time it was started was startId. |
Dump(Java.IO.FileDescriptor, Java.IO.PrintWriter, string[])Print the Service's state into the given stream. |