ASDisplayNode(Deprecated) Category Reference
| Declared in | ASDisplayNode+Deprecated.h |
|---|
)
The name of this node, which will be displayed in description. The default value is nil. (Deprecated: Deprecated in version 2.0: Use .debugName instead. This value will display in
results of the -asciiArtString method (@see ASLayoutElementAsciiArtProtocol).)
@property (nullable, nonatomic, copy) NSString *ASDISPLAYNODE_DEPRECATED_MSG ( "Use .debugName instead." )Declared In
ASDisplayNode+Deprecated.h
– measure:
Asks the node to measure and return the size that best fits its subnodes. (Deprecated: Deprecated in version 2.0: Use layoutThatFits: with a constrained size of (CGSizeZero, constrainedSize) and call size on the returned ASLayout)
- (CGSize)measure:(CGSize)constrainedSizeParameters
constrainedSize |
The maximum size the receiver should fit in. |
|---|
Return Value
A new size that fits the receiver’s subviews.
Discussion
Though this method does not set the bounds of the view, it does have side effects–caching both the constraint and the result.
Warning: Subclasses must not override this; it calls -measureWithSizeRange: with zero min size. -measureWithSizeRange: caches results from -calculateLayoutThatFits:. Calling this method may be expensive if result is not cached.
Declared In
ASDisplayNode+Deprecated.h
– visibilityDidChange:
Called whenever the visiblity of the node changed. (Deprecated: @see didEnterVisibleState @see didExitVisibleState)
- (void)visibilityDidChange:(BOOL)isVisibleDiscussion
Subclasses may use this to monitor when they become visible.
Declared In
ASDisplayNode+Deprecated.h
– visibleStateDidChange:
Called whenever the visiblity of the node changed. (Deprecated: @see didEnterVisibleState @see didExitVisibleState)
- (void)visibleStateDidChange:(BOOL)isVisibleDiscussion
Subclasses may use this to monitor when they become visible.
Declared In
ASDisplayNode+Deprecated.h
– displayStateDidChange:
Called whenever the the node has entered or exited the display state. (Deprecated: @see didEnterDisplayState @see didExitDisplayState)
- (void)displayStateDidChange:(BOOL)inDisplayStateDiscussion
Subclasses may use this to monitor when a node should be rendering its content.
Note: This method can be called from any thread and should therefore be thread safe.
Declared In
ASDisplayNode+Deprecated.h
– loadStateDidChange:
Called whenever the the node has entered or left the load state. (Deprecated: @see didEnterPreloadState @see didExitPreloadState)
- (void)loadStateDidChange:(BOOL)inLoadStateDiscussion
Subclasses may use this to monitor data for a node should be loaded, either from a local or remote source.
Note: This method can be called from any thread and should therefore be thread safe.
Declared In
ASDisplayNode+Deprecated.h
– cancelLayoutTransitionsInProgress
Cancels all performing layout transitions. Can be called on any thread. (Deprecated: Deprecated in version 2.0: Use cancelLayoutTransition)
- (void)cancelLayoutTransitionsInProgressDeclared In
ASDisplayNode+Deprecated.h