Service.OnStart(Intent, Int32) Method

Definition

Caution

deprecated

This method was deprecated in API level 15.

[Android.Runtime.Register("onStart", "(Landroid/content/Intent;I)V", "GetOnStart_Landroid_content_Intent_IHandler")]
[System.Obsolete("deprecated")]
public virtual void OnStart(Android.Content.Intent? intent, int startId);
[<Android.Runtime.Register("onStart", "(Landroid/content/Intent;I)V", "GetOnStart_Landroid_content_Intent_IHandler")>]
[<System.Obsolete("deprecated")>]
abstract member OnStart : Android.Content.Intent * int -> unit
override this.OnStart : Android.Content.Intent * int -> unit

Parameters

intent
Intent

Intent

startId
Int32

int

Attributes

Remarks

This method was deprecated in API level 15. Implement onStartCommand(Intent,int,int) instead.

Android reference for android.app.Service.onStart.

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.

Applies to