FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
AsyncDisplayKit/AsyncDisplayKit/ASViewController.h at master · xmliteworkltd/AsyncDisplayKit · GitHub
xmliteworkltd
/
AsyncDisplayKit
Public
forked from
facebookarchive/AsyncDisplayKit
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
AsyncDisplayKit
/
AsyncDisplayKit
/
ASViewController.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
102 lines (78 loc) · 3.86 KB
Breadcrumbs
AsyncDisplayKit
/
AsyncDisplayKit
/
ASViewController.h
Copy path
File metadata and controls
102 lines (78 loc) · 3.86 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
//
//
ASViewController.h
//
AsyncDisplayKit
//
//
Created by Huy Nguyen on 16/09/15.
//
//
Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
//
This source code is licensed under the BSD-style license found in the
//
LICENSE file in the root directory of this source tree. An additional grant
//
of patent rights can be found in the PATENTS file in the same directory.
//
#
import
<
UIKit/UIKit.h
>
#
import
<
AsyncDisplayKit/ASDisplayNode.h
>
#
import
<
AsyncDisplayKit/ASVisibilityProtocols.h
>
@class
ASTraitCollection;
NS_ASSUME_NONNULL_BEGIN
typedef
ASTraitCollection *
_Nonnull
(^ASDisplayTraitsForTraitCollectionBlock)(UITraitCollection *traitCollection);
typedef
ASTraitCollection *
_Nonnull
(^ASDisplayTraitsForTraitWindowSizeBlock)(CGSize windowSize);
@interface
ASViewController
<__covariant DisplayNodeType : ASDisplayNode *> : UIViewController <ASVisibilityDepth>
/*
*
* ASViewController Designated initializer.
*
* @discussion ASViewController allows you to have a completely node backed heirarchy. It automatically
* handles @c ASVisibilityDepth, automatic range mode and propogating @c ASDisplayTraits to contained nodes.
*
* @param node An ASDisplayNode which will provide the root view (self.view)
* @return An ASViewController instance whose root view will be backed by the provided ASDisplayNode.
*
* @see ASVisibilityDepth
*/
- (
instancetype
)
initWithNode
:
(DisplayNodeType)
node
NS_DESIGNATED_INITIALIZER;
/*
*
* @return node Returns the ASDisplayNode which provides the backing view to the view controller.
*/
@property
(
nonatomic
,
strong
,
readonly
) DisplayNodeType node;
/*
*
* Set this block to customize the ASDisplayTraits returned when the VC transitions to the given traitCollection.
*/
@property
(
nonatomic
,
copy
) ASDisplayTraitsForTraitCollectionBlock overrideDisplayTraitsWithTraitCollection;
/*
*
* Set this block to customize the ASDisplayTraits returned when the VC transitions to the given window size.
*/
@property
(
nonatomic
,
copy
) ASDisplayTraitsForTraitWindowSizeBlock overrideDisplayTraitsWithWindowSize;
/*
*
* @abstract Passthrough property to the the .interfaceState of the node.
* @return The current ASInterfaceState of the node, indicating whether it is visible and other situational properties.
* @see ASInterfaceState
*/
@property
(
nonatomic
,
readonly
) ASInterfaceState interfaceState;
//
AsyncDisplayKit 2.0 BETA: This property is still being tested, but it allows
//
blocking as a view controller becomes visible to ensure no placeholders flash onscreen.
//
Refer to examples/SynchronousConcurrency, AsyncViewController.m
@property
(
nonatomic
,
assign
)
BOOL
neverShowPlaceholders;
@end
@interface
ASViewController
(ASRangeControllerUpdateRangeProtocol)
/*
*
* Automatically adjust range mode based on view events. If you set this to YES, the view controller or its node
* must conform to the ASRangeControllerUpdateRangeProtocol.
*
* Default value is YES *if* node or view controller conform to ASRangeControllerUpdateRangeProtocol otherwise it is NO.
*/
@property
(
nonatomic
,
assign
)
BOOL
automaticallyAdjustRangeModeBasedOnViewEvents;
@end
@interface
ASViewController
(Deprecated)
/*
*
* The constrained size used to measure the backing node.
*
* @discussion Defaults to providing a size range that uses the view controller view's bounds as
* both the min and max definitions. Override this method to provide a custom size range to the
* backing node.
*/
- (ASSizeRange)
nodeConstrainedSize
AS_WARN_UNUSED_RESULT ASDISPLAYNODE_DEPRECATED_MSG(
"
Set the size directly to the view's frame
"
);
@end
@interface
ASViewController
(Unavailable)
- (
instancetype
)
initWithNibName
:
(
NSString
*)
nibNameOrNil
bundle
:
(
NSBundle
*)
nibBundleOrNil
AS_UNAVAILABLE(
"
ASViewController requires using -initWithNode:
"
);
- (nullable
instancetype
)
initWithCoder
:
(
NSCoder
*)
aDecoder
AS_UNAVAILABLE(
"
ASViewController requires using -initWithNode:
"
);
@end
NS_ASSUME_NONNULL_END
Back
|
FazBrowse Home
|
New Git URL