다음을 통해 공유


PublishDiscoverySession.UpdatePublish(PublishConfig) Method

Definition

Re-configure the currently active publish session.

[Android.Runtime.Register("updatePublish", "(Landroid/net/wifi/aware/PublishConfig;)V", "GetUpdatePublish_Landroid_net_wifi_aware_PublishConfig_Handler", ApiSince=26)]
public virtual void UpdatePublish (Android.Net.Wifi.Aware.PublishConfig publishConfig);
[<Android.Runtime.Register("updatePublish", "(Landroid/net/wifi/aware/PublishConfig;)V", "GetUpdatePublish_Landroid_net_wifi_aware_PublishConfig_Handler", ApiSince=26)>]
abstract member UpdatePublish : Android.Net.Wifi.Aware.PublishConfig -> unit
override this.UpdatePublish : Android.Net.Wifi.Aware.PublishConfig -> unit

Parameters

publishConfig
PublishConfig

The new discovery publish session configuration (PublishConfig).

Attributes

Remarks

Re-configure the currently active publish 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 publish 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.PublishDiscoverySession.updatePublish(android.net.wifi.aware.PublishConfig).

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