CodingKeys
The keys used when encoding NotificationAction
.
enum CodingKeys
The keys used when encoding NotificationAction
.
enum CodingKeys
import WebPush
struct NotificationAction
An associated action for a notification when it is displayed to the user.
enum PushMessage
Common Push Message types.
case id
case label
case destination
case icon
init(from decoder: any Decoder) throws
var destination: URL
The destination that will be opened when the action’s button is pressed.
var icon: URL?
The URL of an icon to display with the action.
var id: String
The action’s identifier.
var label: String
The action button’s label.
protocol CodingKey : CustomDebugStringConvertible, CustomStringConvertible, Sendable
A type that can be used as a key for encoding and decoding.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
init?(intValue: Int)
init?(rawValue: String)
init?(stringValue: String)
var debugDescription: String { get }
A textual representation of this key, suitable for debugging.
var description: String { get }
A textual representation of this key.
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)