Code Monkey home page Code Monkey logo

cod-notification-manager's Introduction

Cod-Notification-Manager

Notification Manager for advanced notifications in Windows 10/11

Dependencies (provided)

  • Cod.ArrayHelpers
  • Cod.Registry

Planned features

  • Recieve notification closed message
  • Recieve button clicks/input
  • Recieve notification failed
  • Scheduled notifications

Example demo

anim

Examples

Create notification manager

  Manager := TNotificationManager.Create;

  Manager.ApplicationIdentifier := 'App.Test';
  Manager.ShowInSettings := false;

  Manager.ApplicationName := 'Not so Cool test';

Creating a notification

  Notif := Manager.CreateNewNotification;

Pushing notification

  Notif.Title := 'This is the title';
  Notif.Text := 'This is the text';

  Notif.Image.Source := 'C:\Windows\System32\@facial-recognition-windows-hello.gif';
  Notif.Image.Placement := TImagePlacement.Hero;
  Notif.Image.HintCrop := TImageCrop.Circle;

  Notif.UpdateToastInterface;
  Manager.ShowNotification(Notif);

Important notes

  • Do not free the TNotificationManager until the app will no longer send notification.
  • Do not free the notification until It is no longer needed, because you will no longer be able to hide It. The notification can be reset

cod-notification-manager's People

Contributors

codrax avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.