Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
flutter_wakelock
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
creativecreatorormaybenot
2019-08-06 09:09:24 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
95c68f0be3fc85dd2e6994854fec8e39fb8932a7
95c68f0b
1 parent
ef4cd2ca
0.1.2+8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
CHANGELOG.md
lib/wakelock.dart
pubspec.yaml
CHANGELOG.md
View file @
95c68f0
## 0.1.2+8
*
Updated documentation.
## 0.1.2+7
*
Formatting in
`AndroidManifest.xml`
.
...
...
lib/wakelock.dart
View file @
95c68f0
...
...
@@ -5,11 +5,12 @@ import 'package:flutter/services.dart';
/// To enable the wakelock, you can use [Wakelock.enable] and to disable it,
/// you can call [Wakelock.disable].
/// You do not need to worry about making redundant calls, e.g. calling [Wakelock.enable]
/// when the wakelock is already enabled as the plugin handles this for you.
/// when the wakelock is already enabled as the plugin handles this for you, i.e. it checks
/// the status to determine if the wakelock is already enabled or disabled.
/// If you want the flexibility to pass a [bool] to control whether the wakelock should be
/// enabled or disabled, you can use [Wakelock.toggle].
///
/// The [Wakelock.isEnabled]
function
allows you to retrieve the current wakelock
/// The [Wakelock.isEnabled]
property
allows you to retrieve the current wakelock
/// status from Android or iOS.
class
Wakelock
{
static
const
MethodChannel
_channel
=
MethodChannel
(
'wakelock'
);
...
...
pubspec.yaml
View file @
95c68f0
name
:
wakelock
description
:
This plugin allows you to keep Android and iOS devices awake, i.e. prevent the screen from sleeping by toggling the wakelock of the device on or off.
version
:
0.1.2+
7
version
:
0.1.2+
8
author
:
creativecreatorormaybenot <19204050+creativecreatorormaybenot@users.noreply.github.com>
homepage
:
https://github.com/creativecreatorormaybenot/wakelock
...
...
Please
register
or
login
to post a comment