Most recent notification status bar

huangapple 未分类评论71阅读模式
英文:

Most recent notification status bar

问题

我想要获取即将到来的通知的唯一标识符。是否有可能获取该唯一标识符以便识别最近的通知?

public void onNotificationPosted(StatusBarNotification sbn) {
    sbn.getUiqueId();
}
英文:

I want the unique id of upcoming notification. Is it possible to get the unique id in order to identify the recent notification?

public void onNotificationPosted(StatusBarNotification sbn) {

            sbn.getUiqueId();
     }

答案1

得分: 0

I believe the public method is:

    StatusBarNotification.getId();
英文:

I believe the public method is:

    StatusBarNotification.getId();

huangapple
  • 本文由 发表于 2020年8月14日 21:06:14
  • 转载请务必保留本文链接:https://java.coder-hub.com/63413360.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定