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 byNSDataDetector
isNSTextCheckingTypeAddress
.Declared In
TTDetectedData.h
. TTDetectedMessageTypeLink
-
The data is of type link if the
NSTextCheckingType
returned byNSDataDetector
isNSTextCheckingTypeLink
.Declared In
TTDetectedData.h
. TTDetectedMessageTypeImageLink
-
The data is of type image link if the
NSTextCheckingType
returned byNSDataDetector
isNSTextCheckingTypeLink
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 byNSDataDetector
isNSTextCheckingTypePhoneNumber
.Declared In
TTDetectedData.h
. TTDetectedMessageTypeEmail
-
The data is of type email if the
NSTextCheckingType
returned byNSDataDetector
isNSTextCheckingTypeLink
and the link starts with “mailto:”.Declared In
TTDetectedData.h
.
Declared In
TTDetectedData.h