ActionBar.SetHomeActionContentDescription Method

Definition

Overloads

SetHomeActionContentDescription(ICharSequence)

Set an alternate description for the Home/Up action, when enabled.

SetHomeActionContentDescription(Int32)

Set an alternate description for the Home/Up action, when enabled.

SetHomeActionContentDescription(String)

Set an alternate description for the Home/Up action, when enabled.

SetHomeActionContentDescription(ICharSequence)

Set an alternate description for the Home/Up action, when enabled.

[Android.Runtime.Register("setHomeActionContentDescription", "(Ljava/lang/CharSequence;)V", "GetSetHomeActionContentDescription_Ljava_lang_CharSequence_Handler")]
public virtual void SetHomeActionContentDescription (Java.Lang.ICharSequence? description);
[<Android.Runtime.Register("setHomeActionContentDescription", "(Ljava/lang/CharSequence;)V", "GetSetHomeActionContentDescription_Ljava_lang_CharSequence_Handler")>]
abstract member SetHomeActionContentDescription : Java.Lang.ICharSequence -> unit
override this.SetHomeActionContentDescription : Java.Lang.ICharSequence -> unit

Parameters

description
ICharSequence

New description for the Home action when enabled

Attributes

Remarks

Set an alternate description for the Home/Up action, when enabled.

This description is commonly used for accessibility/screen readers when the Home action is enabled. (See #setDisplayHomeAsUpEnabled(boolean).) Examples of this are, "Navigate Home" or "Navigate Up" depending on the #DISPLAY_HOME_AS_UP display option. If you have changed the home-as-up indicator using #setHomeAsUpIndicator(int) to indicate more specific functionality such as a sliding drawer, you should also set this to accurately describe the action.

Setting this to null will use the system default description.

Java documentation for android.app.ActionBar.setHomeActionContentDescription(java.lang.CharSequence).

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.

See also

Applies to

SetHomeActionContentDescription(Int32)

Set an alternate description for the Home/Up action, when enabled.

[Android.Runtime.Register("setHomeActionContentDescription", "(I)V", "GetSetHomeActionContentDescription_IHandler")]
public virtual void SetHomeActionContentDescription (int resId);
[<Android.Runtime.Register("setHomeActionContentDescription", "(I)V", "GetSetHomeActionContentDescription_IHandler")>]
abstract member SetHomeActionContentDescription : int -> unit
override this.SetHomeActionContentDescription : int -> unit

Parameters

resId
Int32

Resource ID of a string to use as the new description for the Home action when enabled

Attributes

Remarks

Set an alternate description for the Home/Up action, when enabled.

This description is commonly used for accessibility/screen readers when the Home action is enabled. (See #setDisplayHomeAsUpEnabled(boolean).) Examples of this are, "Navigate Home" or "Navigate Up" depending on the #DISPLAY_HOME_AS_UP display option. If you have changed the home-as-up indicator using #setHomeAsUpIndicator(int) to indicate more specific functionality such as a sliding drawer, you should also set this to accurately describe the action.

Setting this to 0 will use the system default description.

Java documentation for android.app.ActionBar.setHomeActionContentDescription(int).

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.

See also

Applies to

SetHomeActionContentDescription(String)

Set an alternate description for the Home/Up action, when enabled.

public void SetHomeActionContentDescription (string? description);
member this.SetHomeActionContentDescription : string -> unit

Parameters

description
String

New description for the Home action when enabled

Remarks

Set an alternate description for the Home/Up action, when enabled.

This description is commonly used for accessibility/screen readers when the Home action is enabled. (See #setDisplayHomeAsUpEnabled(boolean).) Examples of this are, "Navigate Home" or "Navigate Up" depending on the #DISPLAY_HOME_AS_UP display option. If you have changed the home-as-up indicator using #setHomeAsUpIndicator(int) to indicate more specific functionality such as a sliding drawer, you should also set this to accurately describe the action.

Setting this to null will use the system default description.

Java documentation for android.app.ActionBar.setHomeActionContentDescription(java.lang.CharSequence).

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