Megosztás a következőn keresztül:


Intent.HasExtra(String) Method

Definition

Returns true if an extra value is associated with the given name.

[Android.Runtime.Register("hasExtra", "(Ljava/lang/String;)Z", "GetHasExtra_Ljava_lang_String_Handler")]
public virtual bool HasExtra (string? name);
[<Android.Runtime.Register("hasExtra", "(Ljava/lang/String;)Z", "GetHasExtra_Ljava_lang_String_Handler")>]
abstract member HasExtra : string -> bool
override this.HasExtra : string -> bool

Parameters

name
String

the extra's name

Returns

true if the given extra is present.

Attributes

Remarks

Returns true if an extra value is associated with the given name.

Java documentation for android.content.Intent.hasExtra(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to