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
1
Merge Requests
1
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
e6624b76
Commit
e6624b76
authored
Aug 30, 2019
by
yangwu.jia
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'flutter_1.5_upgrade_opt' into v1.5.4-hotfixes
parents
58e7b94b
b4079775
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
3 deletions
+35
-3
README.md
README.md
+1
-1
README_CN.md
README_CN.md
+1
-1
ios/Classes/1.5/FLB2FlutterApplication.m
ios/Classes/1.5/FLB2FlutterApplication.m
+19
-1
ios/Classes/1.5/FLB2FlutterEngine.m
ios/Classes/1.5/FLB2FlutterEngine.m
+12
-0
ios/Classes/Boost/FLB2FlutterProvider.h
ios/Classes/Boost/FLB2FlutterProvider.h
+2
-0
No files found.
README.md
View file @
e6624b76
...
...
@@ -130,7 +130,7 @@ Initialize FlutterBoost with FLBPlatform at the beginning of your App.
```
objc
[
FlutterBoostPlugin
.
sharedInstance
startFlutterWithPlatform
:
router
onStart:
^
(
FlutterViewController
*
fvc
)
{
onStart:
^
(
id
engine
)
{
}];
```
...
...
README_CN.md
View file @
e6624b76
...
...
@@ -123,7 +123,7 @@ class _MyAppState extends State<MyApp> {
```
的ObjectiveC
[FlutterBoostPlugin.sharedInstance startFlutterWithPlatform:router
onStart:^(
FlutterViewController * fvc
){
onStart:^(
id engine
){
}];
```
...
...
ios/Classes/1.5/FLB2FlutterApplication.m
View file @
e6624b76
...
...
@@ -76,13 +76,24 @@
_manager
=
[
FLB2FlutterContainerManager
new
];
_pageResultCallbacks
=
NSMutableDictionary
.
new
;
_callbackCache
=
NSMutableDictionary
.
new
;
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector:
@selector
(
applicationWillEnterForeground
:)
name:
UIApplicationWillEnterForegroundNotification
object:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector:
@selector
(
applicationDidEnterBackground
:)
name:
UIApplicationDidEnterBackgroundNotification
object:
nil
];
}
return
self
;
}
-
(
void
)
dealloc
{
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
];
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
name
:
UIApplicationWillEnterForegroundNotification
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
name
:
UIApplicationDidEnterBackgroundNotification
object
:
nil
];
}
-
(
UIView
*
)
flutterView
...
...
@@ -90,6 +101,13 @@
return
[
self
flutterViewController
].
view
;
}
-
(
void
)
applicationDidEnterBackground
:(
UIApplication
*
)
application
{
[
self
.
viewProvider
didEnterBackground
];
}
-
(
void
)
applicationWillEnterForeground
:(
UIApplication
*
)
application
{
[
self
.
viewProvider
willEnterForeground
];
}
-
(
BOOL
)
contains
:(
id
<
FLBFlutterContainer
>
)
vc
{
...
...
ios/Classes/1.5/FLB2FlutterEngine.m
View file @
e6624b76
...
...
@@ -25,6 +25,7 @@
#import "FLB2FlutterEngine.h"
#import <Flutter/Flutter.h>
#import "FLB2FlutterViewContainer.h"
#import "BoostMessageChannel.h"
@interface
FLB2FlutterEngine
()
...
...
@@ -87,6 +88,17 @@
}
-
(
void
)
didEnterBackground
{
[
BoostMessageChannel
sendEvent
:
@"background"
arguments:
nil
];
}
-
(
void
)
willEnterForeground
{
[
BoostMessageChannel
sendEvent
:
@"foreground"
arguments:
nil
];
}
-
(
FlutterEngine
*
)
engine
{
...
...
ios/Classes/Boost/FLB2FlutterProvider.h
View file @
e6624b76
...
...
@@ -37,5 +37,7 @@ NS_ASSUME_NONNULL_BEGIN
-
(
void
)
pause
;
-
(
void
)
resume
;
-
(
void
)
inactive
;
-
(
void
)
didEnterBackground
;
-
(
void
)
willEnterForeground
;
@end
NS_ASSUME_NONNULL_END
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