Created
November 5, 2018 01:34
-
-
Save ricardoogliari/478de1dfe0ee956301bdbb33b1870421 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override fun onStart() { | |
super.onStart() | |
Nearby.getMessagesClient(this).subscribe(mMessageListener!!) | |
} | |
public override fun onStop() { | |
if (message != null) | |
Nearby.getMessagesClient(this).unpublish(message!!) | |
Nearby.getMessagesClient(this).unsubscribe(mMessageListener!!) | |
super.onStop() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment