Langage

Activity.SetIntent(Intent, ComponentCaller) Méthode

Définition

Modifie l’intention retournée par getIntent(), et ComponentCaller retournée par getCaller().

[Android.Runtime.Register("setIntent", "(Landroid/content/Intent;Landroid/app/ComponentCaller;)V", "GetSetIntent_Landroid_content_Intent_Landroid_app_ComponentCaller_Handler", ApiSince=35)]
public virtual void SetIntent(Android.Content.Intent? newIntent, Android.App.ComponentCaller? newCaller);
[<Android.Runtime.Register("setIntent", "(Landroid/content/Intent;Landroid/app/ComponentCaller;)V", "GetSetIntent_Landroid_content_Intent_Landroid_app_ComponentCaller_Handler", ApiSince=35)>]
abstract member SetIntent : Android.Content.Intent * Android.App.ComponentCaller -> unit
override this.SetIntent : Android.Content.Intent * Android.App.ComponentCaller -> unit

Paramètres

newIntent
Intent

Intention : nouvel objet Intent à retourner à partir de getIntent() Cette valeur peut être null.

newCaller
ComponentCaller

ComponentCaller : nouvel objet ComponentCaller à retourner à partir de getCaller() Cette valeur peut être null.

Attributs

Remarques

Modifie l’intention retournée par getIntent(), et ComponentCaller retournée par getCaller(). Cela contient des références à l’intention donnée et ComponentCaller ; il ne les copie pas. Souvent utilisé conjointement avec onNewIntent(Intent). Pour récupérer l’appelant à partir de onNewIntent(Intent), utilisez getCurrentCaller(), sinon remplacez onNewIntent(Intent,ComponentCaller).

Voir aussi :

Référence Android pour android.app.Activity.setIntent.

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 à