Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
53c07045
Commit
53c07045
authored
Apr 29, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create a service extension to terminate an app (#3634)
parent
7c017898
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
binding.dart
packages/flutter/lib/src/foundation/binding.dart
+10
-0
No files found.
packages/flutter/lib/src/foundation/binding.dart
View file @
53c07045
...
...
@@ -5,6 +5,7 @@
import
'dart:async'
;
import
'dart:convert'
show
JSON
;
import
'dart:developer'
as
developer
;
import
'dart:io'
show
exit
;
import
'package:meta/meta.dart'
;
...
...
@@ -100,6 +101,10 @@ abstract class BindingBase {
name:
'reassemble'
,
callback:
reassembleApplication
);
registerSignalServiceExtension
(
name:
'exit'
,
callback:
_exitApplication
);
assert
(()
{
_debugServiceExtensionsRegistered
=
true
;
return
true
;
});
}
...
...
@@ -247,3 +252,8 @@ abstract class BindingBase {
@override
String
toString
()
=>
'<
$runtimeType
>'
;
}
/// Terminate the Flutter application.
void
_exitApplication
(
)
{
exit
(
0
);
}
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