1 Star 2 Fork 0

没有昵称 / notification_listen_service_plugin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

notification_listen_service_plugin

Flutter插件, 用来注册通知监听器, 监听通知栏消息的

isPermissionGranted

检查是否有监听通知栏的权限

final _notificationListenServicePlugin = NotificationListenServicePlugin();
bool v = await _notificationListenServicePlugin.isPermissionGranted();

requestPermission

请求获取通知监听器的权限

  • 这里返回的布尔值只代表配置页面有没有打开, 不代表用户最终授权状态
final _notificationListenServicePlugin = NotificationListenServicePlugin();
bool v = await _notificationListenServicePlugin.requestPermission();

sendNotification

发送一个测试消息

final _notificationListenServicePlugin = NotificationListenServicePlugin();
await _notificationListenServicePlugin.sendNotification("title", "content");

listenNotification

监听信息回调处理

final _notificationListenServicePlugin = NotificationListenServicePlugin();
await _notificationListenServicePlugin.listenNotification((NotificationListenBody data) {
    print(data.toString());
});

空文件

简介

Flutter插件, 监听通知栏消息, 只支持Android 展开 收起
Java 等 2 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xluomo945/notification_listen_service_plugin.git
git@gitee.com:xluomo945/notification_listen_service_plugin.git
xluomo945
notification_listen_service_plugin
notification_listen_service_plugin
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891