共用方式為


QuickContactBadge.AssignContactFromPhone Method

Definition

Overloads

AssignContactFromPhone(String, Boolean)

Assign a contact based on a phone number.

AssignContactFromPhone(String, Boolean, Bundle)

Assign a contact based on a phone number.

AssignContactFromPhone(String, Boolean)

Assign a contact based on a phone number.

[Android.Runtime.Register("assignContactFromPhone", "(Ljava/lang/String;Z)V", "GetAssignContactFromPhone_Ljava_lang_String_ZHandler")]
public virtual void AssignContactFromPhone (string? phoneNumber, bool lazyLookup);
[<Android.Runtime.Register("assignContactFromPhone", "(Ljava/lang/String;Z)V", "GetAssignContactFromPhone_Ljava_lang_String_ZHandler")>]
abstract member AssignContactFromPhone : string * bool -> unit
override this.AssignContactFromPhone : string * bool -> unit

Parameters

phoneNumber
String

The phone number of the contact.

lazyLookup
Boolean

If this is true, the lookup query will not be performed until this view is clicked.

Attributes

Remarks

Assign a contact based on a phone number. This should only be used when the contact's URI is not available, as an extra query will have to be performed to lookup the URI based on the phone number.

Java documentation for android.widget.QuickContactBadge.assignContactFromPhone(java.lang.String, boolean).

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

AssignContactFromPhone(String, Boolean, Bundle)

Assign a contact based on a phone number.

[Android.Runtime.Register("assignContactFromPhone", "(Ljava/lang/String;ZLandroid/os/Bundle;)V", "GetAssignContactFromPhone_Ljava_lang_String_ZLandroid_os_Bundle_Handler")]
public virtual void AssignContactFromPhone (string? phoneNumber, bool lazyLookup, Android.OS.Bundle? extras);
[<Android.Runtime.Register("assignContactFromPhone", "(Ljava/lang/String;ZLandroid/os/Bundle;)V", "GetAssignContactFromPhone_Ljava_lang_String_ZLandroid_os_Bundle_Handler")>]
abstract member AssignContactFromPhone : string * bool * Android.OS.Bundle -> unit
override this.AssignContactFromPhone : string * bool * Android.OS.Bundle -> unit

Parameters

phoneNumber
String

The phone number of the contact.

lazyLookup
Boolean

If this is true, the lookup query will not be performed until this view is clicked.

extras
Bundle

A bundle of extras to populate the contact edit page with if the contact is not found and the user chooses to add the phone number to an existing contact or create a new contact. Uses the same string constants as those found in android.provider.ContactsContract.Intents.Insert

Attributes

Remarks

Assign a contact based on a phone number. This should only be used when the contact's URI is not available, as an extra query will have to be performed to lookup the URI based on the phone number.

Java documentation for android.widget.QuickContactBadge.assignContactFromPhone(java.lang.String, boolean, android.os.Bundle).

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