ContextWrapper.StopService(Intent) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Demandez qu’un service d’application donné soit arrêté.
[Android.Runtime.Register("stopService", "(Landroid/content/Intent;)Z", "GetStopService_Landroid_content_Intent_Handler")]
public override bool StopService(Android.Content.Intent? name);
[<Android.Runtime.Register("stopService", "(Landroid/content/Intent;)Z", "GetStopService_Landroid_content_Intent_Handler")>]
override this.StopService : Android.Content.Intent -> bool
Paramètres
- name
- Intent
Description du service à arrêter. L’intention doit être entièrement explicite (en fournissant un nom de composant) ou spécifier un nom de package spécifique auquel il est ciblé.
Retours
S’il existe un service correspondant à l’intention donnée qui est déjà en cours d’exécution, il est arrêté et true est retourné ; sinon false est retourné.
- Attributs
Remarques
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.
Java documentation pour android.content.ContextWrapper.stopService(android.content.Intent).