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
c3e48c53
Commit
c3e48c53
authored
Aug 11, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #553 from abarth/immersive
Add support for immersive mode on Android
parents
e770b9da
345f0176
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
activity.dart
packages/flutter/lib/mojo/activity.dart
+10
-1
No files found.
packages/flutter/lib/mojo/activity.dart
View file @
c3e48c53
...
...
@@ -8,7 +8,7 @@ import 'dart:async';
import
'package:sky/mojo/shell.dart'
as
shell
;
import
'package:sky_services/activity/activity.mojom.dart'
;
export
'package:sky_services/activity/activity.mojom.dart'
show
Intent
,
ComponentName
,
StringExtra
;
export
'package:sky_services/activity/activity.mojom.dart'
show
Intent
,
ComponentName
,
StringExtra
,
SystemUIVisibility_STANDARD
,
SystemUIVisibility_FULLSCREEN
,
SystemUIVisibility_IMMERSIVE
;
/// Dart wrapper around Activity mojo service available in Sky on Android.
///
...
...
@@ -55,6 +55,15 @@ void updateTaskDescription(String label, Color color) {
_activity
.
ptr
.
setTaskDescription
(
description
);
}
int
_cachedSystemUiVisibility
=
SystemUIVisibility_STANDARD
;
void
setSystemUiVisibility
(
int
visibility
)
{
if
(
_cachedSystemUiVisibility
==
visibility
)
return
;
_cachedSystemUiVisibility
=
visibility
;
_activity
.
ptr
.
setSystemUiVisibility
(
visibility
);
}
Future
<
String
>
getFilesDir
()
async
=>
(
await
_activity
.
ptr
.
getFilesDir
()).
path
;
Future
<
String
>
getCacheDir
()
async
=>
(
await
_activity
.
ptr
.
getCacheDir
()).
path
;
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