Sprache

Instrumentation.AddMonitor Methode

Definition

Überlädt

Name Beschreibung
AddMonitor(Instrumentation+ActivityMonitor)

Fügen Sie einen neuen ActivityMonitor hinzu, der bei jedem Start einer Aktivität überprüft wird.

AddMonitor(IntentFilter, Instrumentation+ActivityResult, Boolean)

Ein Komfortwrapper für addMonitor(ActivityMonitor), der einen Intent-Filter erstellt, der activityMonitor für Sie abgleicht, und gibt ihn zurück.

AddMonitor(String, Instrumentation+ActivityResult, Boolean)

Ein Komfortwrapper für addMonitor(ActivityMonitor), der einen Klassenabgleich von ActivityMonitor für Sie erstellt und zurückgibt.

AddMonitor(Instrumentation+ActivityMonitor)

Fügen Sie einen neuen ActivityMonitor hinzu, der bei jedem Start einer Aktivität überprüft wird.

[Android.Runtime.Register("addMonitor", "(Landroid/app/Instrumentation$ActivityMonitor;)V", "GetAddMonitor_Landroid_app_Instrumentation_ActivityMonitor_Handler")]
public virtual void AddMonitor(Android.App.Instrumentation.ActivityMonitor? monitor);
[<Android.Runtime.Register("addMonitor", "(Landroid/app/Instrumentation$ActivityMonitor;)V", "GetAddMonitor_Landroid_app_Instrumentation_ActivityMonitor_Handler")>]
abstract member AddMonitor : Android.App.Instrumentation.ActivityMonitor -> unit
override this.AddMonitor : Android.App.Instrumentation.ActivityMonitor -> unit

Parameter

monitor
Instrumentation.ActivityMonitor

Instrumentation.ActivityMonitor: Der neue ActivityMonitor, der angezeigt werden soll.

Attribute

Hinweise

Fügen Sie einen neuen ActivityMonitor hinzu, der bei jedem Start einer Aktivität überprüft wird. Der Monitor wird nach vorhandenen hinzugefügt; der Monitor wird nur getroffen, wenn keiner der vorhandenen Monitore selbst die Absicht verarbeiten kann.

Siehe auch:

Android-Referenz für android.app.Instrumentation.addMonitor.

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für:

AddMonitor(IntentFilter, Instrumentation+ActivityResult, Boolean)

Ein Komfortwrapper für addMonitor(ActivityMonitor), der einen Intent-Filter erstellt, der activityMonitor für Sie abgleicht, und gibt ihn zurück.

[Android.Runtime.Register("addMonitor", "(Landroid/content/IntentFilter;Landroid/app/Instrumentation$ActivityResult;Z)Landroid/app/Instrumentation$ActivityMonitor;", "GetAddMonitor_Landroid_content_IntentFilter_Landroid_app_Instrumentation_ActivityResult_ZHandler")]
public virtual Android.App.Instrumentation.ActivityMonitor? AddMonitor(Android.Content.IntentFilter? filter, Android.App.Instrumentation.ActivityResult? result, bool block);
[<Android.Runtime.Register("addMonitor", "(Landroid/content/IntentFilter;Landroid/app/Instrumentation$ActivityResult;Z)Landroid/app/Instrumentation$ActivityMonitor;", "GetAddMonitor_Landroid_content_IntentFilter_Landroid_app_Instrumentation_ActivityResult_ZHandler")>]
abstract member AddMonitor : Android.Content.IntentFilter * Android.App.Instrumentation.ActivityResult * bool -> Android.App.Instrumentation.ActivityMonitor
override this.AddMonitor : Android.Content.IntentFilter * Android.App.Instrumentation.ActivityResult * bool -> Android.App.Instrumentation.ActivityMonitor

Parameter

filter
IntentFilter

IntentFilter: Der Satz von Absichten, für die dieser Monitor verantwortlich ist.

result
Instrumentation.ActivityResult

Instrumentation.ActivityResult: Ein canned result to return if the monitor is hit; kann NULL sein.

block
Boolean

boolescher Wert: Steuert, ob der Monitor den Start der Aktivität blockieren soll (das canned-Ergebnis zurückgeben) oder ob der Anruf fortgesetzt werden soll.

Gibt zurück

Der neu erstellte und hinzugefügte Aktivitätsmonitor.

Attribute

Hinweise

Ein Komfortwrapper für addMonitor(ActivityMonitor), der einen Intent-Filter erstellt, der activityMonitor für Sie abgleicht, und gibt ihn zurück.

Siehe auch:

Android-Referenz für android.app.Instrumentation.addMonitor.

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für:

AddMonitor(String, Instrumentation+ActivityResult, Boolean)

Ein Komfortwrapper für addMonitor(ActivityMonitor), der einen Klassenabgleich von ActivityMonitor für Sie erstellt und zurückgibt.

[Android.Runtime.Register("addMonitor", "(Ljava/lang/String;Landroid/app/Instrumentation$ActivityResult;Z)Landroid/app/Instrumentation$ActivityMonitor;", "GetAddMonitor_Ljava_lang_String_Landroid_app_Instrumentation_ActivityResult_ZHandler")]
public virtual Android.App.Instrumentation.ActivityMonitor? AddMonitor(string? cls, Android.App.Instrumentation.ActivityResult? result, bool block);
[<Android.Runtime.Register("addMonitor", "(Ljava/lang/String;Landroid/app/Instrumentation$ActivityResult;Z)Landroid/app/Instrumentation$ActivityMonitor;", "GetAddMonitor_Ljava_lang_String_Landroid_app_Instrumentation_ActivityResult_ZHandler")>]
abstract member AddMonitor : string * Android.App.Instrumentation.ActivityResult * bool -> Android.App.Instrumentation.ActivityMonitor
override this.AddMonitor : string * Android.App.Instrumentation.ActivityResult * bool -> Android.App.Instrumentation.ActivityMonitor

Parameter

cls
String

Zeichenfolge: Die Aktivitätsklasse, für die dieser Monitor verantwortlich ist.

result
Instrumentation.ActivityResult

Instrumentation.ActivityResult: Ein canned result to return if the monitor is hit; kann NULL sein.

block
Boolean

boolescher Wert: Steuert, ob der Monitor den Start der Aktivität blockieren soll (das canned-Ergebnis zurückgeben) oder ob der Anruf fortgesetzt werden soll.

Gibt zurück

Der neu erstellte und hinzugefügte Aktivitätsmonitor.

Attribute

Hinweise

Ein Komfortwrapper für addMonitor(ActivityMonitor), der einen Klassenabgleich von ActivityMonitor für Sie erstellt und zurückgibt.

Siehe auch:

Android-Referenz für android.app.Instrumentation.addMonitor.

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: