From 2247b3bcce1c664a91db6593490baa41ba31a087 Mon Sep 17 00:00:00 2001 From: Laurens Lavaert Date: Fri, 21 Apr 2017 21:47:07 +0200 Subject: [PATCH] This commit will update the docs to current syntax --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dece2c1..d094fe1 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,11 @@ To use, create an instance of TrayNotification and define its title, me ```java String title = "Congratulations sir"; String message = "You've successfully created your first Tray Notification"; - Notification notification = Notifications.SUCCESS; TrayNotification tray = new TrayNotification(); tray.setTitle(title); tray.setMessage(message); - tray.setNotification(notification); + tray.setNotificationType(NotificationType.SUCCESS); tray.showAndWait(); ``` @@ -70,11 +69,10 @@ Using a notice notification with a fading animation, for example: ```java String title = "Download quota reached"; String message = "Your download quota has been reached. Panic."; - Notification notification = Notifications.NOTICE; tray.setTitle(title); tray.setMessage(message); - tray.setNotification(notification); + tray.setNotificationType(NotificationType.NOTICE); tray.setAnimation(Animations.FADE); tray.showAndWait(); ```