Contacts.People.SetPhotoData(ContentResolver, Uri, Byte[]) Method

Definition

Caution

deprecated

Set the photo for this person.

[Android.Runtime.Register("setPhotoData", "(Landroid/content/ContentResolver;Landroid/net/Uri;[B)V", "")]
[System.Obsolete("deprecated")]
public static void SetPhotoData (Android.Content.ContentResolver? cr, Android.Net.Uri? person, byte[]? data);
[<Android.Runtime.Register("setPhotoData", "(Landroid/content/ContentResolver;Landroid/net/Uri;[B)V", "")>]
[<System.Obsolete("deprecated")>]
static member SetPhotoData : Android.Content.ContentResolver * Android.Net.Uri * byte[] -> unit

Parameters

cr
ContentResolver

the ContentResolver to use

person
Uri

the Uri of the person whose photo is to be updated

data
Byte[]

the byte[] that represents the photo

Attributes

Remarks

Set the photo for this person. data may be null

This member is deprecated. see android.provider.ContactsContract

Java documentation for android.provider.Contacts.People.setPhotoData(android.content.ContentResolver, android.net.Uri, byte[]).

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