TTDetectedMessageType Constants Reference

Declared in TTDetectedData.h

TTDetectedMessageType

Enumeration descriving types of detected data

Definition

typedef NS_ENUM(NSInteger, TTDetectedMessageType ) {
   TTDetectedMessageTypeNone = 0,
   TTDetectedMessageTypeAddress = 1,
   TTDetectedMessageTypeLink = 2,
   TTDetectedMessageTypeImageLink = 3,
   TTDetectedMessageTypePhoneNo = 4,
   TTDetectedMessageTypeEmail = 5,
};

Constants

TTDetectedMessageTypeNone

No detected data type

Declared In TTDetectedData.h.

TTDetectedMessageTypeAddress

The data is of type address if the NSTextCheckingType returned by NSDataDetector is NSTextCheckingTypeAddress.

Declared In TTDetectedData.h.

TTDetectedMessageTypeLink

The data is of type link if the NSTextCheckingType returned by NSDataDetector is NSTextCheckingTypeLink.

Declared In TTDetectedData.h.

TTDetectedMessageTypeImageLink

The data is of type image link if the NSTextCheckingType returned by NSDataDetector is NSTextCheckingTypeLink and the link ends with .jpg, .png, or .gif.

Declared In TTDetectedData.h.

TTDetectedMessageTypePhoneNo

The data is of type phone number if the NSTextCheckingType returned by NSDataDetector is NSTextCheckingTypePhoneNumber.

Declared In TTDetectedData.h.

TTDetectedMessageTypeEmail

The data is of type email if the NSTextCheckingType returned by NSDataDetector is NSTextCheckingTypeLink and the link starts with “mailto:”.

Declared In TTDetectedData.h.

Declared In

TTDetectedData.h