MessageCodingKeys
The keys used when encoding a top-level Notification
.
enum MessageCodingKeys
The keys used when encoding a top-level Notification
.
enum MessageCodingKeys
import WebPush
struct Notification<Contents> where Contents : Encodable, Contents : Sendable
A Declarative Push Notification.
enum PushMessage
Common Push Message types.
protocol Encodable
A type that can encode itself to an external representation.
protocol Sendable
case webPushIdentifier
case notification
case appBadgeCount
case isMutable
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 NotificationCodingKeys
The keys used when encoding a Notification
as a 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)