Added in API level 26

SubscribeDiscoverySession


open class SubscribeDiscoverySession : DiscoverySession
kotlin.Any
   ↳ android.net.wifi.aware.DiscoverySession
   ↳ android.net.wifi.aware.SubscribeDiscoverySession

A class representing a Aware subscribe session. Created when WifiAwareSession#subscribe(SubscribeConfig, is called and a discovery session is created and returned in DiscoverySessionCallback#onSubscribeStarted(SubscribeDiscoverySession). See baseline functionality of all discovery sessions in DiscoverySession. This object allows updating an existing/running subscribe discovery session using updateSubscribe(android.net.wifi.aware.SubscribeConfig).

Summary

Public methods
open Unit
updateSubscribe(subscribeConfig: SubscribeConfig)

Re-configure the currently active subscribe session.

Inherited functions

Public methods

updateSubscribe

Added in API level 26
open fun updateSubscribe(subscribeConfig: SubscribeConfig): Unit

Re-configure the currently active subscribe session. The DiscoverySessionCallback is not replaced - the same listener used at creation is still used. The results of the configuration are returned using DiscoverySessionCallback:

Parameters
subscribeConfig SubscribeConfig: The new discovery subscribe session configuration (SubscribeConfig). This value cannot be null.