次の方法で共有


Notification.Builder.SetTicker Method

Definition

Overloads

SetTicker(String)

Set the "ticker" text which is displayed in the status bar when the notification first arrives.

SetTicker(String, RemoteViews)
Obsolete.

Set the ticker text.

SetTicker(ICharSequence)

Set the "ticker" text which is displayed in the status bar when the notification first arrives.

SetTicker(ICharSequence, RemoteViews)
Obsolete.

Set the ticker text and associated RemoteViews.

SetTicker(String)

Set the "ticker" text which is displayed in the status bar when the notification first arrives.

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

Parameters

tickerText
String

The ticker text to display.

Returns

Remarks

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

SetTicker(String, RemoteViews)

Caution

deprecated

Set the ticker text.

[System.Obsolete("deprecated")]
public Android.App.Notification.Builder? SetTicker (string? tickerText, Android.Widget.RemoteViews? views);
[<System.Obsolete("deprecated")>]
member this.SetTicker : string * Android.Widget.RemoteViews -> Android.App.Notification.Builder

Parameters

tickerText
String

The ticker text to display.

views
RemoteViews

The RemoteViews object to display.

Returns

Attributes

Remarks

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

SetTicker(ICharSequence)

Set the "ticker" text which is displayed in the status bar when the notification first arrives.

[Android.Runtime.Register("setTicker", "(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;", "GetSetTicker_Ljava_lang_CharSequence_Handler")]
public virtual Android.App.Notification.Builder SetTicker (Java.Lang.ICharSequence? tickerText);
[<Android.Runtime.Register("setTicker", "(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;", "GetSetTicker_Ljava_lang_CharSequence_Handler")>]
abstract member SetTicker : Java.Lang.ICharSequence -> Android.App.Notification.Builder
override this.SetTicker : Java.Lang.ICharSequence -> Android.App.Notification.Builder

Parameters

tickerText
ICharSequence

The ticker text to display.

Returns

Attributes

Remarks

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

SetTicker(ICharSequence, RemoteViews)

Caution

deprecated

Set the ticker text and associated RemoteViews.

[Android.Runtime.Register("setTicker", "(Ljava/lang/CharSequence;Landroid/widget/RemoteViews;)Landroid/app/Notification$Builder;", "GetSetTicker_Ljava_lang_CharSequence_Landroid_widget_RemoteViews_Handler")]
[System.Obsolete("deprecated")]
public virtual Android.App.Notification.Builder? SetTicker (Java.Lang.ICharSequence? tickerText, Android.Widget.RemoteViews? views);
[<Android.Runtime.Register("setTicker", "(Ljava/lang/CharSequence;Landroid/widget/RemoteViews;)Landroid/app/Notification$Builder;", "GetSetTicker_Ljava_lang_CharSequence_Landroid_widget_RemoteViews_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SetTicker : Java.Lang.ICharSequence * Android.Widget.RemoteViews -> Android.App.Notification.Builder
override this.SetTicker : Java.Lang.ICharSequence * Android.Widget.RemoteViews -> Android.App.Notification.Builder

Parameters

tickerText
ICharSequence

The ticker text to display.

views
RemoteViews

The RemoteViews object to display.

Returns

Attributes

Remarks

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