Notification.Builder.SetSettingsText Method

Definition

Overloads

Name Description
SetSettingsText(ICharSequence)

Provides text that will appear as a link to your application's settings.

SetSettingsText(String)

Provides text that will appear as a link to your application's settings.

SetSettingsText(ICharSequence)

Provides text that will appear as a link to your application's settings.

[Android.Runtime.Register("setSettingsText", "(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;", "GetSetSettingsText_Ljava_lang_CharSequence_Handler", ApiSince=26)]
public virtual Android.App.Notification.Builder SetSettingsText(Java.Lang.ICharSequence? text);
[<Android.Runtime.Register("setSettingsText", "(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;", "GetSetSettingsText_Ljava_lang_CharSequence_Handler", ApiSince=26)>]
abstract member SetSettingsText : Java.Lang.ICharSequence -> Android.App.Notification.Builder
override this.SetSettingsText : Java.Lang.ICharSequence -> Android.App.Notification.Builder

Parameters

text
ICharSequence

CharSequence

Returns

This Android.App.Notification.Builder instance, allowing calls to be chained.

Attributes

Remarks

Provides text that will appear as a link to your application's settings. This text does not appear within notification templates but may appear when the user uses an affordance to learn more about the notification. Additionally, this text will not appear unless you provide a valid link target by handling Notification.INTENT_CATEGORY_NOTIFICATION_PREFERENCES. This text is meant to be concise description about what the user can customize when they click on this link. The recommended maximum length is 40 characters.

Android reference for android.app.Notification.Builder.setSettingsText.

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

SetSettingsText(String)

Provides text that will appear as a link to your application's settings.

public Android.App.Notification.Builder SetSettingsText(string? text);
member this.SetSettingsText : string -> Android.App.Notification.Builder

Parameters

text
String

CharSequence

Returns

This Android.App.Notification.Builder instance, allowing calls to be chained.

Remarks

Provides text that will appear as a link to your application's settings. This text does not appear within notification templates but may appear when the user uses an affordance to learn more about the notification. Additionally, this text will not appear unless you provide a valid link target by handling Notification.INTENT_CATEGORY_NOTIFICATION_PREFERENCES. This text is meant to be concise description about what the user can customize when they click on this link. The recommended maximum length is 40 characters.

Android reference for android.app.Notification.Builder.setSettingsText.

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