Share via


FeedAnnouncement Class

Definition

Provides data for a feed announcement that a feed provider can request to be displayed by calling <Microsoft.Windows.Widgets.Feeds.Providers.FeedManager.TryShowAnnouncement(System.String,System.String,Microsoft.Windows.Widgets.Notifications.FeedAnnouncement)>.

public ref class FeedAnnouncement sealed
/// [Windows.Foundation.Metadata.Activatable(Microsoft.Windows.Widgets.Notifications.IFeedAnnouncementFactory, 327680, "Microsoft.Windows.Widgets.WidgetContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.Widgets.WidgetContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class FeedAnnouncement final
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.Windows.Widgets.Notifications.IFeedAnnouncementFactory), 327680, "Microsoft.Windows.Widgets.WidgetContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.Widgets.WidgetContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class FeedAnnouncement
function FeedAnnouncement(id, primaryText, secondaryText, lightModeIcon, darkModeIcon)
Public NotInheritable Class FeedAnnouncement
Inheritance
Object Platform::Object IInspectable FeedAnnouncement
Attributes

Constructors

FeedAnnouncement(String, String, String, Uri, Uri)

Initializes a new instance of the FeedAnnouncement class.

Properties

CustomAccessibilityText

Gets or sets custom accessibility text is announced by screen readers.

DarkModeIconUri

Gets or sets the required icon URI for the dark mode OS theme, which will be displayed on the notification if the current OS theme is dark.

Duration

Gets or sets an optional duration value, specifying how long the announcement will be displayed.

ExpirationTime

Gets or sets the optional expiration time for the announcement.

Id

Gets or sets a required unique identifier for the announcement.

IsSecondaryTextSubtle

Gets or sets a value indicating wether the SecondaryText string is displayed with subtle formatting to appear less prominent.

LightModeIconUri

Gets or sets the required icon URI for the light mode OS theme, which will be displayed on the notification if the current OS theme is light.

PrimaryText

Gets or sets the required primary text for the announcement.

PrimaryTextColor

Gets or sets the color of the PrimaryText string.

SecondaryText

Gets or sets the required secondary text for the announcement.

SecondaryTextColor

Gets or sets the color of the SecondaryText string.

ShowBadgeIfUserNotEngaged

Gets or sets a value field indicating whether a badge should be displayed on the baseline announcement if the user has not engaged with the announcement. Default value will be false.

Applies to