Class View
A View action that can be included on a ReceivedMessage or SendingMessage. Opens a website or app when the action button is tapped.
Implements
Inherited Members
Namespace: ntfy.Actions
Assembly: ntfy.dll
Syntax
public class View : Action, IAction
Constructors
| Improve this Doc View SourceView(string, Uri)
Constructor for a View action.
Declaration
public View(string label, Uri url)
Parameters
Type | Name | Description |
---|---|---|
string | label | The label for the action. |
Uri | url | The URL to open when the action is tapped. |
Properties
| Improve this Doc View SourceClear
Whether to clear the associated notification after this View action button is tapped.
Defaults to false
.
Declaration
[JsonProperty("clear", Required = Required.AllowNull, NullValueHandling = NullValueHandling.Ignore)]
public bool? Clear { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Type
The type of this action, as an ActionType enum.
Declaration
[JsonIgnore]
public override ActionType Type { get; }
Property Value
Type | Description |
---|---|
ActionType |
Overrides
| Improve this Doc View SourceUrl
The URL to open when this View action button is tapped.
Declaration
[JsonProperty("url", Required = Required.AllowNull, NullValueHandling = NullValueHandling.Ignore)]
public Uri Url { get; set; }
Property Value
Type | Description |
---|---|
Uri |