-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
162 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import 'package:awesome_notifications/awesome_notifications.dart'; | ||
|
||
//This class is from the awesome_notifications documentation. It is how they | ||
//suggest to use the plugin. We must define it to allows things to work, but we | ||
//are not using anything here. | ||
|
||
class NotificationController { | ||
|
||
/// Use this method to detect when a new notification or a schedule is created | ||
@pragma("vm:entry-point") | ||
static Future <void> onNotificationCreatedMethod(ReceivedNotification receivedNotification) async { | ||
//we dont really want to do anything | ||
} | ||
|
||
/// Use this method to detect every time that a new notification is displayed | ||
@pragma("vm:entry-point") | ||
static Future <void> onNotificationDisplayedMethod(ReceivedNotification receivedNotification) async { | ||
//we dont really want to do anything | ||
} | ||
|
||
/// Use this method to detect if the user dismissed a notification | ||
@pragma("vm:entry-point") | ||
static Future <void> onDismissActionReceivedMethod(ReceivedAction receivedAction) async { | ||
//we dont really want to do anything | ||
} | ||
|
||
/// Use this method to detect when the user taps on a notification or action button | ||
@pragma("vm:entry-point") | ||
static Future <void> onActionReceivedMethod(ReceivedAction receivedAction) async { | ||
//we dont really want to do anything | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters