Freigeben über


Contacts.People.OpenContactPhotoInputStream(ContentResolver, Uri) Method

Definition

Caution

deprecated

Opens an InputStream for the person's photo and returns the photo as a Bitmap.

[Android.Runtime.Register("openContactPhotoInputStream", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Ljava/io/InputStream;", "")]
[System.Obsolete("deprecated")]
public static System.IO.Stream? OpenContactPhotoInputStream (Android.Content.ContentResolver? cr, Android.Net.Uri? person);
[<Android.Runtime.Register("openContactPhotoInputStream", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Ljava/io/InputStream;", "")>]
[<System.Obsolete("deprecated")>]
static member OpenContactPhotoInputStream : Android.Content.ContentResolver * Android.Net.Uri -> System.IO.Stream

Parameters

person
Uri

the person whose photo should be used

Returns

Attributes

Remarks

Opens an InputStream for the person's photo and returns the photo as a Bitmap. If the person's photo isn't present returns the placeholderImageResource instead.

This member is deprecated. see android.provider.ContactsContract

Java documentation for android.provider.Contacts.People.openContactPhotoInputStream(android.content.ContentResolver, android.net.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