Created
June 26, 2019 03:02
-
-
Save e-lin/c37e48fdd2e3e6fb9d42326803c2d138 to your computer and use it in GitHub Desktop.
Subscribe to a Nearby Message 1 - configuration
This file contains hidden or 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
val strategy = Strategy.Builder() | |
.setDiscoveryMode(Strategy.DISCOVERY_MODE_SCAN) | |
.setTtlSeconds(Strategy.TTL_SECONDS_MAX) | |
.build() | |
val subscribeOpts = SubscribeOpts.Builder() | |
.setStrategy(strategy) | |
.setCallback(object : setCallback() { | |
override fun onExpired() { | |
Log.d(TAG, "onExpired") | |
} | |
}) | |
.build() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment