Freigeben über


SubscribeDiscoverySession.UpdateSubscribe(SubscribeConfig) Method

Definition

Re-configure the currently active subscribe session.

[Android.Runtime.Register("updateSubscribe", "(Landroid/net/wifi/aware/SubscribeConfig;)V", "GetUpdateSubscribe_Landroid_net_wifi_aware_SubscribeConfig_Handler", ApiSince=26)]
public virtual void UpdateSubscribe (Android.Net.Wifi.Aware.SubscribeConfig subscribeConfig);
[<Android.Runtime.Register("updateSubscribe", "(Landroid/net/wifi/aware/SubscribeConfig;)V", "GetUpdateSubscribe_Landroid_net_wifi_aware_SubscribeConfig_Handler", ApiSince=26)>]
abstract member UpdateSubscribe : Android.Net.Wifi.Aware.SubscribeConfig -> unit
override this.UpdateSubscribe : Android.Net.Wifi.Aware.SubscribeConfig -> unit

Parameters

subscribeConfig
SubscribeConfig

The new discovery subscribe session configuration (SubscribeConfig).

Attributes

Remarks

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: <ul> <li>DiscoverySessionCallback#onSessionConfigUpdated(): configuration update succeeded. <li>DiscoverySessionCallback#onSessionConfigFailed(): configuration update failed. The subscribe discovery session is still running using its previous configuration (i.e. update failure does not terminate the session). </ul>

Java documentation for android.net.wifi.aware.SubscribeDiscoverySession.updateSubscribe(android.net.wifi.aware.SubscribeConfig).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to