{"id":17688689,"url":"https://github.com/boybeak/notificationstyles","last_synced_at":"2025-10-04T12:52:43.467Z","repository":{"id":87642800,"uuid":"79322292","full_name":"boybeak/NotificationStyles","owner":"boybeak","description":"A demo project shows how to user Notification Styles, such as MediaStyle, InboxStyle, BigTextStyle, BigPictureStyle and MessagingStyle.","archived":false,"fork":false,"pushed_at":"2021-12-26T08:58:09.000Z","size":1558,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T00:48:08.074Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boybeak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-18T09:05:18.000Z","updated_at":"2022-03-01T15:26:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"4fb7b37c-63ba-4dd4-843e-5c747e9cc559","html_url":"https://github.com/boybeak/NotificationStyles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/boybeak/NotificationStyles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boybeak%2FNotificationStyles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boybeak%2FNotificationStyles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boybeak%2FNotificationStyles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boybeak%2FNotificationStyles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boybeak","download_url":"https://codeload.github.com/boybeak/NotificationStyles/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boybeak%2FNotificationStyles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278315198,"owners_count":25966775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-24T11:45:10.304Z","updated_at":"2025-10-04T12:52:43.452Z","avatar_url":"https://github.com/boybeak.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NotificationStyles\n## Install\n\nNow it's available on jcenter.\n\nWith Gradle:\n\n```groovy\ncompile 'com.github.boybeak:notify:1.3.1'\n```\n\nWith Maven:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.boybeak\u003c/groupId\u003e\n  \u003cartifactId\u003enotify\u003c/artifactId\u003e\n  \u003cversion\u003e1.3.1\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n## NotificationCenter\n\nWith this library, you can show a notification simply like belows:\n\n```java\nNotificationCenter.with(this)\n                .smallIcon(R.mipmap.ic_launcher)\n                .contentText(\"Messaging ContentText\")\n                .contentTitle(\"Messaging ContentTitle\")\n                .ticker(\"Messaging Ticker\")\n                .when(System.currentTimeMillis(), true)\n                .withPendingIntent()\n                .flags(PendingIntent.FLAG_CANCEL_CURRENT)\n                .requestCode(100)\n                .activityContent(new Intent(this, MainActivity.class))\n                .withPendingIntent()\n                .flags(0)\n                .requestCode(200)\n                .broadcastDelete(new Intent(\"com.nulldreams.notificationstyles.DELETE\"))\n                .asBigPictureStyle()\n                .bigContentTitle(\"InboxStyle bigContentTitle\")\n                .summaryText(\"InboxStyle summaryText\")\n                .bigLargeIcon(iconBmp)\n                .bigPicture(picture)\n                .show(4);\n```\n\nThere are 4 styles for you,  **BigPicture**, **BigText**, **Inbox** and **Messaging**. And also you can define your own Style, see the demo style [AsyncBigPicture.java](https://github.com/boybeak/NotificationStyles/blob/master/app/src/main/java/com/nulldreams/notificationstyles/AsyncBigPicture.java).\n\nTo use this custom style, you need call asStyle method of NotificationCenter.\n\n\u003e Now, MediaStyle still not finished.\n\n## ToastCenter\n\nSimply like this:\n\n```java\nToastCenter.with(this).text(R.string.toast, \"Alice\").showShort();\n```\n\nWith this, you can pass parameters directly.\n\n\n\n\u003cimg src=\"https://github.com/boybeak/NotificationStyles/blob/master/main.png\" width=180 height=320/\u003e\n\u003cimg src=\"https://github.com/boybeak/NotificationStyles/blob/master/big_text.png\" width=180 height=320/\u003e\n\u003cimg src=\"https://github.com/boybeak/NotificationStyles/blob/master/big_picture.png\" width=180 height=320/\u003e\n\u003cimg src=\"https://github.com/boybeak/NotificationStyles/blob/master/inbox.png\" width=180 height=320/\u003e\n\u003cimg src=\"https://github.com/boybeak/NotificationStyles/blob/master/messaging.png\" width=180 height=320/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboybeak%2Fnotificationstyles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboybeak%2Fnotificationstyles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboybeak%2Fnotificationstyles/lists"}