Langue

Service.OnStart(Intent, Int32) Méthode

Définition

Attention

deprecated

Cette méthode a été déconseillée au niveau de l’API 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

Paramètres

intent
Intent

Intention

startId
Int32

int

Attributs

Remarques

Cette méthode a été déconseillée au niveau de l’API 15. Implémentez onStartCommand(Intent,int,int) à la place.

Référence Android pour android.app.Service.onStart.

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à