Register a Local BroadcastReceiver in AndroidManifest.xml?

前端 未结 1 518
别那么骄傲
别那么骄傲 2021-01-03 19:19

Is there anyway to register a BroadcastReceiver in AndroidManifest.xml and receives broadcast that is send by a LocalBroadcastManager?

Currently I must call

1条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-03 19:34

    No, you can't.

    The local BroadcastReceiver isn't a real BroadcastReceiver, basically its a list of callbacks functions.
    You can check the source code of LocalBroadcastManager.java.

    0 讨论(0)
提交回复
热议问题