Structure
LocationMessage
public struct LocationMessage: MessageType
Used in a MessagesViewController when it needs to show a location based message.
Relationships
Conforms To
MessageType
Initializers
init(sender:location:sentDate:)
public init(sender: Sender, location: CLLocation, sentDate: Date = Date())
Creates a LocationMessage.
Parameters
Name | Type | Description |
---|---|---|
sender | Sender |
The sender of the message. |
location | CLLocation |
The location to display. |
Properties
sender
public var sender: Sender
messageId
public var messageId: String = UUID().uuidString
sentDate
public var sentDate: Date
kind
public private(set) var kind: MessageKind
Methods
make(sender:location:sentDate:)
public static func make(sender: Sender, location: CLLocation, sentDate: Date = Date()) -> LocationMessage
Creates a LocationMessage.
Parameters
Name | Type | Description |
---|---|---|
sender | Sender |
The sender of the message. |
location | CLLocation |
The location to display. |