wellKnownTypeTextPayload()
Returns the text and locale of a valid Well Known Type Text payload.
Declaration
func wellKnownTypeTextPayload() -> (String?, Locale?)Return Value
A tuple containing a string and locale from a Well Known Type Text payload. The string and locale can be nil.
Discussion
Use this method to get option text from a text payload.
// Get the optional informational text from the text payload.
var additionInfo: String? = nil
for payload in message.records {
(additionInfo, _) = payload.wellKnownTypeTextPayload()
if additionInfo != nil {
break
}
}