Intent.HasExtra(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.