PublishDiscoverySession.UpdatePublish(PublishConfig) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>
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.