Add documentation for visibilityDidChange:

This commit is contained in:
Michael Schneider
2016-03-15 16:30:23 -07:00
parent 863b0ca956
commit b7a92b2947
2 changed files with 6 additions and 0 deletions

View File

@@ -231,6 +231,11 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)interfaceStateDidChange:(ASInterfaceState)newState fromState:(ASInterfaceState)oldState ASDISPLAYNODE_REQUIRES_SUPER;
/**
* @abstract Called whenever the visiblity of the node changed.
*
* @discussion Subclasses may use this to monitor when they become visible.
*/
- (void)visibilityDidChange:(BOOL)isVisible ASDISPLAYNODE_REQUIRES_SUPER;
/**

View File

@@ -1982,6 +1982,7 @@ void recursivelyTriggerDisplayForLayer(CALayer *layer, BOOL shouldBlock)
- (void)visibilityDidChange:(BOOL)isVisible
{
// subclass override
}
/**