NotificationCodingKeys
The keys used when encoding a Notification
as a notification
.
enum NotificationCodingKeys
The keys used when encoding a Notification
as a notification
.
enum NotificationCodingKeys
import WebPush
struct Notification<Contents> where Contents : Encodable, Contents : Sendable
A Declarative Push Notification.
enum PushMessage
Common Push Message types.
case notification
protocol Encodable
A type that can encode itself to an external representation.
protocol Sendable
case title
case direction
case language
case body
case destination
case tag
case image
case icon
case badgeIcon
case vibrate
case timestamp
case shouldRenotify
case isSilent
case requiresInteraction
case data
case actions
func checkMessageSize() throws
Check to see if a notification is potentially too large to be sent to a push service.
func encode(to encoder: any Encoder) throws
enum MessageCodingKeys
The keys used when encoding a top-level Notification
.
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.
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)