Skip to content

Commit

Permalink
🚀 Prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayegh7 committed Jul 24, 2019
1 parent 8b0a5f5 commit 9166979
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.0

- Add iOS support.

## 0.1.2

- Update Docs.
Expand Down
4 changes: 4 additions & 0 deletions lib/move_to_background.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
/// This library is a wrapper for iOS and Android to send the application to the background programmatically.
import 'dart:async';

import 'package:flutter/services.dart';

/// A class containing the static function used.
class MoveToBackground {
/// The method channel used to contact the native side
static const MethodChannel _channel =
const MethodChannel('move_to_background');

/// Calls the platform-specific function to send the app to the background
static Future<void> moveTaskToBack() async {
await _channel.invokeMethod('moveTaskToBack');
}
Expand Down

0 comments on commit 9166979

Please sign in to comment.