Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flutter_boost_1.22.4
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢冠章
flutter_boost_1.22.4
Commits
fb1f6ed2
Commit
fb1f6ed2
authored
Dec 25, 2019
by
余玠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提供获取页面栈页面个数的接口
parent
fc43d670
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
6 deletions
+20
-6
ios/Classes/Boost/FLBFlutterApplicationInterface.h
ios/Classes/Boost/FLBFlutterApplicationInterface.h
+1
-0
ios/Classes/Boost/FLBFlutterContainerManager.h
ios/Classes/Boost/FLBFlutterContainerManager.h
+1
-0
ios/Classes/Boost/FLBFlutterContainerManager.m
ios/Classes/Boost/FLBFlutterContainerManager.m
+4
-0
ios/Classes/Boost/FlutterBoostPlugin.h
ios/Classes/Boost/FlutterBoostPlugin.h
+6
-0
ios/Classes/Boost/FlutterBoostPlugin.m
ios/Classes/Boost/FlutterBoostPlugin.m
+5
-0
ios/Classes/Engine/FLBFlutterApplication.m
ios/Classes/Engine/FLBFlutterApplication.m
+3
-0
ios/Classes/container/FLBFlutterViewContainer.h
ios/Classes/container/FLBFlutterViewContainer.h
+0
-1
ios/Classes/container/FLBFlutterViewContainer.m
ios/Classes/container/FLBFlutterViewContainer.m
+0
-5
No files found.
ios/Classes/Boost/FLBFlutterApplicationInterface.h
View file @
fb1f6ed2
...
...
@@ -45,6 +45,7 @@ NS_ASSUME_NONNULL_BEGIN
-
(
void
)
addUniqueViewController
:(
id
<
FLBFlutterContainer
>
)
vc
;
-
(
void
)
removeViewController
:(
id
<
FLBFlutterContainer
>
)
vc
;
-
(
BOOL
)
isTop
:(
NSString
*
)
pageId
;
-
(
NSInteger
)
pageCount
;
#pragma mark - App Control
-
(
void
)
pause
;
...
...
ios/Classes/Boost/FLBFlutterContainerManager.h
View file @
fb1f6ed2
...
...
@@ -32,6 +32,7 @@ NS_ASSUME_NONNULL_BEGIN
-
(
void
)
addUnique
:(
id
<
FLBFlutterContainer
>
)
vc
;
-
(
void
)
remove
:(
id
<
FLBFlutterContainer
>
)
vc
;
-
(
BOOL
)
contains
:(
id
<
FLBFlutterContainer
>
)
vc
;
-
(
NSInteger
)
pageCount
;
@end
NS_ASSUME_NONNULL_END
ios/Classes/Boost/FLBFlutterContainerManager.m
View file @
fb1f6ed2
...
...
@@ -79,6 +79,10 @@
return
_idStk
.
lastObject
;
}
-
(
NSInteger
)
pageCount
{
return
_idStk
.
count
;
}
#if DEBUG
-
(
void
)
dump
:(
NSString
*
)
flag
{
NSMutableString
*
log
=
[[
NSMutableString
alloc
]
initWithFormat
:
@"[DEBUG]--%@--PageStack uid/name"
,
flag
];
...
...
ios/Classes/Boost/FlutterBoostPlugin.h
View file @
fb1f6ed2
...
...
@@ -31,6 +31,12 @@ NS_ASSUME_NONNULL_BEGIN
#pragma mark - Initializer
+
(
instancetype
)
sharedInstance
;
/**
* 获取当前管理的页面栈中页面的个数
*
*/
+
(
NSInteger
)
pageCount
;
/**
* 初始化FlutterBoost混合栈环境。应在程序使用混合栈之前调用。如在AppDelegate中
*
...
...
ios/Classes/Boost/FlutterBoostPlugin.m
View file @
fb1f6ed2
...
...
@@ -111,6 +111,11 @@
return
_instance
;
}
+
(
NSInteger
)
pageCount
{
id
<
FLBFlutterApplicationInterface
>
app
=
[[
FlutterBoostPlugin
sharedInstance
]
application
];
return
[
app
pageCount
];
}
-
(
void
)
startFlutterWithPlatform
:(
id
<
FLBPlatform
>
)
platform
onStart
:(
void
(
^
)(
FlutterEngine
*
engine
))
callback
;
{
...
...
ios/Classes/Engine/FLBFlutterApplication.m
View file @
fb1f6ed2
...
...
@@ -116,6 +116,9 @@
return
[
_manager
remove
:
vc
];
}
-
(
NSInteger
)
pageCount
{
return
[
_manager
pageCount
];
}
-
(
BOOL
)
isTop
:(
NSString
*
)
pageId
{
...
...
ios/Classes/container/FLBFlutterViewContainer.h
View file @
fb1f6ed2
...
...
@@ -31,6 +31,5 @@ NS_ASSUME_NONNULL_BEGIN
@property
(
nonatomic
,
copy
,
readwrite
)
NSString
*
name
;
-
(
instancetype
)
init
NS_DESIGNATED_INITIALIZER
;
-
(
void
)
surfaceUpdated
:(
BOOL
)
appeared
;
-
(
void
)
setEnableForRunnersBatch
:(
BOOL
)
enable
;
@end
NS_ASSUME_NONNULL_END
ios/Classes/container/FLBFlutterViewContainer.m
View file @
fb1f6ed2
...
...
@@ -158,11 +158,6 @@ static NSUInteger kInstanceCounter = 0;
[
FLUTTER_APP
.
flutterProvider
detach
];
}
-
(
void
)
setEnableForRunnersBatch
:(
BOOL
)
enable
{
//dummy function
NSLog
(
@"[DEBUG]- I did nothing, I am innocent"
);
}
#pragma mark - Life circle methods
-
(
void
)
viewDidLayoutSubviews
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment