Contacts.People.OpenContactPhotoInputStream(ContentResolver, Uri) 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.
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
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.