例如,当连接的设备电池电量变化时,应用程序可以接收到广播通知,从而可以通知用户或者采取其它必要的措施。
For example, an application could receive broadcasts that indicate a connected device's battery level and could notify the user or take other action as needed.
这种通知广播最好留给发送方和接收方之间的Broker。
This broadcasting of the notification is better left to the broker between the sender and the receivers.
广播接收器是一个除了接收和响应广播通知以外啥也不做的组件。
A broadcast receiver is a component that does nothing but receive and react to broadcast announcements.
广播接收器是一个除了接收和响应广播通知以外啥也不做的组件。
A broadcast receiver is a component that does nothing but receive and react to broadcast announcements.
应用推荐