Partager via


Service.StopSelf Method

Definition

Overloads

StopSelf()

Stop the service, if it was previously started.

StopSelf(Int32)

Old version of #stopSelfResult that doesn't return a result.

StopSelf()

Stop the service, if it was previously started.

[Android.Runtime.Register("stopSelf", "()V", "")]
public void StopSelf ();
[<Android.Runtime.Register("stopSelf", "()V", "")>]
member this.StopSelf : unit -> unit
Attributes

Remarks

Stop the service, if it was previously started. This is the same as calling android.content.Context#stopService for this particular service.

Java documentation for android.app.Service.stopSelf().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to

StopSelf(Int32)

Old version of #stopSelfResult that doesn't return a result.

[Android.Runtime.Register("stopSelf", "(I)V", "")]
public void StopSelf (int startId);
[<Android.Runtime.Register("stopSelf", "(I)V", "")>]
member this.StopSelf : int -> unit

Parameters

startId
Int32
Attributes

Remarks

Old version of #stopSelfResult that doesn't return a result.

Java documentation for android.app.Service.stopSelf(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to