共用方式為


ContactsContract.CommonDataKinds.Callable.InterfaceConsts.PhotoUri Field

Definition

A URI that can be used to retrieve the contact's full-size photo.

[Android.Runtime.Register("PHOTO_URI")]
public const string PhotoUri;
[<Android.Runtime.Register("PHOTO_URI")>]
val mutable PhotoUri : string

Field Value

Attributes

Remarks

A URI that can be used to retrieve the contact's full-size photo. If PHOTO_FILE_ID is not null, this will be populated with a URI based off ContactsContract.DisplayPhoto#CONTENT_URI. Otherwise, this will be populated with the same value as #PHOTO_THUMBNAIL_URI. A photo can be referred to either by a URI (this field) or by ID (see #PHOTO_ID). If either PHOTO_FILE_ID or PHOTO_ID is not null, PHOTO_URI and PHOTO_THUMBNAIL_URI shall not be null (but not necessarily vice versa). Thus using PHOTO_URI is a more robust method of retrieving contact photos.

Type: TEXT

Java documentation for android.provider.ContactsContract.ContactsColumns.PHOTO_URI.

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