Activity.SetIntent(Intent, ComponentCaller) Metodo

Definizione

Modifica la finalità restituita da #getIntente ComponentCaller restituito da #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

Parametri

newIntent
Intent

Nuovo oggetto Intent da restituire #getIntent

newCaller
ComponentCaller

ComponentCaller Nuovo oggetto da cui restituire#getCaller

Attributi

Commenti

Modifica la finalità restituita da #getIntente ComponentCaller restituito da #getCaller. Contiene riferimenti alla finalità specificata e ComponentCaller; non li copia. Spesso usato insieme a #onNewIntent(Intent). Per recuperare il chiamante da #onNewIntent(Intent), usare #getCurrentCaller, in caso contrario eseguire l'override #onNewIntent(Intent, ComponentCaller)di .

per android.app.Activity.setIntent(android.content.Intent, android.app.ComponentCaller).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a