Language

PhoneAccount.Builder.SetIcon(Icon) Method

Definition

Sets the icon.

[Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Icon;)Landroid/telecom/PhoneAccount$Builder;", "GetSetIcon_Landroid_graphics_drawable_Icon_Handler", ApiSince=23)]
public virtual Android.Telecom.PhoneAccount.Builder SetIcon(Android.Graphics.Drawables.Icon icon);
[<Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Icon;)Landroid/telecom/PhoneAccount$Builder;", "GetSetIcon_Landroid_graphics_drawable_Icon_Handler", ApiSince=23)>]
abstract member SetIcon : Android.Graphics.Drawables.Icon -> Android.Telecom.PhoneAccount.Builder
override this.SetIcon : Android.Graphics.Drawables.Icon -> Android.Telecom.PhoneAccount.Builder

Parameters

icon
Icon

The icon to set.

Returns

Attributes

Remarks

Sets the icon. See PhoneAccount.getIcon.

Note: An IllegalArgumentException if the Icon cannot be written to memory. This check is enforced when registering the PhoneAccount via TelecomManager.registerPhoneAccount(PhoneAccount)

Android reference for android.telecom.PhoneAccount.Builder.setIcon.

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