Sdílet prostřednictvím


NotificationChannel.CanShowBadge Method

Definition

Returns whether notifications posted to this channel can appear as badges in a Launcher application.

[Android.Runtime.Register("canShowBadge", "()Z", "", ApiSince=26)]
public bool CanShowBadge ();
[<Android.Runtime.Register("canShowBadge", "()Z", "", ApiSince=26)>]
member this.CanShowBadge : unit -> bool

Returns

Attributes

Remarks

Returns whether notifications posted to this channel can appear as badges in a Launcher application.

Note that badging may be disabled for other reasons.

Java documentation for android.app.NotificationChannel.canShowBadge().

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