AppBadge Struct

An application badge set by navigator.setAppBadge() or navigator.clearAppBadge() (https://w3c.github.io/badging/#the-badge).

public readonly struct AppBadge : IEquatable<AppBadge>
Implements

Properties

NameDescription
CountGets the number shown by the badge, when AppBadge.Kind is AppBadgeKind.Count (0 otherwise).
FlagGets the badge without a number.
KindGets the kind of the badge.
NothingGets the badge that clears the badge.

Gets the number shown by the badge, when AppBadge.Kind is AppBadgeKind.Count (0 otherwise).

public ulong Count { get; }

Property value

ulong

Gets the badge without a number.

public static AppBadge Flag { get; }

Property value

AppBadge

Gets the kind of the badge.

public AppBadgeKind Kind { get; }

Property value

AppBadgeKind

Nothing

Badging.cs

Gets the badge that clears the badge.

public static AppBadge Nothing { get; }

Property value

AppBadge

Methods

NameDescription
Equals(AppBadge)
Equals(object)
FromCount(ulong)Creates a badge that shows a number; 0 clears the badge.
GetHashCode()
ToString()

Equals overloads

Equals(AppBadge)

public bool Equals(AppBadge other)
Parameters
other AppBadge
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

FromCount(ulong)

Badging.cs

Creates a badge that shows a number; 0 clears the badge.

public static AppBadge FromCount(ulong count)

Parameters

count ulong
The number to show.

Returns

AppBadge

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(AppBadge, AppBadge)
operator !=(AppBadge, AppBadge)

operator ==(AppBadge, AppBadge)

public static bool operator ==(AppBadge left, AppBadge right)

Parameters

left AppBadge
right AppBadge

Returns

bool

No documentation is available.

operator !=(AppBadge, AppBadge)

public static bool operator !=(AppBadge left, AppBadge right)

Parameters

left AppBadge
right AppBadge

Returns

bool

No documentation is available.