ASTextNodeDelegate Protocol Reference
| Conforms to | NSObject |
| Declared in | ASTextNode.h |
Instance Methods
textNode:longPressedLinkAttribute:value:atPoint:textRange:
Indicates to the delegate that a link was tapped within a text node.
- (void)textNode:(id)textNode longPressedLinkAttribute:(id)attribute value:(id)value atPoint:(id)point textRange:(id)textRangeParameters
- textNode
The ASTextNode containing the link that was tapped.
- attribute
The attribute that was tapped. Will not be nil.
- value
The value of the tapped attribute.
- point
The point within textNode, in textNode’s coordinate system, that was tapped.
Declared In
ASTextNode.htextNode:shouldHighlightLinkAttribute:value:
Indicates to the text node if an attribute should be considered a link.
- (BOOL)textNode:(id)textNode shouldHighlightLinkAttribute:(id)attribute value:(id)valueParameters
- textNode
The text node containing the entity attribute.
- attribute
The attribute that was tapped. Will not be nil.
- value
The value of the tapped attribute.
Return Value
YES if the entity attribute should be a link, NO otherwise.
Discussion
If not implemented, the default value is NO.
Declared In
ASTextNode.htextNode:shouldLongPressLinkAttribute:value:
Indicates to the text node if an attribute is a valid long-press target
- (BOOL)textNode:(id)textNode shouldLongPressLinkAttribute:(id)attribute value:(id)valueParameters
- textNode
The text node containing the entity attribute.
- attribute
The attribute that was tapped. Will not be nil.
- value
The value of the tapped attribute.
Return Value
YES if the entity attribute should be treated as a long-press target, NO otherwise.
Discussion
If not implemented, the default value is NO.
Declared In
ASTextNode.htextNode:tappedLinkAttribute:value:atPoint:textRange:
Indicates to the delegate that a link was tapped within a text node.
- (void)textNode:(id)textNode tappedLinkAttribute:(id)attribute value:(id)value atPoint:(id)point textRange:(id)textRangeParameters
- textNode
The ASTextNode containing the link that was tapped.
- attribute
The attribute that was tapped. Will not be nil.
- value
The value of the tapped attribute.
- point
The point within textNode, in textNode’s coordinate system, that was tapped.
Declared In
ASTextNode.h