PhoneNumberUtils.GetNumberFromIntent(Intent, Context) 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.
Extracts the phone number from an Intent.
[Android.Runtime.Register("getNumberFromIntent", "(Landroid/content/Intent;Landroid/content/Context;)Ljava/lang/String;", "")]
public static string? GetNumberFromIntent (Android.Content.Intent? intent, Android.Content.Context? context);
[<Android.Runtime.Register("getNumberFromIntent", "(Landroid/content/Intent;Landroid/content/Context;)Ljava/lang/String;", "")>]
static member GetNumberFromIntent : Android.Content.Intent * Android.Content.Context -> string
Parameters
- intent
- Intent
the intent to get the number of
- context
- Context
a context to use for database access
Returns
the phone number that would be called by the intent, or
null
if the number cannot be found.
- Attributes
Remarks
Extracts the phone number from an Intent.
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.