# Print output for @column tags ?> SubscribeDiscoverySession - Android SDK | Android Developers

Most visited


Recently visited


SubscribeDiscoverySession

public class SubscribeDiscoverySession
extends DiscoverySession

java.lang.Object
   ↳ android.net.wifi.aware.DiscoverySession
     ↳ android.net.wifi.aware.SubscribeDiscoverySession


A class representing a Aware subscribe session. Created when WifiAwareSession#subscribe(SubscribeConfig, DiscoverySessionCallback, android.os.Handler) 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

void updateSubscribe(SubscribeConfig subscribeConfig)

Re-configure the currently active subscribe session.

Inherited methods

Public methods


updateSubscribe

public void updateSubscribe (SubscribeConfig subscribeConfig)

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.

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.