PhoneAccount.Builder.SetIcon(Icon) 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.
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.