Skip to main content

MessagePinning

Describes the pinning expiration

public struct MessagePinning: Equatable 

Inheritance

Equatable

Properties

expirationDate

The expiration date of the pinning. Infinite expiration in case it is nil.

public let expirationDate: Date?

noExpiration

Pins a message with infinite expiration.

public static let noExpiration 

Methods

expirationDate(_:)

Pins a message.

public static func expirationDate(_ date: Date) -> Self 

Parameters

  • date: The date when the message will be unpinned.

expirationTime(_:)

Pins a message.

public static func expirationTime(_ time: TimeInterval) -> Self 

Parameters

  • time: The amount of seconds the message will be pinned.

Did you find this page helpful?