{"id":21650709,"url":"https://github.com/czy1121/notificationdemo","last_synced_at":"2025-04-11T20:22:44.740Z","repository":{"id":199057615,"uuid":"77447309","full_name":"czy1121/NotificationDemo","owner":"czy1121","description":"通知demo","archived":false,"fork":false,"pushed_at":"2016-12-27T10:59:37.000Z","size":1569,"stargazers_count":88,"open_issues_count":2,"forks_count":18,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T20:22:38.506Z","etag":null,"topics":["demo","notification","notify","util"],"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/czy1121.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}},"created_at":"2016-12-27T10:30:25.000Z","updated_at":"2023-09-17T12:10:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"3fe7c76c-0e95-4be5-8dba-d004afb7a1db","html_url":"https://github.com/czy1121/NotificationDemo","commit_stats":null,"previous_names":["czy1121/notificationdemo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czy1121%2FNotificationDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czy1121%2FNotificationDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czy1121%2FNotificationDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czy1121%2FNotificationDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/czy1121","download_url":"https://codeload.github.com/czy1121/NotificationDemo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248473300,"owners_count":21109679,"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","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":["demo","notification","notify","util"],"created_at":"2024-11-25T07:42:09.440Z","updated_at":"2025-04-11T20:22:44.707Z","avatar_url":"https://github.com/czy1121.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Notification\n\n通知demo与工具类\n\n![notify](screenshots/screenshot.png)\n  \n \napi 19 (android 4.4)\n\n![api19_big_text](screenshots/api19_big_text.png) ![api19_big_picture](screenshots/api19_big_picture.png)\n  \napi 21 (android 5.0)\n\n![api21_big_text](screenshots/api21_big_text.png) ![api19_big_picture](screenshots/api21_big_picture.png)\n![api21_progress_bar](screenshots/api21_progress_bar.png) ![api21_heads_up](screenshots/api21_heads_up.png)\n    \napi 24 (android 7.0)\n\n![api24_basic](screenshots/api24_basic.png) ![api24_progress_bar](screenshots/api24_progress_bar.png)\n![api24_heads_up](screenshots/api24_heads_up.png)\n\n\n``` java\n// 创建通知\nNotifyUtil.create(context)\nNotifyUtil.create(context, smallIcon, title, content)\nNotifyUtil.create(context, largeIcon, smallIcon, title, content)\nNotifyUtil.create(context, largeIcon, smallIcon, title, content, contentIntent)\n\n// 发送通知\nNotifyUtil.notify(context, notifyId, notification)\n\n// 取消通知\nNotifyUtil.cancel(context, notifyId)\nNotifyUtil.cancelAll(context)\n\n// 创建 Action\nNotifyUtil.makeAction(icon, title, pendingIntent)\n\n// 创建多行文本样式\nNotifyUtil.makeBigText(content)\n// 创建大图样式\nNotifyUtil.makeBigPicture(bitmap)\n// 创建收件箱样式\nNotifyUtil.makeInbox(messages)\n```   \n \n\n## License\n\n```\nCopyright 2016 czy1121\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczy1121%2Fnotificationdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fczy1121%2Fnotificationdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczy1121%2Fnotificationdemo/lists"}