Show / Hide Table of Contents

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.

Inheritance
object
Action
View
Implements
IAction
Inherited Members
Action.Label
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ntfy.Actions
Assembly: ntfy.dll
Syntax
public class View : Action, IAction

Constructors

| Improve this Doc View Source

View(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 Source

Clear

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?
| Improve this Doc View Source

Type

The type of this action, as an ActionType enum.

Declaration
[JsonIgnore]
public override ActionType Type { get; }
Property Value
Type Description
ActionType
Overrides
Action.Type
| Improve this Doc View Source

Url

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

Implements

IAction
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX