What is BroadcastReceiver and when we use it?

后端 未结 6 1635
-上瘾入骨i
-上瘾入骨i 2020-12-08 18:42

What is a BroadcastReceiver? What are its uses and how can I use it?

6条回答
  •  春和景丽
    2020-12-08 19:08

    Broadcast Receivers simply respond to broadcast messages from other applications or from the system itself. These messages are sometime called events or intents. For example, applications can also initiate broadcasts to let other applications know that some data has been downloaded to the device and is available for them to use, so this is broadcast receiver who will intercept this communication and will initiate appropriate action.

提交回复
热议问题