Contacts.People.LoadContactPhoto Method

Definition

Caution

deprecated

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

[Android.Runtime.Register("loadContactPhoto", "(Landroid/content/Context;Landroid/net/Uri;ILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;", "")]
[System.Obsolete("deprecated")]
public static Android.Graphics.Bitmap? LoadContactPhoto (Android.Content.Context? context, Android.Net.Uri? person, int placeholderImageResource, Android.Graphics.BitmapFactory.Options? options);
[<Android.Runtime.Register("loadContactPhoto", "(Landroid/content/Context;Landroid/net/Uri;ILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;", "")>]
[<System.Obsolete("deprecated")>]
static member LoadContactPhoto : Android.Content.Context * Android.Net.Uri * int * Android.Graphics.BitmapFactory.Options -> Android.Graphics.Bitmap

Parameters

context
Context

the Context

person
Uri

the person whose photo should be used

placeholderImageResource
Int32

the image resource to use if the person doesn't have a photo

options
BitmapFactory.Options

the decoding options, can be set to null

Returns

Attributes

Remarks

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