Broadcast Receiver in kotlin

Posted by Jennifer | Updated on

Broadcast Receiver in kotlin. You can do it in the following way. Create a broadcast receiver object in your activity class.

Register broadcast receiver in onCreate() function of your activity

Unregister it in ondestroy function of your activity


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers