gpt4 book ai didi

android - 如何摆脱 Android N 上 RemoteInput 通知的进度指示器?

转载 作者:太空宇宙 更新时间:2023-11-03 13:50:13 25 4
gpt4 key购买 nike

我在 N Developer Preview 1 上使用 RemoteInput 允许用户输入一些文本作为 Notification 的一部分。它起作用了,但是当用户按下“发送” "按钮,一个不确定的进度指示器出现了,它永远不会消失:

RemoteInput Notification on Android

这是应该发生的吗?我该如何摆脱它?

最佳答案

Is this supposed to happen?

显然,是的。

How do I get rid of it?

更新通知。那可以:

  • RemoteInput 中重新添加以接受新输入,或者
  • 不在 RemoteInput 中添加,但可能会更新 Notification 的其他方面以指示您已收到并处理了输入

或者,如果合适,cancel() Notification

This sample project演示如何使用 RemoteInput 和 N Developer Preview。

关于android - 如何摆脱 Android N 上 RemoteInput 通知的进度指示器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35988259/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com