Langue

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

Nouvel objet Intent à retourner à partir de #getIntent

newCaller
ComponentCaller

Nouvel ComponentCaller objet à retourner à partir de #getCaller

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 à