Skip to content

Commit

Permalink
feat(notifications): add switch for supplying custom notification UI (s…
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeach authored Jul 29, 2020
1 parent 0e7e7cc commit b344d33
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,18 @@ void sendNotifications(
*/
@Nonnull
List<NotificationParameter> getParameters();

/**
* Return BASIC here to auto-generate a UI from the parameters defined in {@link
* Notification#getParameters}. Return CUSTOM to use a custom UI instead.
*/
@Nonnull
default NotificationUIType getUiType() {
return NotificationUIType.BASIC;
}

public enum NotificationUIType {
BASIC,
CUSTOM;
}
}

0 comments on commit b344d33

Please sign in to comment.